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, } }
func init() { dataStorage, _ := engine.NewMapStorage() cfg, _ := config.NewDefaultCGRConfig() apierDcT = &ApierV1{RatingDb: engine.RatingStorage(dataStorage), Config: cfg} }