Documentation
¶
Index ¶
- func NewAnalyzerService(cfg *config.CGRConfig, server *utils.Server, exitChan chan bool, ...) servmanager.Service
- func NewAsteriskAgent(cfg *config.CGRConfig, exitChan chan bool, connMgr *engine.ConnManager) servmanager.Service
- func NewAttributeService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, ...) servmanager.Service
- func NewCDRServer(cfg *config.CGRConfig, dm *DataDBService, storDB *StorDBService, ...) servmanager.Service
- func NewChargerService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, ...) servmanager.Service
- func NewDNSAgent(cfg *config.CGRConfig, filterSChan chan *engine.FilterS, exitChan chan bool, ...) servmanager.Service
- func NewDiameterAgent(cfg *config.CGRConfig, filterSChan chan *engine.FilterS, exitChan chan bool, ...) servmanager.Service
- func NewDispatcherService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, ...) servmanager.Service
- func NewEventReaderService(cfg *config.CGRConfig, filterSChan chan *engine.FilterS, exitChan chan bool, ...) servmanager.Service
- func NewFreeswitchAgent(cfg *config.CGRConfig, exitChan chan bool, connMgr *engine.ConnManager) servmanager.Service
- func NewHTTPAgent(cfg *config.CGRConfig, filterSChan chan *engine.FilterS, server *utils.Server, ...) servmanager.Service
- func NewKamailioAgent(cfg *config.CGRConfig, exitChan chan bool, connMgr *engine.ConnManager) servmanager.Service
- func NewLoaderService(cfg *config.CGRConfig, dm *DataDBService, filterSChan chan *engine.FilterS, ...) servmanager.Service
- func NewRadiusAgent(cfg *config.CGRConfig, filterSChan chan *engine.FilterS, exitChan chan bool, ...) servmanager.Service
- func NewResourceService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, ...) servmanager.Service
- func NewSessionService(cfg *config.CGRConfig, dm *DataDBService, server *utils.Server, ...) servmanager.Service
- func NewStatService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, ...) servmanager.Service
- func NewSupplierService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, ...) servmanager.Service
- func NewThresholdService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, ...) servmanager.Service
- type APIerSv1Service
- func (apiService *APIerSv1Service) GetAPIerSv1() *v1.APIerSv1
- func (apiService *APIerSv1Service) GetAPIerSv1Chan() chan *v1.APIerSv1
- func (apiService *APIerSv1Service) IsRunning() bool
- func (apiService *APIerSv1Service) Reload() (err error)
- func (apiService *APIerSv1Service) ServiceName() string
- func (apiService *APIerSv1Service) ShouldRun() bool
- func (apiService *APIerSv1Service) Shutdown() (err error)
- func (apiService *APIerSv1Service) Start() (err error)
- type APIerSv2Service
- type AnalyzerService
- type AsteriskAgent
- type AttributeService
- func (attrS *AttributeService) IsRunning() bool
- func (attrS *AttributeService) Reload() (err error)
- func (attrS *AttributeService) ServiceName() string
- func (attrS *AttributeService) ShouldRun() bool
- func (attrS *AttributeService) Shutdown() (err error)
- func (attrS *AttributeService) Start() (err error)
- type CDRServer
- type ChargerService
- type DNSAgent
- type DataDBService
- func (db *DataDBService) GetDM() *engine.DataManager
- func (db *DataDBService) GetDMChan() chan *engine.DataManager
- func (db *DataDBService) IsRunning() bool
- func (db *DataDBService) Reload() (err error)
- func (db *DataDBService) ServiceName() string
- func (db *DataDBService) ShouldRun() bool
- func (db *DataDBService) Shutdown() (err error)
- func (db *DataDBService) Start() (err error)
- type DiameterAgent
- type DispatcherService
- func (dspS *DispatcherService) IsRunning() bool
- func (dspS *DispatcherService) Reload() (err error)
- func (dspS *DispatcherService) ServiceName() string
- func (dspS *DispatcherService) ShouldRun() bool
- func (dspS *DispatcherService) Shutdown() (err error)
- func (dspS *DispatcherService) Start() (err error)
- type EventReaderService
- func (erS *EventReaderService) IsRunning() bool
- func (erS *EventReaderService) Reload() (err error)
- func (erS *EventReaderService) ServiceName() string
- func (erS *EventReaderService) ShouldRun() bool
- func (erS *EventReaderService) Shutdown() (err error)
- func (erS *EventReaderService) Start() (err error)
- type FreeswitchAgent
- type HTTPAgent
- type KamailioAgent
- type LoaderService
- type RadiusAgent
- type RalService
- func (rals *RalService) GetResponder() servmanager.Service
- func (rals *RalService) GetResponderService() *ResponderService
- func (rals *RalService) IsRunning() bool
- func (rals *RalService) Reload() (err error)
- func (rals *RalService) ServiceName() string
- func (rals *RalService) ShouldRun() bool
- func (rals *RalService) Shutdown() (err error)
- func (rals *RalService) Start() (err error)
- type ResourceService
- type ResponderService
- func (resp *ResponderService) GetResponder() *engine.Responder
- func (resp *ResponderService) IsRunning() bool
- func (resp *ResponderService) Reload() (err error)
- func (resp *ResponderService) ServiceName() string
- func (resp *ResponderService) ShouldRun() bool
- func (resp *ResponderService) Shutdown() (err error)
- func (resp *ResponderService) Start() (err error)
- type SchedulerService
- func (schS *SchedulerService) GetScheduler() *scheduler.Scheduler
- func (schS *SchedulerService) IsRunning() bool
- func (schS *SchedulerService) Reload() (err error)
- func (schS *SchedulerService) ServiceName() string
- func (schS *SchedulerService) ShouldRun() bool
- func (schS *SchedulerService) Shutdown() (err error)
- func (schS *SchedulerService) Start() (err error)
- type SessionService
- type StatService
- type StorDBService
- func (db *StorDBService) IsRunning() bool
- func (db *StorDBService) RegisterSyncChan(c chan engine.StorDB)
- func (db *StorDBService) Reload() (err error)
- func (db *StorDBService) ServiceName() string
- func (db *StorDBService) ShouldRun() bool
- func (db *StorDBService) Shutdown() (err error)
- func (db *StorDBService) Start() (err error)
- type SupplierService
- type ThresholdService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnalyzerService ¶
func NewAnalyzerService(cfg *config.CGRConfig, server *utils.Server, exitChan chan bool, internalAnalyzerSChan chan birpc.ClientConnector) servmanager.Service
NewAnalyzerService returns the Analyzer Service
func NewAsteriskAgent ¶
func NewAsteriskAgent(cfg *config.CGRConfig, exitChan chan bool, connMgr *engine.ConnManager) servmanager.Service
NewAsteriskAgent returns the Asterisk Agent
func NewAttributeService ¶
func NewAttributeService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, filterSChan chan *engine.FilterS, server *utils.Server, internalChan chan birpc.ClientConnector) servmanager.Service
NewAttributeService returns the Attribute Service
func NewCDRServer ¶
func NewCDRServer(cfg *config.CGRConfig, dm *DataDBService, storDB *StorDBService, filterSChan chan *engine.FilterS, server *utils.Server, internalCDRServerChan chan birpc.ClientConnector, connMgr *engine.ConnManager) servmanager.Service
NewCDRServer returns the CDR Server
func NewChargerService ¶
func NewChargerService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, filterSChan chan *engine.FilterS, server *utils.Server, internalChargerSChan chan birpc.ClientConnector, connMgr *engine.ConnManager) servmanager.Service
NewChargerService returns the Charger Service
func NewDNSAgent ¶
func NewDNSAgent(cfg *config.CGRConfig, filterSChan chan *engine.FilterS, exitChan chan bool, connMgr *engine.ConnManager) servmanager.Service
NewDNSAgent returns the DNS Agent
func NewDiameterAgent ¶
func NewDiameterAgent(cfg *config.CGRConfig, filterSChan chan *engine.FilterS, exitChan chan bool, connMgr *engine.ConnManager) servmanager.Service
NewDiameterAgent returns the Diameter Agent
func NewDispatcherService ¶
func NewDispatcherService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, filterSChan chan *engine.FilterS, server *utils.Server, internalChan chan birpc.ClientConnector, connMgr *engine.ConnManager) servmanager.Service
NewDispatcherService returns the Dispatcher Service
func NewEventReaderService ¶
func NewEventReaderService(cfg *config.CGRConfig, filterSChan chan *engine.FilterS, exitChan chan bool, connMgr *engine.ConnManager) servmanager.Service
NewEventReaderService returns the EventReader Service
func NewFreeswitchAgent ¶
func NewFreeswitchAgent(cfg *config.CGRConfig, exitChan chan bool, connMgr *engine.ConnManager) servmanager.Service
NewFreeswitchAgent returns the Freeswitch Agent
func NewHTTPAgent ¶
func NewHTTPAgent(cfg *config.CGRConfig, filterSChan chan *engine.FilterS, server *utils.Server, connMgr *engine.ConnManager) servmanager.Service
NewHTTPAgent returns the HTTP Agent
func NewKamailioAgent ¶
func NewKamailioAgent(cfg *config.CGRConfig, exitChan chan bool, connMgr *engine.ConnManager) servmanager.Service
NewKamailioAgent returns the Kamailio Agent
func NewLoaderService ¶
func NewLoaderService(cfg *config.CGRConfig, dm *DataDBService, filterSChan chan *engine.FilterS, server *utils.Server, exitChan chan bool, internalLoaderSChan chan birpc.ClientConnector, connMgr *engine.ConnManager) servmanager.Service
NewLoaderService returns the Loader Service
func NewRadiusAgent ¶
func NewRadiusAgent(cfg *config.CGRConfig, filterSChan chan *engine.FilterS, exitChan chan bool, connMgr *engine.ConnManager) servmanager.Service
NewRadiusAgent returns the Radius Agent
func NewResourceService ¶
func NewResourceService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, filterSChan chan *engine.FilterS, server *utils.Server, internalResourceSChan chan birpc.ClientConnector, connMgr *engine.ConnManager) servmanager.Service
NewResourceService returns the Resource Service
func NewSessionService ¶
func NewSessionService(cfg *config.CGRConfig, dm *DataDBService, server *utils.Server, internalChan chan birpc.ClientConnector, exitChan chan bool, connMgr *engine.ConnManager) servmanager.Service
NewSessionService returns the Session Service
func NewStatService ¶
func NewStatService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, filterSChan chan *engine.FilterS, server *utils.Server, internalStatSChan chan birpc.ClientConnector, connMgr *engine.ConnManager) servmanager.Service
NewStatService returns the Stat Service
func NewSupplierService ¶
func NewSupplierService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, filterSChan chan *engine.FilterS, server *utils.Server, internalSupplierSChan chan birpc.ClientConnector, connMgr *engine.ConnManager) servmanager.Service
NewSupplierService returns the Supplier Service
func NewThresholdService ¶
func NewThresholdService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, filterSChan chan *engine.FilterS, server *utils.Server, internalThresholdSChan chan birpc.ClientConnector) servmanager.Service
NewThresholdService returns the Threshold Service
Types ¶
type APIerSv1Service ¶
type APIerSv1Service struct { sync.RWMutex APIerSv1Chan chan *v1.APIerSv1 // contains filtered or unexported fields }
APIerSv1Service implements Service interface
func NewAPIerSv1Service ¶
func NewAPIerSv1Service(cfg *config.CGRConfig, dm *DataDBService, storDB *StorDBService, filterSChan chan *engine.FilterS, server *utils.Server, schedService *SchedulerService, responderService *ResponderService, internalAPIerSv1Chan chan birpc.ClientConnector, connMgr *engine.ConnManager) *APIerSv1Service
NewAPIerSv1Service returns the APIerSv1 Service
func (*APIerSv1Service) GetAPIerSv1 ¶
func (apiService *APIerSv1Service) GetAPIerSv1() *v1.APIerSv1
GetAPIerSv1 returns the APIerSv1
func (*APIerSv1Service) GetAPIerSv1Chan ¶
func (apiService *APIerSv1Service) GetAPIerSv1Chan() chan *v1.APIerSv1
GetDMChan returns the DataManager chanel
func (*APIerSv1Service) IsRunning ¶
func (apiService *APIerSv1Service) IsRunning() bool
IsRunning returns if the service is running
func (*APIerSv1Service) Reload ¶
func (apiService *APIerSv1Service) Reload() (err error)
Reload handles the change of config
func (*APIerSv1Service) ServiceName ¶
func (apiService *APIerSv1Service) ServiceName() string
ServiceName returns the service name
func (*APIerSv1Service) ShouldRun ¶
func (apiService *APIerSv1Service) ShouldRun() bool
ShouldRun returns if the service should be running
func (*APIerSv1Service) Shutdown ¶
func (apiService *APIerSv1Service) Shutdown() (err error)
Shutdown stops the service
func (*APIerSv1Service) Start ¶
func (apiService *APIerSv1Service) Start() (err error)
Start should handle the sercive start For this service the start should be called from RAL Service
type APIerSv2Service ¶
APIerSv2Service implements Service interface
func NewAPIerSv2Service ¶
func NewAPIerSv2Service(apiv1 *APIerSv1Service, cfg *config.CGRConfig, server *utils.Server, internalAPIerSv2Chan chan birpc.ClientConnector) *APIerSv2Service
NewAPIerSv2Service returns the APIerSv2 Service
func (*APIerSv2Service) IsRunning ¶
func (api *APIerSv2Service) IsRunning() bool
IsRunning returns if the service is running
func (*APIerSv2Service) Reload ¶
func (api *APIerSv2Service) Reload() (err error)
Reload handles the change of config
func (*APIerSv2Service) ServiceName ¶
func (api *APIerSv2Service) ServiceName() string
ServiceName returns the service name
func (*APIerSv2Service) ShouldRun ¶
func (api *APIerSv2Service) ShouldRun() bool
ShouldRun returns if the service should be running
func (*APIerSv2Service) Shutdown ¶
func (api *APIerSv2Service) Shutdown() (err error)
Shutdown stops the service
func (*APIerSv2Service) Start ¶
func (api *APIerSv2Service) Start() (err error)
Start should handle the sercive start For this service the start should be called from RAL Service
type AnalyzerService ¶
AnalyzerService implements Service interface
func (*AnalyzerService) IsRunning ¶
func (anz *AnalyzerService) IsRunning() bool
IsRunning returns if the service is running
func (*AnalyzerService) Reload ¶
func (anz *AnalyzerService) Reload() (err error)
Reload handles the change of config
func (*AnalyzerService) ServiceName ¶
func (anz *AnalyzerService) ServiceName() string
ServiceName returns the service name
func (*AnalyzerService) ShouldRun ¶
func (anz *AnalyzerService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*AnalyzerService) Shutdown ¶
func (anz *AnalyzerService) Shutdown() (err error)
Shutdown stops the service
func (*AnalyzerService) Start ¶
func (anz *AnalyzerService) Start() (err error)
Start should handle the sercive start
type AsteriskAgent ¶
AsteriskAgent implements Agent interface
func (*AsteriskAgent) IsRunning ¶
func (ast *AsteriskAgent) IsRunning() bool
IsRunning returns if the service is running
func (*AsteriskAgent) Reload ¶
func (ast *AsteriskAgent) Reload() (err error)
Reload handles the change of config
func (*AsteriskAgent) ServiceName ¶
func (ast *AsteriskAgent) ServiceName() string
ServiceName returns the service name
func (*AsteriskAgent) ShouldRun ¶
func (ast *AsteriskAgent) ShouldRun() bool
ShouldRun returns if the service should be running
func (*AsteriskAgent) Shutdown ¶
func (ast *AsteriskAgent) Shutdown() (err error)
Shutdown stops the service
func (*AsteriskAgent) Start ¶
func (ast *AsteriskAgent) Start() (err error)
Start should handle the sercive start
type AttributeService ¶
AttributeService implements Service interface
func (*AttributeService) IsRunning ¶
func (attrS *AttributeService) IsRunning() bool
IsRunning returns if the service is running
func (*AttributeService) Reload ¶
func (attrS *AttributeService) Reload() (err error)
Reload handles the change of config
func (*AttributeService) ServiceName ¶
func (attrS *AttributeService) ServiceName() string
ServiceName returns the service name
func (*AttributeService) ShouldRun ¶
func (attrS *AttributeService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*AttributeService) Shutdown ¶
func (attrS *AttributeService) Shutdown() (err error)
Shutdown stops the service
func (*AttributeService) Start ¶
func (attrS *AttributeService) Start() (err error)
Start should handle the sercive start
type CDRServer ¶
CDRServer implements Service interface
func (*CDRServer) ServiceName ¶
ServiceName returns the service name
type ChargerService ¶
ChargerService implements Service interface
func (*ChargerService) IsRunning ¶
func (chrS *ChargerService) IsRunning() bool
IsRunning returns if the service is running
func (*ChargerService) Reload ¶
func (chrS *ChargerService) Reload() (err error)
Reload handles the change of config
func (*ChargerService) ServiceName ¶
func (chrS *ChargerService) ServiceName() string
ServiceName returns the service name
func (*ChargerService) ShouldRun ¶
func (chrS *ChargerService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*ChargerService) Shutdown ¶
func (chrS *ChargerService) Shutdown() (err error)
Shutdown stops the service
func (*ChargerService) Start ¶
func (chrS *ChargerService) Start() (err error)
Start should handle the sercive start
type DNSAgent ¶
DNSAgent implements Agent interface
func (*DNSAgent) ServiceName ¶
ServiceName returns the service name
type DataDBService ¶
DataDBService implements Service interface
func NewDataDBService ¶
func NewDataDBService(cfg *config.CGRConfig, connMgr *engine.ConnManager) *DataDBService
NewDataDBService returns the DataDB Service
func (*DataDBService) GetDM ¶
func (db *DataDBService) GetDM() *engine.DataManager
GetDM returns the DataManager
func (*DataDBService) GetDMChan ¶
func (db *DataDBService) GetDMChan() chan *engine.DataManager
GetDMChan returns the DataManager chanel
func (*DataDBService) IsRunning ¶
func (db *DataDBService) IsRunning() bool
IsRunning returns if the service is running
func (*DataDBService) Reload ¶
func (db *DataDBService) Reload() (err error)
Reload handles the change of config
func (*DataDBService) ServiceName ¶
func (db *DataDBService) ServiceName() string
ServiceName returns the service name
func (*DataDBService) ShouldRun ¶
func (db *DataDBService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*DataDBService) Shutdown ¶
func (db *DataDBService) Shutdown() (err error)
Shutdown stops the service
func (*DataDBService) Start ¶
func (db *DataDBService) Start() (err error)
Start should handle the sercive start
type DiameterAgent ¶
DiameterAgent implements Agent interface
func (*DiameterAgent) IsRunning ¶
func (da *DiameterAgent) IsRunning() bool
IsRunning returns if the service is running
func (*DiameterAgent) Reload ¶
func (da *DiameterAgent) Reload() (err error)
Reload handles the change of config
func (*DiameterAgent) ServiceName ¶
func (da *DiameterAgent) ServiceName() string
ServiceName returns the service name
func (*DiameterAgent) ShouldRun ¶
func (da *DiameterAgent) ShouldRun() bool
ShouldRun returns if the service should be running
func (*DiameterAgent) Shutdown ¶
func (da *DiameterAgent) Shutdown() (err error)
Shutdown stops the service
func (*DiameterAgent) Start ¶
func (da *DiameterAgent) Start() (err error)
Start should handle the sercive start
type DispatcherService ¶
DispatcherService implements Service interface
func (*DispatcherService) IsRunning ¶
func (dspS *DispatcherService) IsRunning() bool
IsRunning returns if the service is running
func (*DispatcherService) Reload ¶
func (dspS *DispatcherService) Reload() (err error)
Reload handles the change of config
func (*DispatcherService) ServiceName ¶
func (dspS *DispatcherService) ServiceName() string
ServiceName returns the service name
func (*DispatcherService) ShouldRun ¶
func (dspS *DispatcherService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*DispatcherService) Shutdown ¶
func (dspS *DispatcherService) Shutdown() (err error)
Shutdown stops the service
func (*DispatcherService) Start ¶
func (dspS *DispatcherService) Start() (err error)
Start should handle the sercive start
type EventReaderService ¶
EventReaderService implements Service interface
func (*EventReaderService) IsRunning ¶
func (erS *EventReaderService) IsRunning() bool
IsRunning returns if the service is running
func (*EventReaderService) Reload ¶
func (erS *EventReaderService) Reload() (err error)
Reload handles the change of config
func (*EventReaderService) ServiceName ¶
func (erS *EventReaderService) ServiceName() string
ServiceName returns the service name
func (*EventReaderService) ShouldRun ¶
func (erS *EventReaderService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*EventReaderService) Shutdown ¶
func (erS *EventReaderService) Shutdown() (err error)
Shutdown stops the service
func (*EventReaderService) Start ¶
func (erS *EventReaderService) Start() (err error)
Start should handle the sercive start
type FreeswitchAgent ¶
FreeswitchAgent implements Agent interface
func (*FreeswitchAgent) IsRunning ¶
func (fS *FreeswitchAgent) IsRunning() bool
IsRunning returns if the service is running
func (*FreeswitchAgent) Reload ¶
func (fS *FreeswitchAgent) Reload() (err error)
Reload handles the change of config
func (*FreeswitchAgent) ServiceName ¶
func (fS *FreeswitchAgent) ServiceName() string
ServiceName returns the service name
func (*FreeswitchAgent) ShouldRun ¶
func (fS *FreeswitchAgent) ShouldRun() bool
ShouldRun returns if the service should be running
func (*FreeswitchAgent) Shutdown ¶
func (fS *FreeswitchAgent) Shutdown() (err error)
Shutdown stops the service
func (*FreeswitchAgent) Start ¶
func (fS *FreeswitchAgent) Start() (err error)
Start should handle the sercive start
type HTTPAgent ¶
HTTPAgent implements Agent interface
func (*HTTPAgent) ServiceName ¶
ServiceName returns the service name
type KamailioAgent ¶
KamailioAgent implements Agent interface
func (*KamailioAgent) IsRunning ¶
func (kam *KamailioAgent) IsRunning() bool
IsRunning returns if the service is running
func (*KamailioAgent) Reload ¶
func (kam *KamailioAgent) Reload() (err error)
Reload handles the change of config
func (*KamailioAgent) ServiceName ¶
func (kam *KamailioAgent) ServiceName() string
ServiceName returns the service name
func (*KamailioAgent) ShouldRun ¶
func (kam *KamailioAgent) ShouldRun() bool
ShouldRun returns if the service should be running
func (*KamailioAgent) Shutdown ¶
func (kam *KamailioAgent) Shutdown() (err error)
Shutdown stops the service
func (*KamailioAgent) Start ¶
func (kam *KamailioAgent) Start() (err error)
Start should handle the sercive start
type LoaderService ¶
LoaderService implements Service interface
func (*LoaderService) IsRunning ¶
func (ldrs *LoaderService) IsRunning() bool
IsRunning returns if the service is running
func (*LoaderService) Reload ¶
func (ldrs *LoaderService) Reload() (err error)
Reload handles the change of config
func (*LoaderService) ServiceName ¶
func (ldrs *LoaderService) ServiceName() string
ServiceName returns the service name
func (*LoaderService) ShouldRun ¶
func (ldrs *LoaderService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*LoaderService) Shutdown ¶
func (ldrs *LoaderService) Shutdown() (err error)
Shutdown stops the service
func (*LoaderService) Start ¶
func (ldrs *LoaderService) Start() (err error)
Start should handle the sercive start
type RadiusAgent ¶
RadiusAgent implements Agent interface
func (*RadiusAgent) IsRunning ¶
func (rad *RadiusAgent) IsRunning() bool
IsRunning returns if the service is running
func (*RadiusAgent) Reload ¶
func (rad *RadiusAgent) Reload() (err error)
Reload handles the change of config
func (*RadiusAgent) ServiceName ¶
func (rad *RadiusAgent) ServiceName() string
ServiceName returns the service name
func (*RadiusAgent) ShouldRun ¶
func (rad *RadiusAgent) ShouldRun() bool
ShouldRun returns if the service should be running
func (*RadiusAgent) Shutdown ¶
func (rad *RadiusAgent) Shutdown() (err error)
Shutdown stops the service
func (*RadiusAgent) Start ¶
func (rad *RadiusAgent) Start() (err error)
Start should handle the sercive start
type RalService ¶
RalService implements Service interface
func NewRalService ¶
func NewRalService(cfg *config.CGRConfig, cacheS *engine.CacheS, server *utils.Server, internalRALsChan, internalResponderChan chan birpc.ClientConnector, exitChan chan bool, connMgr *engine.ConnManager) *RalService
NewRalService returns the Ral Service
func (*RalService) GetResponder ¶
func (rals *RalService) GetResponder() servmanager.Service
GetResponder returns the responder service
func (*RalService) GetResponderService ¶
func (rals *RalService) GetResponderService() *ResponderService
GetResponder returns the responder service
func (*RalService) IsRunning ¶
func (rals *RalService) IsRunning() bool
IsRunning returns if the service is running
func (*RalService) Reload ¶
func (rals *RalService) Reload() (err error)
Reload handles the change of config
func (*RalService) ServiceName ¶
func (rals *RalService) ServiceName() string
ServiceName returns the service name
func (*RalService) ShouldRun ¶
func (rals *RalService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*RalService) Shutdown ¶
func (rals *RalService) Shutdown() (err error)
Shutdown stops the service
func (*RalService) Start ¶
func (rals *RalService) Start() (err error)
Start should handle the sercive start For this service the start should be called from RAL Service
type ResourceService ¶
ResourceService implements Service interface
func (*ResourceService) IsRunning ¶
func (reS *ResourceService) IsRunning() bool
IsRunning returns if the service is running
func (*ResourceService) Reload ¶
func (reS *ResourceService) Reload() (err error)
Reload handles the change of config
func (*ResourceService) ServiceName ¶
func (reS *ResourceService) ServiceName() string
ServiceName returns the service name
func (*ResourceService) ShouldRun ¶
func (reS *ResourceService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*ResourceService) Shutdown ¶
func (reS *ResourceService) Shutdown() (err error)
Shutdown stops the service
func (*ResourceService) Start ¶
func (reS *ResourceService) Start() (err error)
Start should handle the sercive start
type ResponderService ¶
ResponderService implements Service interface
func NewResponderService ¶
func NewResponderService(cfg *config.CGRConfig, server *utils.Server, internalRALsChan chan birpc.ClientConnector, exitChan chan bool) *ResponderService
NewResponderService returns the Resonder Service
func (*ResponderService) GetResponder ¶
func (resp *ResponderService) GetResponder() *engine.Responder
GetResponder returns the responder created
func (*ResponderService) IsRunning ¶
func (resp *ResponderService) IsRunning() bool
IsRunning returns if the service is running
func (*ResponderService) Reload ¶
func (resp *ResponderService) Reload() (err error)
Reload handles the change of config
func (*ResponderService) ServiceName ¶
func (resp *ResponderService) ServiceName() string
ServiceName returns the service name
func (*ResponderService) ShouldRun ¶
func (resp *ResponderService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*ResponderService) Shutdown ¶
func (resp *ResponderService) Shutdown() (err error)
Shutdown stops the service
func (*ResponderService) Start ¶
func (resp *ResponderService) Start() (err error)
Start should handle the sercive start For this service the start should be called from RAL Service
type SchedulerService ¶
SchedulerService implements Service interface
func NewSchedulerService ¶
func NewSchedulerService(cfg *config.CGRConfig, dm *DataDBService, cacheS *engine.CacheS, fltrSChan chan *engine.FilterS, server *utils.Server, internalSchedulerrSChan chan birpc.ClientConnector, connMgr *engine.ConnManager) *SchedulerService
NewSchedulerService returns the Scheduler Service
func (*SchedulerService) GetScheduler ¶
func (schS *SchedulerService) GetScheduler() *scheduler.Scheduler
GetScheduler returns the Scheduler
func (*SchedulerService) IsRunning ¶
func (schS *SchedulerService) IsRunning() bool
IsRunning returns if the service is running
func (*SchedulerService) Reload ¶
func (schS *SchedulerService) Reload() (err error)
Reload handles the change of config
func (*SchedulerService) ServiceName ¶
func (schS *SchedulerService) ServiceName() string
ServiceName returns the service name
func (*SchedulerService) ShouldRun ¶
func (schS *SchedulerService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*SchedulerService) Shutdown ¶
func (schS *SchedulerService) Shutdown() (err error)
Shutdown stops the service
func (*SchedulerService) Start ¶
func (schS *SchedulerService) Start() (err error)
Start should handle the sercive start
type SessionService ¶
SessionService implements Service interface
func (*SessionService) IsRunning ¶
func (smg *SessionService) IsRunning() bool
IsRunning returns if the service is running
func (*SessionService) Reload ¶
func (smg *SessionService) Reload() (err error)
Reload handles the change of config
func (*SessionService) ServiceName ¶
func (smg *SessionService) ServiceName() string
ServiceName returns the service name
func (*SessionService) ShouldRun ¶
func (smg *SessionService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*SessionService) Shutdown ¶
func (smg *SessionService) Shutdown() (err error)
Shutdown stops the service
func (*SessionService) Start ¶
func (smg *SessionService) Start() (err error)
Start should handle the service start
type StatService ¶
StatService implements Service interface
func (*StatService) IsRunning ¶
func (sts *StatService) IsRunning() bool
IsRunning returns if the service is running
func (*StatService) Reload ¶
func (sts *StatService) Reload() (err error)
Reload handles the change of config
func (*StatService) ServiceName ¶
func (sts *StatService) ServiceName() string
ServiceName returns the service name
func (*StatService) ShouldRun ¶
func (sts *StatService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*StatService) Shutdown ¶
func (sts *StatService) Shutdown() (err error)
Shutdown stops the service
func (*StatService) Start ¶
func (sts *StatService) Start() (err error)
Start should handle the sercive start
type StorDBService ¶
StorDBService implements Service interface
func NewStorDBService ¶
func NewStorDBService(cfg *config.CGRConfig) *StorDBService
NewStorDBService returns the StorDB Service
func (*StorDBService) IsRunning ¶
func (db *StorDBService) IsRunning() bool
IsRunning returns if the service is running
func (*StorDBService) RegisterSyncChan ¶
func (db *StorDBService) RegisterSyncChan(c chan engine.StorDB)
RegisterSyncChan used by dependent subsystems to register a chanel to reload only the storDB(thread safe)
func (*StorDBService) Reload ¶
func (db *StorDBService) Reload() (err error)
Reload handles the change of config
func (*StorDBService) ServiceName ¶
func (db *StorDBService) ServiceName() string
ServiceName returns the service name
func (*StorDBService) ShouldRun ¶
func (db *StorDBService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*StorDBService) Shutdown ¶
func (db *StorDBService) Shutdown() (err error)
Shutdown stops the service
func (*StorDBService) Start ¶
func (db *StorDBService) Start() (err error)
Start should handle the sercive start
type SupplierService ¶
SupplierService implements Service interface
func (*SupplierService) IsRunning ¶
func (splS *SupplierService) IsRunning() bool
IsRunning returns if the service is running
func (*SupplierService) Reload ¶
func (splS *SupplierService) Reload() (err error)
Reload handles the change of config
func (*SupplierService) ServiceName ¶
func (splS *SupplierService) ServiceName() string
ServiceName returns the service name
func (*SupplierService) ShouldRun ¶
func (splS *SupplierService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*SupplierService) Shutdown ¶
func (splS *SupplierService) Shutdown() (err error)
Shutdown stops the service
func (*SupplierService) Start ¶
func (splS *SupplierService) Start() (err error)
Start should handle the sercive start
type ThresholdService ¶
ThresholdService implements Service interface
func (*ThresholdService) IsRunning ¶
func (thrs *ThresholdService) IsRunning() bool
IsRunning returns if the service is running
func (*ThresholdService) Reload ¶
func (thrs *ThresholdService) Reload() (err error)
Reload handles the change of config
func (*ThresholdService) ServiceName ¶
func (thrs *ThresholdService) ServiceName() string
ServiceName returns the service name
func (*ThresholdService) ShouldRun ¶
func (thrs *ThresholdService) ShouldRun() bool
ShouldRun returns if the service should be running
func (*ThresholdService) Shutdown ¶
func (thrs *ThresholdService) Shutdown() (err error)
Shutdown stops the service
func (*ThresholdService) Start ¶
func (thrs *ThresholdService) Start() (err error)
Start should handle the sercive start
Source Files
¶
- analyzers.go
- apierv1.go
- apierv2.go
- asteriskagent.go
- attributes.go
- cdrs.go
- chargers.go
- datadb.go
- diameteragent.go
- dispatchers.go
- dnsagent.go
- ers.go
- freeswitchagent.go
- httpagent.go
- kamailioagent.go
- loaders.go
- radiusagent.go
- rals.go
- resources.go
- responders.go
- schedulers.go
- sessions.go
- stats.go
- stordb.go
- suppliers.go
- thresholds.go