only one version structure in the db

This commit is contained in:
Radu Ioan Fericean
2016-04-25 18:45:20 +03:00
parent 1125c2425c
commit e6ce7a3bed
7 changed files with 94 additions and 267 deletions

View File

@@ -68,8 +68,6 @@ type RatingStorage interface {
GetAllActionPlans() (map[string]*ActionPlan, error)
PushTask(*Task) error
PopTask() (*Task, error)
GetRatingStructuresVersion() (*RatingStructuresVersion, error)
SetRatingStructuresVersion(*RatingStructuresVersion) error
}
type AccountingStorage interface {
@@ -94,8 +92,8 @@ type AccountingStorage interface {
RemoveAlias(string) error
GetLoadHistory(int, bool) ([]*LoadInstance, error)
AddLoadHistory(*LoadInstance, int) error
GetAccountingStructuresVersion() (*AccountingStructuresVersion, error)
SetAccountingStructuresVersion(*AccountingStructuresVersion) error
GetStructVersion() (*StructVersion, error)
SetStructVersion(*StructVersion) error
}
type CdrStorage interface {
@@ -104,8 +102,6 @@ type CdrStorage interface {
SetSMCost(smc *SMCost) error
GetSMCosts(cgrid, runid, originHost, originIDPrfx string) ([]*SMCost, error)
GetCDRs(*utils.CDRsFilter, bool) ([]*CDR, int64, error)
GetCdrStructuresVersion() (*CdrStructuresVersion, error)
SetCdrStructuresVersion(*CdrStructuresVersion) error
}
type LogStorage interface {