Action *cdrlog to StorDb, moved GetCallCost and LogCallCost in CdrStorage, local tests for *cdrlog

This commit is contained in:
DanB
2015-04-29 19:50:03 +02:00
parent 3ce339a592
commit 5ce11a28a3
28 changed files with 138 additions and 401 deletions

View File

@@ -114,6 +114,8 @@ type CdrStorage interface {
Storage
SetCdr(*StoredCdr) error
SetRatedCdr(*StoredCdr) error
LogCallCost(cgrid, source, runid string, cc *CallCost) error
GetCallCostLog(cgrid, source, runid string) (*CallCost, error)
GetStoredCdrs(*utils.CdrsFilter) ([]*StoredCdr, int64, error)
RemStoredCdrs([]string) error
}
@@ -121,11 +123,9 @@ type CdrStorage interface {
type LogStorage interface {
Storage
//GetAllActionTimingsLogs() (map[string]ActionsTimings, error)
LogCallCost(cgrid, source, runid string, cc *CallCost) error
LogError(uuid, source, runid, errstr string) error
LogActionTrigger(ubId, source string, at *ActionTrigger, as Actions) error
LogActionTiming(source string, at *ActionTiming, as Actions) error
GetCallCostLog(cgrid, source, runid string) (*CallCost, error)
}
type LoadStorage interface {