database

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL