本文整理汇总了Golang中github.com/cgrates/cgrates/engine.NewMapStorageJson函数的典型用法代码示例。如果您正苦于以下问题:Golang NewMapStorageJson函数的具体用法?Golang NewMapStorageJson怎么用?Golang NewMapStorageJson使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewMapStorageJson函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: TestAuthSetStorage
func TestAuthSetStorage(t *testing.T) {
ratingDbAuth, _ = engine.NewMapStorageJson()
engine.SetRatingStorage(ratingDbAuth)
acntDbAuth, _ = engine.NewMapStorageJson()
engine.SetAccountingStorage(acntDbAuth)
cfg, _ := config.NewDefaultCGRConfig()
config.SetCgrConfig(cfg)
rsponder = new(engine.Responder)
}
示例2: TestCosts1SetStorage
func TestCosts1SetStorage(t *testing.T) {
ratingDb, _ = engine.NewMapStorageJson()
engine.SetRatingStorage(ratingDb)
acntDb, _ = engine.NewMapStorageJson()
engine.SetAccountingStorage(acntDb)
}
示例3: TestSetStorage2
func TestSetStorage2(t *testing.T) {
ratingDb2, _ = engine.NewMapStorageJson()
engine.SetRatingStorage(ratingDb2)
acntDb2, _ = engine.NewMapStorageJson()
engine.SetAccountingStorage(acntDb2)
}
示例4: TestAcntActsSetStorage
func TestAcntActsSetStorage(t *testing.T) {
ratingDbAcntActs, _ = engine.NewMapStorageJson()
engine.SetRatingStorage(ratingDbAcntActs)
acntDbAcntActs, _ = engine.NewMapStorageJson()
engine.SetAccountingStorage(acntDbAcntActs)
}
示例5: TestSMSSetStorageSmsChrg1
func TestSMSSetStorageSmsChrg1(t *testing.T) {
ratingDb, _ = engine.NewMapStorageJson()
engine.SetRatingStorage(ratingDb)
acntDb, _ = engine.NewMapStorageJson()
engine.SetAccountingStorage(acntDb)
}