Moving Cdr* from utils to engine package so we can attach CostDetails to StoredCdr

This commit is contained in:
DanB
2015-03-22 18:04:38 +01:00
parent 54e95dc929
commit 44fa456eb5
54 changed files with 870 additions and 844 deletions

View File

@@ -22,8 +22,6 @@ import (
"strings"
"sync"
"time"
"github.com/cgrates/cgrates/utils"
)
type StatsQueue struct {
@@ -72,7 +70,7 @@ func (sq *StatsQueue) UpdateConf(conf *CdrStats) {
}
}
func (sq *StatsQueue) AppendCDR(cdr *utils.StoredCdr) {
func (sq *StatsQueue) AppendCDR(cdr *StoredCdr) {
sq.mux.Lock()
defer sq.mux.Unlock()
if sq.conf.AcceptCdr(cdr) {
@@ -117,7 +115,7 @@ func (sq *StatsQueue) removeFromMetrics(cdr *QCdr) {
}
}
func (sq *StatsQueue) simplifyCdr(cdr *utils.StoredCdr) *QCdr {
func (sq *StatsQueue) simplifyCdr(cdr *StoredCdr) *QCdr {
return &QCdr{
SetupTime: cdr.SetupTime,
AnswerTime: cdr.AnswerTime,