unified sql storages and worked on rating profile load by tag

This commit is contained in:
Radu Ioan Fericean
2013-06-28 22:47:39 +03:00
parent 15e5709e29
commit aff4813757
9 changed files with 173 additions and 882 deletions

View File

@@ -39,3 +39,51 @@ type CDR interface {
GetFallbackSubj() string
GetExtraFields() map[string]string //Stores extra CDR Fields
}
type GenericCdr map[string]string
func (gcdr GenericCdr) GetCgrId() string {
return ""
}
func (gcdr GenericCdr) GetAccId() string {
return ""
}
func (gcdr GenericCdr) GetCdrHost() string {
return ""
}
func (gcdr GenericCdr) GetDirection() string {
return ""
}
func (gcdr GenericCdr) GetOrigId() string {
return ""
}
func (gcdr GenericCdr) GetSubject() string {
return ""
}
func (gcdr GenericCdr) GetAccount() string {
return ""
}
func (gcdr GenericCdr) GetDestination() string {
return ""
}
func (gcdr GenericCdr) GetTOR() string {
return ""
}
func (gcdr GenericCdr) GetTenant() string {
return ""
}
func (gcdr GenericCdr) GetReqType() string {
return ""
}
func (gcdr GenericCdr) GetAnswerTime() (time.Time, error) {
return time.Now(), nil
}
func (gcdr GenericCdr) GetDuration() int64 {
return 0.0
}
func (gcdr GenericCdr) GetFallbackSubj() string {
return ""
}
func (gcdr GenericCdr) GetExtraFields() map[string]string {
return nil
}