mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-13 19:56:38 +05:00
Improving NewDispatcherService ServiceManagerS and its constant
This commit is contained in:
committed by
Dan Christian Bogos
parent
affaf7a5f7
commit
cbe17dd080
@@ -255,9 +255,9 @@ func NewDispatcherService(val interface{}) (_ IntService, err error) {
|
||||
case strings.HasPrefix(m, utils.LoaderS):
|
||||
m = strings.TrimPrefix(m, utils.LoaderS)
|
||||
key = utils.LoaderS
|
||||
case strings.HasPrefix(m, utils.ServiceManager):
|
||||
m = strings.TrimPrefix(m, utils.ServiceManager)
|
||||
key = utils.ServiceManager
|
||||
case strings.HasPrefix(m, utils.ServiceManagerS):
|
||||
m = strings.TrimPrefix(m, utils.ServiceManagerS)
|
||||
key = utils.ServiceManagerS
|
||||
}
|
||||
if len(m) < 2 || unicode.ToLower(rune(m[0])) != 'v' {
|
||||
continue
|
||||
|
||||
@@ -906,22 +906,23 @@ const (
|
||||
|
||||
// Services
|
||||
const (
|
||||
SessionS = "SessionS"
|
||||
AttributeS = "AttributeS"
|
||||
RouteS = "RouteS"
|
||||
ResourceS = "ResourceS"
|
||||
StatService = "StatS"
|
||||
FilterS = "FilterS"
|
||||
ThresholdS = "ThresholdS"
|
||||
DispatcherS = "DispatcherS"
|
||||
RegistrarC = "RegistrarC"
|
||||
LoaderS = "LoaderS"
|
||||
ChargerS = "ChargerS"
|
||||
TPeS = "TPeS"
|
||||
CacheS = "CacheS"
|
||||
AnalyzerS = "AnalyzerS"
|
||||
CDRServer = "CDRServer"
|
||||
GuardianS = "GuardianS"
|
||||
SessionS = "SessionS"
|
||||
AttributeS = "AttributeS"
|
||||
RouteS = "RouteS"
|
||||
ResourceS = "ResourceS"
|
||||
StatService = "StatS"
|
||||
FilterS = "FilterS"
|
||||
ThresholdS = "ThresholdS"
|
||||
DispatcherS = "DispatcherS"
|
||||
RegistrarC = "RegistrarC"
|
||||
LoaderS = "LoaderS"
|
||||
ChargerS = "ChargerS"
|
||||
TPeS = "TPeS"
|
||||
CacheS = "CacheS"
|
||||
AnalyzerS = "AnalyzerS"
|
||||
CDRServer = "CDRServer"
|
||||
GuardianS = "GuardianS"
|
||||
ServiceManagerS = "ServiceManager"
|
||||
)
|
||||
|
||||
// Lower service names
|
||||
|
||||
Reference in New Issue
Block a user