mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
NewStatService method in stats
This commit is contained in:
@@ -25,6 +25,11 @@ import (
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
)
|
||||
|
||||
// NewStatService initializes a StatService
|
||||
func NewStatService(dataDB DataDB) (ss *StatService, err error) {
|
||||
ss = &StatService{dataDB: dataDB}
|
||||
}
|
||||
|
||||
// StatService builds stats for events
|
||||
type StatService struct {
|
||||
sync.RWMutex
|
||||
|
||||
Reference in New Issue
Block a user