Esempio n. 1
0
func init() {
	apierDebitStorage, _ = engine.NewMapStorage()
	cfg, _ := config.NewDefaultCGRConfig()
	responder := new(engine.Responder)

	engine.SetAccountingStorage(apierDebitStorage)
	engine.SetRatingStorage(apierDebitStorage)
	apierDebit = &ApierV1{
		AccountDb: engine.AccountingStorage(apierDebitStorage),
		RatingDb:  engine.RatingStorage(apierDebitStorage),
		Config:    cfg,
		Responder: responder,
	}
}
Esempio n. 2
0
func init() {
	dataStorage, _ := engine.NewMapStorage()
	cfg, _ := config.NewDefaultCGRConfig()
	apierDcT = &ApierV1{RatingDb: engine.RatingStorage(dataStorage), Config: cfg}
}