Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataService ¶
type DataService struct { Session *gorm.DB Config *config.DatabaseConfig }
DataService is a wrapper for the GORM database.
func InitDB ¶
func InitDB() *DataService
Provides a pointer to a databse connection for a given configuration.
func (DataService) CreateCubeCDRs ¶
func (ds DataService) CreateCubeCDRs(cdrs []*models.CubeCDR) error
func (DataService) CreateCucmCDRs ¶
func (ds DataService) CreateCucmCDRs(cdrs []*models.CucmCdr) error
func (DataService) CreateCucmCMRs ¶
func (ds DataService) CreateCucmCMRs(cdrs []*models.CucmCmr) error
Click to show internal directories.
Click to hide internal directories.