Mcc string
Mnc string
}
+ StateChangeMessageChannel string
}
func ParseConfiguration() *Configuration {
config.KeepAliveDelayMs = viper.GetInt("KeepAliveDelayMs")
config.E2TInstanceDeletionTimeoutMs = viper.GetInt("e2tInstanceDeletionTimeoutMs")
config.populateGlobalRicIdConfig(viper.Sub("globalRicId"))
+ config.StateChangeMessageChannel = viper.GetString("stateChangeMessageChannel")
return &config
}
func validateMcc(mcc string) error {
if len(mcc) == 0{
- return errors.New("#configuration.validateMcc - mcc is emtpy or missing\n")
+ return errors.New("#configuration.validateMcc - mcc is missing or empty\n")
}
if len(mcc) != 3{
func validateMnc(mnc string) error {
if len(mnc) == 0{
- return errors.New("#configuration.validateMnc - mnc is emtpy or missing\n")
+ return errors.New("#configuration.validateMnc - mnc is missing or empty\n")
}
if len(mnc) < 2 || len(mnc) >3 {
func validateRicId(ricId string) error{
if len(ricId) == 0{
- return errors.New("#configuration.validateRicId - ricId is emtpy or missing\n")
+ return errors.New("#configuration.validateRicId - ricId is missing or empty\n")
}
if len(ricId) != 5 {
return fmt.Sprintf("{logging.logLevel: %s, http.port: %d, rmr: { port: %d, maxMsgSize: %d}, routingManager.baseUrl: %s, "+
"notificationResponseBuffer: %d, bigRedButtonTimeoutSec: %d, maxRnibConnectionAttempts: %d, "+
"rnibRetryIntervalMs: %d, keepAliveResponseTimeoutMs: %d, keepAliveDelayMs: %d, e2tInstanceDeletionTimeoutMs: %d, "+
- "globalRicId: { ricId: %s, mcc: %s, mnc: %s}",
+ "globalRicId: { ricId: %s, mcc: %s, mnc: %s}, StateChangeMessageChannel: %s",
c.Logging.LogLevel,
c.Http.Port,
c.Rmr.Port,
c.GlobalRicId.RicId,
c.GlobalRicId.Mcc,
c.GlobalRicId.Mnc,
+ c.StateChangeMessageChannel,
)
}