本文整理匯總了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)
}