Move cdrs to its own package

Moved engine/cdr.go to utils/cdr.go.
Moved engine/cdrs.go and engine/cdrs_test.go to cdrs package.
Moved api functions from cdrs/cdrs.go to cdrs/apis.go. Same for the
tests.
Deleted CDRsV1 type and its methods.
This commit is contained in:
ionutboangiu
2023-12-11 07:17:40 -05:00
committed by Dan Christian Bogos
parent 1cec3751e4
commit d29f84169c
19 changed files with 1290 additions and 1408 deletions

View File

@@ -109,7 +109,7 @@ type DataDBDriver interface {
type StorDB interface {
Storage
SetCDR(*context.Context, string, *utils.CGREvent, bool) error
GetCDRs(*context.Context, []*Filter, map[string]interface{}) ([]*CDR, error)
GetCDRs(*context.Context, []*Filter, map[string]interface{}) ([]*utils.CDR, error)
RemoveCDRs(*context.Context, []*Filter) error
}