Documentation
¶
Index ¶
- Constants
- func ElementText(xmlElement *xmlquery.Node, elmntPath string) (string, error)
- func HandlerConfigS(w http.ResponseWriter, r *http.Request)
- func NewFWVProvider(record string) (dP utils.DataProvider)
- func NewObjectDP(obj any) utils.DataProvider
- func NewSliceDP(record []string, indxAls map[string]int) (dP utils.DataProvider)
- func NewXMLProvider(req *xmlquery.Node, cdrPath utils.HierarchyPath) (dP utils.DataProvider)
- func ReadEnv(key string) (string, error)
- func RemoveRPCCons(rpcConns RPCConns, hosts utils.StringSet) (connIDs utils.StringSet)
- func SetCgrConfig(cfg *CGRConfig)
- func UpdateRPCCons(rpcConns RPCConns, newHosts map[string]*RemoteHost) (connIDs utils.StringSet)
- type AMQPOpts
- type AMQPROpts
- type APIBanCfg
- type APIBanJsonCfg
- type AWSOpts
- type AWSROpts
- type AnalyzerSCfg
- type AnalyzerSJsonCfg
- type ApierCfg
- type ApierJsonCfg
- type AstConnJsonCfg
- type AsteriskAgentCfg
- type AsteriskAgentJsonCfg
- type AsteriskConnCfg
- type AttributeSCfg
- type AttributeSJsonCfg
- type AttributesOpts
- type AttributesOptsJson
- type CGRConfig
- func (cfg *CGRConfig) APIBanCfg() *APIBanCfg
- func (cfg *CGRConfig) AnalyzerSCfg() *AnalyzerSCfg
- func (cfg *CGRConfig) ApierCfg() *ApierCfg
- func (cfg *CGRConfig) AsMapInterface(separator string) (mp map[string]any)
- func (cfg *CGRConfig) AsteriskAgentCfg() *AsteriskAgentCfg
- func (cfg *CGRConfig) AttributeSCfg() *AttributeSCfg
- func (cfg *CGRConfig) CacheCfg() *CacheCfg
- func (cfg *CGRConfig) CdrsCfg() *CdrsCfg
- func (cfg *CGRConfig) ChargerSCfg() *ChargerSCfg
- func (cfg *CGRConfig) CheckConfigSanity() error
- func (cfg *CGRConfig) Clone() (cln *CGRConfig)
- func (cfg *CGRConfig) ConfigSCfg() *ConfigSCfg
- func (cfg *CGRConfig) CoreSCfg() *CoreSCfg
- func (cfg *CGRConfig) DNSAgentCfg() *DNSAgentCfg
- func (cfg *CGRConfig) DataDbCfg() *DataDbCfg
- func (cfg *CGRConfig) DiameterAgentCfg() *DiameterAgentCfg
- func (cfg *CGRConfig) DispatcherSCfg() *DispatcherSCfg
- func (cfg *CGRConfig) EEsCfg() *EEsCfg
- func (cfg *CGRConfig) EEsNoLksCfg() *EEsCfg
- func (cfg *CGRConfig) ERsCfg() *ERsCfg
- func (cfg *CGRConfig) FilterSCfg() *FilterSCfg
- func (cfg *CGRConfig) FsAgentCfg() *FsAgentCfg
- func (cfg *CGRConfig) GeneralCfg() *GeneralCfg
- func (cfg *CGRConfig) GetDataProvider() utils.MapStorage
- func (cfg *CGRConfig) GetReloadChan(sectID string) chan struct{}
- func (cfg *CGRConfig) HTTPAgentCfg() HTTPAgentCfgs
- func (cfg *CGRConfig) HTTPCfg() *HTTPCfg
- func (cfg *CGRConfig) IPsCfg() *IPsCfg
- func (cfg *CGRConfig) JanusAgentCfg() *JanusAgentCfg
- func (cfg *CGRConfig) KamAgentCfg() *KamAgentCfg
- func (cfg *CGRConfig) ListenCfg() *ListenCfg
- func (cfg *CGRConfig) LoaderCgrCfg() *LoaderCgrCfg
- func (cfg *CGRConfig) LockSections(lkIDs ...string)
- func (cfg *CGRConfig) MailerCfg() *MailerCfg
- func (cfg *CGRConfig) MigratorCgrCfg() *MigratorCgrCfg
- func (cfg *CGRConfig) PrometheusAgentCfg() *PrometheusAgentCfg
- func (cfg *CGRConfig) RLocks(lkIDs ...string)
- func (cfg *CGRConfig) RPCConns() RPCConns
- func (cfg *CGRConfig) RUnlocks(lkIDs ...string)
- func (cfg *CGRConfig) RadiusAgentCfg() *RadiusAgentCfg
- func (cfg *CGRConfig) RalsCfg() *RalsCfg
- func (cfg *CGRConfig) RankingSCfg() *RankingSCfg
- func (cfg *CGRConfig) RegistrarCCfg() *RegistrarCCfgs
- func (cfg *CGRConfig) ResourceSCfg() *ResourceSConfig
- func (cfg *CGRConfig) RouteSCfg() *RouteSCfg
- func (cfg *CGRConfig) SIPAgentCfg() *SIPAgentCfg
- func (cfg *CGRConfig) SchedulerCfg() *SchedulerCfg
- func (cfg *CGRConfig) SentryPeerCfg() *SentryPeerCfg
- func (cfg *CGRConfig) SessionSCfg() *SessionSCfg
- func (cfg *CGRConfig) StatSCfg() *StatSCfg
- func (cfg *CGRConfig) StorDbCfg() *StorDbCfg
- func (cfg *CGRConfig) SureTaxCfg() *SureTaxCfg
- func (cfg *CGRConfig) TLSCfg() *TLSCfg
- func (cfg *CGRConfig) TemplatesCfg() FcTemplates
- func (cfg *CGRConfig) ThresholdSCfg() *ThresholdSCfg
- func (cfg *CGRConfig) TrendSCfg() *TrendSCfg
- func (cfg *CGRConfig) UnlockSections(lkIDs ...string)
- func (cfg *CGRConfig) V1GetConfig(ctx *context.Context, args *SectionWithAPIOpts, reply *map[string]any) (err error)
- func (cfg *CGRConfig) V1GetConfigAsJSON(ctx *context.Context, args *SectionWithAPIOpts, reply *string) (err error)
- func (cfg *CGRConfig) V1ReloadConfig(ctx *context.Context, args *ReloadArgs, reply *string) (err error)
- func (cfg *CGRConfig) V1SetConfig(ctx *context.Context, args *SetConfigArgs, reply *string) (err error)
- func (cfg *CGRConfig) V1SetConfigFromJSON(ctx *context.Context, args *SetConfigFromJSONArgs, reply *string) (err error)
- type CSVROpts
- type CacheCfg
- type CacheJsonCfg
- type CacheParamCfg
- type CacheParamJsonCfg
- type CdrsCfg
- type CdrsJsonCfg
- type CgrJsonCfg
- func (jsnCfg CgrJsonCfg) AnalyzerCfgJson() (*AnalyzerSJsonCfg, error)
- func (jsnCfg CgrJsonCfg) ApiBanCfgJson() (*APIBanJsonCfg, error)
- func (jsnCfg CgrJsonCfg) ApierCfgJson() (*ApierJsonCfg, error)
- func (jsnCfg CgrJsonCfg) AsteriskAgentJsonCfg() (*AsteriskAgentJsonCfg, error)
- func (cgrJsn CgrJsonCfg) AttributeServJsonCfg() (*AttributeSJsonCfg, error)
- func (jsnCfg CgrJsonCfg) CacheJsonCfg() (*CacheJsonCfg, error)
- func (jsnCfg CgrJsonCfg) CdrsJsonCfg() (*CdrsJsonCfg, error)
- func (cgrJsn CgrJsonCfg) ChargerServJsonCfg() (*ChargerSJsonCfg, error)
- func (jsnCfg CgrJsonCfg) ConfigSJsonCfg() (*ConfigSCfgJson, error)
- func (jsnCfg CgrJsonCfg) CoreSCfgJson() (*CoreSJsonCfg, error)
- func (jsnCfg CgrJsonCfg) DNSAgentJsonCfg() (da *DNSAgentJsonCfg, err error)
- func (jsnCfg CgrJsonCfg) DbJsonCfg(section string) (*DbJsonCfg, error)
- func (jsnCfg CgrJsonCfg) DiameterAgentJsonCfg() (*DiameterAgentJsonCfg, error)
- func (jsnCfg CgrJsonCfg) DispatcherSJsonCfg() (*DispatcherSJsonCfg, error)
- func (jsnCfg CgrJsonCfg) EEsJsonCfg() (erSCfg *EEsJsonCfg, err error)
- func (jsnCfg CgrJsonCfg) ERsJsonCfg() (erSCfg *ERsJsonCfg, err error)
- func (jsnCfg CgrJsonCfg) FilterSJsonCfg() (*FilterSJsonCfg, error)
- func (jsnCfg CgrJsonCfg) FreeswitchAgentJsonCfg() (*FreeswitchAgentJsonCfg, error)
- func (jsnCfg CgrJsonCfg) GeneralJsonCfg() (*GeneralJsonCfg, error)
- func (jsnCfg CgrJsonCfg) HttpAgentJsonCfg() (*[]*HttpAgentJsonCfg, error)
- func (jsnCfg CgrJsonCfg) HttpJsonCfg() (*HTTPJsonCfg, error)
- func (jc CgrJsonCfg) IPsJsonCfg() (*IPsJsonCfg, error)
- func (jsnCfg CgrJsonCfg) JanusAgentCfgJson() (*JanusAgentJsonCfg, error)
- func (jsnCfg CgrJsonCfg) KamAgentJsonCfg() (*KamAgentJsonCfg, error)
- func (jsnCfg CgrJsonCfg) ListenJsonCfg() (*ListenJsonCfg, error)
- func (jsnCfg CgrJsonCfg) LoaderCfgJson() (*LoaderCfgJson, error)
- func (jsnCfg CgrJsonCfg) MailerJsonCfg() (*MailerJsonCfg, error)
- func (jsnCfg CgrJsonCfg) MigratorCfgJson() (*MigratorCfgJson, error)
- func (jc CgrJsonCfg) PrometheusAgentJsonCfg() (*PrometheusAgentJsonCfg, error)
- func (jsnCfg CgrJsonCfg) RPCConnJsonCfg() (map[string]*RPCConnsJson, error)
- func (jsnCfg CgrJsonCfg) RadiusAgentJsonCfg() (*RadiusAgentJsonCfg, error)
- func (jsnCfg CgrJsonCfg) RalsJsonCfg() (*RalsJsonCfg, error)
- func (jsnCfg CgrJsonCfg) RankingsJsonCfg() (*RankingsJsonCfg, error)
- func (jsnCfg CgrJsonCfg) RegistrarCJsonCfgs() (*RegistrarCJsonCfgs, error)
- func (jsnCfg CgrJsonCfg) ResourceSJsonCfg() (*ResourceSJsonCfg, error)
- func (jsnCfg CgrJsonCfg) RouteSJsonCfg() (*RouteSJsonCfg, error)
- func (jsnCfg CgrJsonCfg) SIPAgentJsonCfg() (*SIPAgentJsonCfg, error)
- func (jsnCfg CgrJsonCfg) SchedulerJsonCfg() (*SchedulerJsonCfg, error)
- func (jsnCfg CgrJsonCfg) SentryPeerJson() (*SentryPeerJsonCfg, error)
- func (jsnCfg CgrJsonCfg) SessionSJsonCfg() (*SessionSJsonCfg, error)
- func (jsnCfg CgrJsonCfg) StatSJsonCfg() (*StatServJsonCfg, error)
- func (jsnCfg CgrJsonCfg) SureTaxJsonCfg() (*SureTaxJsonCfg, error)
- func (jsnCfg CgrJsonCfg) TemplateSJsonCfg() (map[string][]*FcTemplateJsonCfg, error)
- func (jsnCfg CgrJsonCfg) ThresholdSJsonCfg() (*ThresholdSJsonCfg, error)
- func (jsnCfg CgrJsonCfg) TlsCfgJson() (*TlsJsonCfg, error)
- func (jsnCfg CgrJsonCfg) TrendsJsonCfg() (*TrendsJsonCfg, error)
- type ChargerSCfg
- type ChargerSJsonCfg
- type ConfigSCfg
- type ConfigSCfgJson
- type CoreSCfg
- type CoreSJsonCfg
- type DAClientOpts
- type DAClientOptsJson
- type DBOptsJson
- type DNSAgentCfg
- type DNSAgentJsonCfg
- type DataDBOpts
- type DataDbCfg
- type DbJsonCfg
- type DiamListenerJsnCfg
- type DiameterAgentCfg
- type DiameterAgentJsonCfg
- type DiameterListener
- type DispatcherSCfg
- type DispatcherSJsonCfg
- type DnsListener
- type DnsListenerJsnCfg
- type EEsCfg
- type EEsJsonCfg
- type ERsCfg
- type ERsJsonCfg
- type ElsOpts
- type EventExporterCfg
- func (eeC *EventExporterCfg) AsMapInterface(separator string) (initialMP map[string]any)
- func (eeC *EventExporterCfg) Clone() (cln *EventExporterCfg)
- func (eeC *EventExporterCfg) ComputeFields()
- func (eeC *EventExporterCfg) ContentFields() []*FCTemplate
- func (eeC *EventExporterCfg) HeaderFields() []*FCTemplate
- func (eeC *EventExporterCfg) TrailerFields() []*FCTemplate
- type EventExporterJsonCfg
- type EventExporterOpts
- type EventExporterOptsJson
- type EventReaderCfg
- type EventReaderJsonCfg
- type EventReaderOpts
- type EventReaderOptsJson
- type FCTemplate
- func FCTemplatesFromFCTemplatesJSONCfg(jsnCfgFlds []*FcTemplateJsonCfg, separator string) (retFields []*FCTemplate, err error)
- func InflateTemplates(fcts []*FCTemplate, msgTpls map[string][]*FCTemplate) ([]*FCTemplate, error)
- func NewFCTemplateFromFCTemplateJSONCfg(jsnCfg *FcTemplateJsonCfg, separator string) (*FCTemplate, error)
- type FWVProvider
- type FailedPostsCfg
- type FailedPostsJsonCfg
- type FcTemplateJsonCfg
- type FcTemplates
- type FilterSCfg
- type FilterSJsonCfg
- type FreeswitchAgentJsonCfg
- type FsAgentCfg
- type FsConnCfg
- type FsConnJsonCfg
- type GeneralCfg
- type GeneralJsonCfg
- type HTTPAgentCfg
- type HTTPAgentCfgs
- type HTTPCfg
- type HTTPClientOptsJson
- type HTTPJsonCfg
- type HttpAgentJsonCfg
- type IPsCfg
- type IPsJsonCfg
- type IPsOpts
- type IPsOptsJson
- type ItemOpt
- type ItemOptJson
- type JanusAgentCfg
- type JanusAgentJsonCfg
- type JanusConn
- type JanusConnJsonCfg
- type KafkaOpts
- type KafkaROpts
- type KamAgentCfg
- type KamAgentJsonCfg
- type KamConnCfg
- type KamConnJsonCfg
- type ListenCfg
- type ListenJsonCfg
- type LoaderCfgJson
- type LoaderCgrCfg
- type MailerCfg
- type MailerJsonCfg
- type MigratorCfgJson
- type MigratorCgrCfg
- type NATSOpts
- type NATSROpts
- type ObjectDP
- type OsipsConnJsonCfg
- type PrometheusAgentCfg
- type PrometheusAgentJsonCfg
- type RPCConn
- type RPCConns
- type RPCConnsJson
- type RPCOpts
- type RSRParser
- func (prsr *RSRParser) AttrName() string
- func (prsr *RSRParser) Clone() (cln *RSRParser)
- func (prsr *RSRParser) Compile() (err error)
- func (prsr *RSRParser) CompileDynRule(dP utils.DataProvider) (p string, err error)
- func (prsr *RSRParser) ParseDataProvider(dP utils.DataProvider) (out string, err error)
- func (prsr *RSRParser) ParseDataProviderWithInterfaces(dP utils.DataProvider) (out string, err error)
- func (prsr *RSRParser) ParseValue(value any) (out string, err error)
- type RSRParsers
- func (prsrs RSRParsers) Clone() (cln RSRParsers)
- func (prsrs RSRParsers) Compile() (err error)
- func (prsrs RSRParsers) GetIfaceFromValues(evNm utils.DataProvider) (iFaceVals []any, err error)
- func (prsrs RSRParsers) GetRule(sep string) (out string)
- func (prsrs RSRParsers) ParseDataProvider(dP utils.DataProvider) (out string, err error)
- func (prsrs RSRParsers) ParseDataProviderWithInterfaces(dP utils.DataProvider) (out string, err error)
- func (prsrs RSRParsers) ParseValue(value any) (out string, err error)
- type RadiListenerJsnCfg
- type RadiusAgentCfg
- type RadiusAgentJsonCfg
- type RadiusListener
- type RalsCfg
- type RalsJsonCfg
- type RankingSCfg
- type RankingsJsonCfg
- type RegistrarCCfg
- type RegistrarCCfgs
- type RegistrarCJsonCfg
- type RegistrarCJsonCfgs
- type ReloadArgs
- type RemoteHost
- type RemoteHostJson
- type RemoteHostJsonWithTenant
- type ReqProcessorJsnCfg
- type RequestProcessor
- type ResourceSConfig
- type ResourceSJsonCfg
- type ResourcesOpts
- type ResourcesOptsJson
- type RjReader
- func (rjr *RjReader) Close() error
- func (rjr *RjReader) Decode(cfg any) (err error)
- func (rjr *RjReader) HandleJSONError(err error) error
- func (rjr *RjReader) PeekByteWC() (bit byte, err error)
- func (rjr *RjReader) Read(p []byte) (int, error)
- func (rjr *RjReader) ReadByte() (bit byte, err error)
- func (rjr *RjReader) ReadByteWC() (bit byte, err error)
- func (rjr *RjReader) UnreadByte() (err error)
- type RouteSCfg
- type RouteSJsonCfg
- type RoutesOpts
- type RoutesOptsJson
- type SIPAgentCfg
- type SIPAgentJsonCfg
- type SQLOpts
- type SQLROpts
- type STIRJsonCfg
- type STIRcfg
- type SchedulerCfg
- type SchedulerJsonCfg
- type SectionWithAPIOpts
- type SentryPeerCfg
- type SentryPeerJsonCfg
- type SessionSCfg
- type SessionSJsonCfg
- type SetConfigArgs
- type SetConfigFromJSONArgs
- type SliceDP
- type StatSCfg
- type StatServJsonCfg
- type StatsOpts
- type StatsOptsJson
- type StorDBOpts
- type StorDbCfg
- type SureTaxCfg
- type SureTaxJsonCfg
- type TLSCfg
- type ThresholdSCfg
- type ThresholdSJsonCfg
- type ThresholdsOpts
- type ThresholdsOptsJson
- type TlsJsonCfg
- type TrendSCfg
- type TrendsJsonCfg
- type XMLProvider
Constants ¶
const ( GENERAL_JSN = "general" CACHE_JSN = "caches" LISTEN_JSN = "listen" HTTP_JSN = "http" DATADB_JSN = "data_db" STORDB_JSN = "stor_db" FilterSjsn = "filters" RALS_JSN = "rals" SCHEDULER_JSN = "schedulers" CDRS_JSN = "cdrs" SessionSJson = "sessions" FreeSWITCHAgentJSN = "freeswitch_agent" KamailioAgentJSN = "kamailio_agent" AsteriskAgentJSN = "asterisk_agent" DA_JSN = "diameter_agent" RA_JSN = "radius_agent" HttpAgentJson = "http_agent" PrometheusAgentJSON = "prometheus_agent" ATTRIBUTE_JSN = "attributes" RESOURCES_JSON = "resources" STATS_JSON = "stats" THRESHOLDS_JSON = "thresholds" TRENDS_JSON = "trends" RANKINGS_JSON = "rankings" RouteSJson = "routes" MAILER_JSN = "mailer" SURETAX_JSON = "suretax" DispatcherSJson = "dispatchers" RegistrarCJson = "registrarc" CgrLoaderCfgJson = "loader" CgrMigratorCfgJson = "migrator" ChargerSCfgJson = "chargers" TlsCfgJson = "tls" AnalyzerCfgJson = "analyzers" ApierS = "apiers" DNSAgentJson = "dns_agent" ERsJson = "ers" EEsJson = "ees" RPCConnsJsonName = "rpc_conns" SIPAgentJson = "sip_agent" JanusAgentJson = "janus_agent" TemplatesJson = "templates" ConfigSJson = "configs" APIBanCfgJson = "apiban" SentryPeerCfgJson = "sentrypeer" CoreSCfgJson = "cores" IPsJSON = "ips" )
const CGRATES_CFG_JSON = `` /* 86076-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ElementText ¶
ElementText will process the node to extract the elementName's text out of it (only first one found) returns utils.ErrNotFound if the element is not found in the node Make the method exportable until we remove the ers
func HandlerConfigS ¶ added in v0.11.0
func HandlerConfigS(w http.ResponseWriter, r *http.Request)
HandlerConfigS handler for httpServer to register the configs
func NewFWVProvider ¶
func NewFWVProvider(record string) (dP utils.DataProvider)
NewFWVProvider constructs a utils.DataProvider
func NewObjectDP ¶
func NewObjectDP(obj any) utils.DataProvider
NewObjectDP constructs a utils.DataProvider
func NewSliceDP ¶
func NewSliceDP(record []string, indxAls map[string]int) (dP utils.DataProvider)
NewSliceDP constructs a utils.DataProvider
func NewXMLProvider ¶ added in v0.11.0
func NewXMLProvider(req *xmlquery.Node, cdrPath utils.HierarchyPath) (dP utils.DataProvider)
NewXMLProvider constructs a utils.DataProvider
func RemoveRPCCons ¶ added in v0.11.0
RemoveRPCCons will parse each conn and reset only the conns that have the same ID
func SetCgrConfig ¶
func SetCgrConfig(cfg *CGRConfig)
SetCgrConfig is used to set system configuration from other places
func UpdateRPCCons ¶ added in v0.11.0
func UpdateRPCCons(rpcConns RPCConns, newHosts map[string]*RemoteHost) (connIDs utils.StringSet)
UpdateRPCCons will parse each conn and update only the conns that have the same ID
Types ¶
type AMQPOpts ¶ added in v0.11.0
type AMQPROpts ¶ added in v0.11.0
type APIBanCfg ¶ added in v0.11.0
type APIBanCfg struct {
Keys []string
}
APIBanCfg the config for the APIBan Keys
func (*APIBanCfg) AsMapInterface ¶ added in v0.11.0
AsMapInterface returns the config as a map[string]any
type APIBanJsonCfg ¶ added in v0.11.0
type AWSOpts ¶ added in v0.11.0
type AWSROpts ¶ added in v0.11.0
type AnalyzerSCfg ¶
type AnalyzerSCfg struct {
Enabled bool
DBPath string
IndexType string
TTL time.Duration
CleanupInterval time.Duration
}
AnalyzerSCfg is the configuration of analyzer service
func (*AnalyzerSCfg) AsMapInterface ¶ added in v0.10.1
func (alS *AnalyzerSCfg) AsMapInterface() map[string]any
AsMapInterface returns the config as a map[string]any
func (*AnalyzerSCfg) Clone ¶ added in v0.11.0
func (alS *AnalyzerSCfg) Clone() *AnalyzerSCfg
Clone returns a deep copy of AnalyzerSCfg
type AnalyzerSJsonCfg ¶
type AnalyzerSJsonCfg struct {
Enabled *bool
Db_path *string
Index_type *string
Ttl *string
Cleanup_interval *string
}
Analyzer service json config section
type ApierCfg ¶
type ApierCfg struct {
Enabled bool
CachesConns []string // connections towards Cache
SchedulerConns []string // connections towards Scheduler
AttributeSConns []string // connections towards AttributeS
EEsConns []string // connections towards EEs
SessionSConns []string // connections towards SessionS
}
ApierCfg is the configuration of Apier service
func (*ApierCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type ApierJsonCfg ¶
type AstConnJsonCfg ¶
type AsteriskAgentCfg ¶
type AsteriskAgentCfg struct {
Enabled bool
SessionSConns []string
CreateCDR bool
RouteProfile bool
AsteriskConns []*AsteriskConnCfg
}
AsteriskAgentCfg the config section that describes the Asterisk Agent
func (*AsteriskAgentCfg) AsMapInterface ¶ added in v0.10.1
func (aCfg *AsteriskAgentCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*AsteriskAgentCfg) Clone ¶ added in v0.11.0
func (aCfg *AsteriskAgentCfg) Clone() (cln *AsteriskAgentCfg)
Clone returns a deep copy of AsteriskAgentCfg
type AsteriskAgentJsonCfg ¶
type AsteriskAgentJsonCfg struct {
Enabled *bool
Sessions_conns *[]string
Create_cdr *bool
Route_profile *bool
Asterisk_conns *[]*AstConnJsonCfg
}
type AsteriskConnCfg ¶
type AsteriskConnCfg struct {
Alias string
Address string
User string
Password string
ConnectAttempts int
Reconnects int
AriWebSocket bool
MaxReconnectInterval time.Duration
}
AsteriskConnCfg the config for a Asterisk connection
func NewDefaultAsteriskConnCfg ¶
func NewDefaultAsteriskConnCfg() *AsteriskConnCfg
NewDefaultAsteriskConnCfg is uses stored defaults so we can pre-populate by loading from JSON config
func (*AsteriskConnCfg) AsMapInterface ¶ added in v0.10.1
func (aConnCfg *AsteriskConnCfg) AsMapInterface() map[string]any
AsMapInterface returns the config as a map[string]any
func (*AsteriskConnCfg) Clone ¶ added in v0.11.0
func (aConnCfg *AsteriskConnCfg) Clone() *AsteriskConnCfg
Clone returns a deep copy of AsteriskConnCfg
type AttributeSCfg ¶
type AttributeSCfg struct {
Enabled bool
ResourceSConns []string
StatSConns []string
ApierSConns []string
IndexedSelects bool
StringIndexedFields *[]string
PrefixIndexedFields *[]string
SuffixIndexedFields *[]string
ExistsIndexedFields *[]string
NestedFields bool
AnyContext bool
Opts *AttributesOpts
}
AttributeSCfg is the configuration of attribute service
func (*AttributeSCfg) AsMapInterface ¶ added in v0.10.1
func (alS *AttributeSCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*AttributeSCfg) Clone ¶ added in v0.11.0
func (alS *AttributeSCfg) Clone() (cln *AttributeSCfg)
Clone returns a deep copy of AttributeSCfg
type AttributeSJsonCfg ¶
type AttributeSJsonCfg struct {
Enabled *bool
Stats_conns *[]string
Resources_conns *[]string
Apiers_conns *[]string
Indexed_selects *bool
String_indexed_fields *[]string
Prefix_indexed_fields *[]string
Suffix_indexed_fields *[]string
ExistsIndexedFields *[]string `json:"exists_indexed_fields"`
Nested_fields *bool // applies when indexed fields is not defined
Any_context *bool
Opts *AttributesOptsJson
}
Attribute service config section
type AttributesOpts ¶ added in v0.11.0
type AttributesOpts struct {
ProfileIDs []string
ProfileRuns int
ProfileIgnoreFilters bool
ProcessRuns int
Context *string
}
func (*AttributesOpts) Clone ¶ added in v0.11.0
func (attrOpts *AttributesOpts) Clone() *AttributesOpts
type AttributesOptsJson ¶ added in v0.11.0
type CGRConfig ¶
type CGRConfig struct {
DataFolderPath string // Path towards data folder, for tests internal usage, not loading out of .json options
ConfigPath string // Path towards config
// contains filtered or unexported fields
}
CGRConfig holds system configuration, defaults are overwritten with values from config file if found
func CgrConfig ¶
func CgrConfig() *CGRConfig
CgrConfig is used to retrieve system configuration from other packages
func NewCGRConfigFromJSONStringWithDefaults ¶ added in v0.11.0
NewCGRConfigFromJSONStringWithDefaults returns the given config with the default option loaded
func NewCGRConfigFromPath ¶
NewCGRConfigFromPath reads all json files out of a folder/subfolders and loads them up in lexical order
func NewDefaultCGRConfig ¶
func NewDefaultCGRConfig() (cfg *CGRConfig)
NewDefaultCGRConfig returns the default configuration
func (*CGRConfig) AnalyzerSCfg ¶
func (cfg *CGRConfig) AnalyzerSCfg() *AnalyzerSCfg
AnalyzerSCfg returns the config for AnalyzerS
func (*CGRConfig) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
func (*CGRConfig) AsteriskAgentCfg ¶
func (cfg *CGRConfig) AsteriskAgentCfg() *AsteriskAgentCfg
AsteriskAgentCfg returns the config for AsteriskAgent
func (*CGRConfig) AttributeSCfg ¶
func (cfg *CGRConfig) AttributeSCfg() *AttributeSCfg
AttributeSCfg returns the config for AttributeS
func (*CGRConfig) ChargerSCfg ¶
func (cfg *CGRConfig) ChargerSCfg() *ChargerSCfg
ChargerSCfg returns the config for ChargerS
func (*CGRConfig) CheckConfigSanity ¶
CheckConfigSanity is used in cgr-engine
func (*CGRConfig) ConfigSCfg ¶ added in v0.11.0
func (cfg *CGRConfig) ConfigSCfg() *ConfigSCfg
ConfigSCfg returns the configs configuration
func (*CGRConfig) DNSAgentCfg ¶
func (cfg *CGRConfig) DNSAgentCfg() *DNSAgentCfg
DNSAgentCfg returns the config for DNS Agent
func (*CGRConfig) DiameterAgentCfg ¶
func (cfg *CGRConfig) DiameterAgentCfg() *DiameterAgentCfg
DiameterAgentCfg returns the config for Diameter Agent
func (*CGRConfig) DispatcherSCfg ¶
func (cfg *CGRConfig) DispatcherSCfg() *DispatcherSCfg
DispatcherSCfg returns the config for DispatcherS
func (*CGRConfig) EEsNoLksCfg ¶ added in v0.11.0
EEsNoLksCfg reads the EventExporter configuration without locks
func (*CGRConfig) FilterSCfg ¶
func (cfg *CGRConfig) FilterSCfg() *FilterSCfg
FilterSCfg returns the config for FilterS
func (*CGRConfig) FsAgentCfg ¶
func (cfg *CGRConfig) FsAgentCfg() *FsAgentCfg
FsAgentCfg returns the config for FsAgent
func (*CGRConfig) GeneralCfg ¶
func (cfg *CGRConfig) GeneralCfg() *GeneralCfg
GeneralCfg returns the General config section
func (*CGRConfig) GetDataProvider ¶ added in v0.11.0
func (cfg *CGRConfig) GetDataProvider() utils.MapStorage
GetDataProvider returns the config as a data provider interface
func (*CGRConfig) GetReloadChan ¶
GetReloadChan returns the reload chanel for the given section
func (*CGRConfig) HTTPAgentCfg ¶ added in v0.11.0
func (cfg *CGRConfig) HTTPAgentCfg() HTTPAgentCfgs
HTTPAgentCfg returns the config for HttpAgent
func (*CGRConfig) JanusAgentCfg ¶ added in v0.11.0
func (cfg *CGRConfig) JanusAgentCfg() *JanusAgentCfg
JanusAgentCfg reads the JanusAgent configuration
func (*CGRConfig) KamAgentCfg ¶
func (cfg *CGRConfig) KamAgentCfg() *KamAgentCfg
KamAgentCfg returns the config for KamAgent
func (*CGRConfig) LoaderCgrCfg ¶
func (cfg *CGRConfig) LoaderCgrCfg() *LoaderCgrCfg
LoaderCgrCfg returns the config for cgr-loader
func (*CGRConfig) LockSections ¶ added in v0.11.0
LockSections will lock the given sections User needs to know what he is doing since this can panic
func (*CGRConfig) MigratorCgrCfg ¶
func (cfg *CGRConfig) MigratorCgrCfg() *MigratorCgrCfg
MigratorCgrCfg returns the config for Migrator
func (*CGRConfig) PrometheusAgentCfg ¶ added in v0.11.0
func (cfg *CGRConfig) PrometheusAgentCfg() *PrometheusAgentCfg
PrometheusAgentCfg returns the config for Prometheus Agent
func (*CGRConfig) RLocks ¶ added in v0.11.0
RLocks will read-lock locks with IDs. User needs to know what he is doing since this can panic
func (*CGRConfig) RUnlocks ¶ added in v0.11.0
RUnlocks will read-unlock locks with IDs. User needs to know what he is doing since this can panic
func (*CGRConfig) RadiusAgentCfg ¶
func (cfg *CGRConfig) RadiusAgentCfg() *RadiusAgentCfg
RadiusAgentCfg returns the config for Radius Agent
func (*CGRConfig) RankingSCfg ¶ added in v0.11.0
func (cfg *CGRConfig) RankingSCfg() *RankingSCfg
RankingSCfg returns the config for RankingS
func (*CGRConfig) RegistrarCCfg ¶ added in v0.11.0
func (cfg *CGRConfig) RegistrarCCfg() *RegistrarCCfgs
RegistrarCCfg returns the config for RegistrarC
func (*CGRConfig) ResourceSCfg ¶
func (cfg *CGRConfig) ResourceSCfg() *ResourceSConfig
ResourceSCfg returns the config for ResourceS
func (*CGRConfig) SIPAgentCfg ¶ added in v0.11.0
func (cfg *CGRConfig) SIPAgentCfg() *SIPAgentCfg
SIPAgentCfg reads the SIPAgent configuration
func (*CGRConfig) SchedulerCfg ¶
func (cfg *CGRConfig) SchedulerCfg() *SchedulerCfg
SchedulerCfg returns the config for Scheduler
func (*CGRConfig) SentryPeerCfg ¶ added in v0.11.0
func (cfg *CGRConfig) SentryPeerCfg() *SentryPeerCfg
func (*CGRConfig) SessionSCfg ¶
func (cfg *CGRConfig) SessionSCfg() *SessionSCfg
SessionSCfg returns the config for SessionS
func (*CGRConfig) SureTaxCfg ¶
func (cfg *CGRConfig) SureTaxCfg() *SureTaxCfg
SureTaxCfg use locking to retrieve the configuration, possibility later for runtime reload
func (*CGRConfig) TemplatesCfg ¶ added in v0.11.0
func (cfg *CGRConfig) TemplatesCfg() FcTemplates
TemplatesCfg returns the config for templates
func (*CGRConfig) ThresholdSCfg ¶
func (cfg *CGRConfig) ThresholdSCfg() *ThresholdSCfg
ThresholdSCfg returns the config for ThresholdS
func (*CGRConfig) UnlockSections ¶ added in v0.11.0
UnlockSections will unlock the given sections User needs to know what he is doing since this can panic
func (*CGRConfig) V1GetConfig ¶ added in v0.11.0
func (cfg *CGRConfig) V1GetConfig(ctx *context.Context, args *SectionWithAPIOpts, reply *map[string]any) (err error)
V1GetConfig will retrieve from CGRConfig a section
func (*CGRConfig) V1GetConfigAsJSON ¶ added in v0.11.0
func (cfg *CGRConfig) V1GetConfigAsJSON(ctx *context.Context, args *SectionWithAPIOpts, reply *string) (err error)
V1GetConfigAsJSON will retrieve from CGRConfig a section as a string
func (*CGRConfig) V1ReloadConfig ¶ added in v0.11.0
func (cfg *CGRConfig) V1ReloadConfig(ctx *context.Context, args *ReloadArgs, reply *string) (err error)
V1ReloadConfig reloads the configuration
func (*CGRConfig) V1SetConfig ¶ added in v0.11.0
func (cfg *CGRConfig) V1SetConfig(ctx *context.Context, args *SetConfigArgs, reply *string) (err error)
V1SetConfig reloads the sections of config
func (*CGRConfig) V1SetConfigFromJSON ¶ added in v0.11.0
func (cfg *CGRConfig) V1SetConfigFromJSON(ctx *context.Context, args *SetConfigFromJSONArgs, reply *string) (err error)
V1SetConfigFromJSON reloads the sections of config
type CSVROpts ¶ added in v0.11.0
type CacheCfg ¶
type CacheCfg struct {
Partitions map[string]*CacheParamCfg
ReplicationConns []string
RemoteConns []string
}
CacheCfg used to store the cache config
func (*CacheCfg) AddTmpCaches ¶
func (cCfg *CacheCfg) AddTmpCaches()
AddTmpCaches adds all the temporary caches configuration needed
func (*CacheCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
func (CacheCfg) AsTransCacheConfig ¶
func (cCfg CacheCfg) AsTransCacheConfig() (tcCfg map[string]*ltcache.CacheConfig)
AsTransCacheConfig transforms the cache config in ltcache config
type CacheJsonCfg ¶
type CacheJsonCfg struct {
Partitions *map[string]*CacheParamJsonCfg
Replication_conns *[]string
Remote_conns *[]string
}
type CacheParamCfg ¶
type CacheParamCfg struct {
Limit int
TTL time.Duration
StaticTTL bool
Precache bool
Remote bool
Replicate bool
}
CacheParamCfg represents the config of a single cache partition
func (*CacheParamCfg) AsMapInterface ¶ added in v0.10.1
func (cParam *CacheParamCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*CacheParamCfg) Clone ¶ added in v0.11.0
func (cParam *CacheParamCfg) Clone() (cln *CacheParamCfg)
Clone returns a deep copy of CacheParamCfg
type CacheParamJsonCfg ¶
type CdrsCfg ¶
type CdrsCfg struct {
Enabled bool // Enable CDR Server service
ExtraFields RSRParsers // Extra fields to store in CDRs
StoreCdrs bool // store cdrs in storDb
CompressStoredCost bool // compress cost details in cdrs
SMCostRetries int
ChargerSConns []string
RaterConns []string
AttributeSConns []string
ThresholdSConns []string
StatSConns []string
OnlineCDRExports []string // list of CDRE templates to use for real-time CDR exports
SchedulerConns []string
EEsConns []string
}
CdrsCfg is the CDR server
func (*CdrsCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type CdrsJsonCfg ¶
type CdrsJsonCfg struct {
Enabled *bool
Extra_fields *[]string
Store_cdrs *bool
Compress_stored_cost *bool
Session_cost_retries *int
Chargers_conns *[]string
Rals_conns *[]string
Attributes_conns *[]string
Thresholds_conns *[]string
Stats_conns *[]string
Online_cdr_exports *[]string
Scheduler_conns *[]string
Ees_conns *[]string
}
Cdrs config section
type CgrJsonCfg ¶
type CgrJsonCfg map[string]*json.RawMessage
Main object holding the loaded config as section raw messages
func NewCgrJsonCfgFromBytes ¶
func NewCgrJsonCfgFromBytes(buf []byte) (cgrJsonCfg *CgrJsonCfg, err error)
Loads the json config out of io.Reader, eg other sources than file, maybe over http
func (CgrJsonCfg) AnalyzerCfgJson ¶
func (jsnCfg CgrJsonCfg) AnalyzerCfgJson() (*AnalyzerSJsonCfg, error)
func (CgrJsonCfg) ApiBanCfgJson ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) ApiBanCfgJson() (*APIBanJsonCfg, error)
func (CgrJsonCfg) ApierCfgJson ¶
func (jsnCfg CgrJsonCfg) ApierCfgJson() (*ApierJsonCfg, error)
func (CgrJsonCfg) AsteriskAgentJsonCfg ¶
func (jsnCfg CgrJsonCfg) AsteriskAgentJsonCfg() (*AsteriskAgentJsonCfg, error)
func (CgrJsonCfg) AttributeServJsonCfg ¶
func (cgrJsn CgrJsonCfg) AttributeServJsonCfg() (*AttributeSJsonCfg, error)
func (CgrJsonCfg) CacheJsonCfg ¶
func (jsnCfg CgrJsonCfg) CacheJsonCfg() (*CacheJsonCfg, error)
func (CgrJsonCfg) CdrsJsonCfg ¶
func (jsnCfg CgrJsonCfg) CdrsJsonCfg() (*CdrsJsonCfg, error)
func (CgrJsonCfg) ChargerServJsonCfg ¶
func (cgrJsn CgrJsonCfg) ChargerServJsonCfg() (*ChargerSJsonCfg, error)
func (CgrJsonCfg) ConfigSJsonCfg ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) ConfigSJsonCfg() (*ConfigSCfgJson, error)
func (CgrJsonCfg) CoreSCfgJson ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) CoreSCfgJson() (*CoreSJsonCfg, error)
func (CgrJsonCfg) DNSAgentJsonCfg ¶
func (jsnCfg CgrJsonCfg) DNSAgentJsonCfg() (da *DNSAgentJsonCfg, err error)
func (CgrJsonCfg) DbJsonCfg ¶
func (jsnCfg CgrJsonCfg) DbJsonCfg(section string) (*DbJsonCfg, error)
func (CgrJsonCfg) DiameterAgentJsonCfg ¶
func (jsnCfg CgrJsonCfg) DiameterAgentJsonCfg() (*DiameterAgentJsonCfg, error)
func (CgrJsonCfg) DispatcherSJsonCfg ¶
func (jsnCfg CgrJsonCfg) DispatcherSJsonCfg() (*DispatcherSJsonCfg, error)
func (CgrJsonCfg) EEsJsonCfg ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) EEsJsonCfg() (erSCfg *EEsJsonCfg, err error)
func (CgrJsonCfg) ERsJsonCfg ¶
func (jsnCfg CgrJsonCfg) ERsJsonCfg() (erSCfg *ERsJsonCfg, err error)
func (CgrJsonCfg) FilterSJsonCfg ¶
func (jsnCfg CgrJsonCfg) FilterSJsonCfg() (*FilterSJsonCfg, error)
func (CgrJsonCfg) FreeswitchAgentJsonCfg ¶
func (jsnCfg CgrJsonCfg) FreeswitchAgentJsonCfg() (*FreeswitchAgentJsonCfg, error)
func (CgrJsonCfg) GeneralJsonCfg ¶
func (jsnCfg CgrJsonCfg) GeneralJsonCfg() (*GeneralJsonCfg, error)
func (CgrJsonCfg) HttpAgentJsonCfg ¶
func (jsnCfg CgrJsonCfg) HttpAgentJsonCfg() (*[]*HttpAgentJsonCfg, error)
func (CgrJsonCfg) HttpJsonCfg ¶
func (jsnCfg CgrJsonCfg) HttpJsonCfg() (*HTTPJsonCfg, error)
func (CgrJsonCfg) IPsJsonCfg ¶ added in v0.11.0
func (jc CgrJsonCfg) IPsJsonCfg() (*IPsJsonCfg, error)
func (CgrJsonCfg) JanusAgentCfgJson ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) JanusAgentCfgJson() (*JanusAgentJsonCfg, error)
func (CgrJsonCfg) KamAgentJsonCfg ¶
func (jsnCfg CgrJsonCfg) KamAgentJsonCfg() (*KamAgentJsonCfg, error)
func (CgrJsonCfg) ListenJsonCfg ¶
func (jsnCfg CgrJsonCfg) ListenJsonCfg() (*ListenJsonCfg, error)
func (CgrJsonCfg) LoaderCfgJson ¶
func (jsnCfg CgrJsonCfg) LoaderCfgJson() (*LoaderCfgJson, error)
func (CgrJsonCfg) MailerJsonCfg ¶
func (jsnCfg CgrJsonCfg) MailerJsonCfg() (*MailerJsonCfg, error)
func (CgrJsonCfg) MigratorCfgJson ¶
func (jsnCfg CgrJsonCfg) MigratorCfgJson() (*MigratorCfgJson, error)
func (CgrJsonCfg) PrometheusAgentJsonCfg ¶ added in v0.11.0
func (jc CgrJsonCfg) PrometheusAgentJsonCfg() (*PrometheusAgentJsonCfg, error)
func (CgrJsonCfg) RPCConnJsonCfg ¶
func (jsnCfg CgrJsonCfg) RPCConnJsonCfg() (map[string]*RPCConnsJson, error)
func (CgrJsonCfg) RadiusAgentJsonCfg ¶
func (jsnCfg CgrJsonCfg) RadiusAgentJsonCfg() (*RadiusAgentJsonCfg, error)
func (CgrJsonCfg) RalsJsonCfg ¶
func (jsnCfg CgrJsonCfg) RalsJsonCfg() (*RalsJsonCfg, error)
func (CgrJsonCfg) RankingsJsonCfg ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) RankingsJsonCfg() (*RankingsJsonCfg, error)
func (CgrJsonCfg) RegistrarCJsonCfgs ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) RegistrarCJsonCfgs() (*RegistrarCJsonCfgs, error)
func (CgrJsonCfg) ResourceSJsonCfg ¶
func (jsnCfg CgrJsonCfg) ResourceSJsonCfg() (*ResourceSJsonCfg, error)
func (CgrJsonCfg) RouteSJsonCfg ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) RouteSJsonCfg() (*RouteSJsonCfg, error)
func (CgrJsonCfg) SIPAgentJsonCfg ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) SIPAgentJsonCfg() (*SIPAgentJsonCfg, error)
func (CgrJsonCfg) SchedulerJsonCfg ¶
func (jsnCfg CgrJsonCfg) SchedulerJsonCfg() (*SchedulerJsonCfg, error)
func (CgrJsonCfg) SentryPeerJson ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) SentryPeerJson() (*SentryPeerJsonCfg, error)
func (CgrJsonCfg) SessionSJsonCfg ¶
func (jsnCfg CgrJsonCfg) SessionSJsonCfg() (*SessionSJsonCfg, error)
func (CgrJsonCfg) StatSJsonCfg ¶
func (jsnCfg CgrJsonCfg) StatSJsonCfg() (*StatServJsonCfg, error)
func (CgrJsonCfg) SureTaxJsonCfg ¶
func (jsnCfg CgrJsonCfg) SureTaxJsonCfg() (*SureTaxJsonCfg, error)
func (CgrJsonCfg) TemplateSJsonCfg ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) TemplateSJsonCfg() (map[string][]*FcTemplateJsonCfg, error)
func (CgrJsonCfg) ThresholdSJsonCfg ¶
func (jsnCfg CgrJsonCfg) ThresholdSJsonCfg() (*ThresholdSJsonCfg, error)
func (CgrJsonCfg) TlsCfgJson ¶
func (jsnCfg CgrJsonCfg) TlsCfgJson() (*TlsJsonCfg, error)
func (CgrJsonCfg) TrendsJsonCfg ¶ added in v0.11.0
func (jsnCfg CgrJsonCfg) TrendsJsonCfg() (*TrendsJsonCfg, error)
type ChargerSCfg ¶
type ChargerSCfg struct {
Enabled bool
IndexedSelects bool
AttributeSConns []string
StringIndexedFields *[]string
PrefixIndexedFields *[]string
SuffixIndexedFields *[]string
ExistsIndexedFields *[]string
NestedFields bool
}
ChargerSCfg is the configuration of charger service
func (*ChargerSCfg) AsMapInterface ¶ added in v0.10.1
func (cS *ChargerSCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*ChargerSCfg) Clone ¶ added in v0.11.0
func (cS *ChargerSCfg) Clone() (cln *ChargerSCfg)
Clone returns a deep copy of ChargerSCfg
type ChargerSJsonCfg ¶
type ChargerSJsonCfg struct {
Enabled *bool
Indexed_selects *bool
Attributes_conns *[]string
String_indexed_fields *[]string
Prefix_indexed_fields *[]string
Suffix_indexed_fields *[]string
ExistsIndexedFields *[]string `json:"exists_indexed_fields"`
Nested_fields *bool // applies when indexed fields is not defined
}
ChargerSJsonCfg service config section
type ConfigSCfg ¶ added in v0.11.0
ConfigSCfg config for listening over http
func (*ConfigSCfg) AsMapInterface ¶ added in v0.11.0
func (cScfg *ConfigSCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*ConfigSCfg) Clone ¶ added in v0.11.0
func (cScfg *ConfigSCfg) Clone() *ConfigSCfg
Clone returns a deep copy of ConfigSCfg
type ConfigSCfgJson ¶ added in v0.11.0
type CoreSCfg ¶ added in v0.11.0
type CoreSCfg struct {
Caps int
CapsStrategy string
CapsStatsInterval time.Duration
ShutdownTimeout time.Duration
}
CoreSCfg the config for the coreS
func (*CoreSCfg) AsMapInterface ¶ added in v0.11.0
AsMapInterface returns the config as a map[string]any
type CoreSJsonCfg ¶ added in v0.11.0
type DAClientOpts ¶ added in v0.11.0
type DAClientOpts struct {
Transport string // transport protocol for Dynamic Authorization requests <UDP|TCP>.
Host string // alternative host for DA requests
Port int // port for Dynamic Authorization requests
Flags utils.FlagsWithParams // flags (only *log for now)
}
func (*DAClientOpts) AsMapInterface ¶ added in v0.11.0
func (cda *DAClientOpts) AsMapInterface() map[string]any
func (*DAClientOpts) Clone ¶ added in v0.11.0
func (cda *DAClientOpts) Clone() *DAClientOpts
type DAClientOptsJson ¶ added in v0.11.0
type DBOptsJson ¶ added in v0.11.0
type DBOptsJson struct {
InternalDBDumpPath *string `json:"internalDBDumpPath"`
InternalDBBackupPath *string `json:"internalDBBackupPath"`
InternalDBStartTimeout *string `json:"internalDBStartTimeout"`
InternalDBDumpInterval *string `json:"internalDBDumpInterval"`
InternalDBRewriteInterval *string `json:"internalDBRewriteInterval"`
InternalDBFileSizeLimit *string `json:"internalDBFileSizeLimit"`
RedisBatchSize *int `json:"redisBatchSize"`
RedisMaxConns *int `json:"redisMaxConns"`
RedisConnectAttempts *int `json:"redisConnectAttempts"`
RedisSentinel *string `json:"redisSentinel"`
RedisCluster *bool `json:"redisCluster"`
RedisClusterSync *string `json:"redisClusterSync"`
RedisClusterOndownDelay *string `json:"redisClusterOndownDelay"`
RedisConnectTimeout *string `json:"redisConnectTimeout"`
RedisPoolPipelineWindow *string `json:"redisPoolPipelineWindow"`
RedisPoolPipelineLimit *int `json:"redisPoolPipelineLimit"`
RedisTLS *bool `json:"redisTLS"`
RedisClientCertificate *string `json:"redisClientCertificate"`
RedisClientKey *string `json:"redisClientKey"`
RedisCACertificate *string `json:"redisCACertificate"`
MongoQueryTimeout *string `json:"mongoQueryTimeout"`
MongoConnScheme *string `json:"mongoConnScheme"`
SQLMaxOpenConns *int `json:"sqlMaxOpenConns"`
SQLMaxIdleConns *int `json:"sqlMaxIdleConns"`
SQLConnMaxLifetime *string `json:"sqlConnMaxLifetime"`
SQLLogLevel *int `json:"sqlLogLevel"`
MySQLDSNParams map[string]string `json:"mysqlDSNParams"`
PgSSLMode *string `json:"pgSSLMode"`
PgSSLCert *string `json:"pgSSLCert"`
PgSSLKey *string `json:"pgSSLKey"`
PgSSLPassword *string `json:"pgSSLPassword"`
PgSSLCertMode *string `json:"pgSSLCertMode"`
PgSSLRootCert *string `json:"pgSSLRootCert"`
PgSchema *string `json:"pgSchema"`
MySQLLocation *string `json:"mysqlLocation"`
}
type DNSAgentCfg ¶
type DNSAgentCfg struct {
Enabled bool
Listeners []DnsListener
SessionSConns []string
StatSConns []string
ThresholdSConns []string
Timezone string
RequestProcessors []*RequestProcessor
}
DNSAgentCfg the config section that describes the DNS Agent
func (*DNSAgentCfg) AsMapInterface ¶ added in v0.10.1
func (da *DNSAgentCfg) AsMapInterface(sep string) map[string]any
AsMapInterface returns the config as a map[string]any
func (*DNSAgentCfg) Clone ¶ added in v0.11.0
func (da *DNSAgentCfg) Clone() *DNSAgentCfg
Clone returns a deep copy of DNSAgentCfg
type DNSAgentJsonCfg ¶
type DNSAgentJsonCfg struct {
Enabled *bool `json:"enabled"`
Listeners *[]*DnsListenerJsnCfg `json:"listeners"`
SessionSConns *[]string `json:"sessions_conns"`
StatSConns *[]string `json:"stats_conns"`
ThresholdSConns *[]string `json:"thresholds_conns"`
Timezone *string `json:"timezone"`
RequestProcessors *[]*ReqProcessorJsnCfg `json:"request_processors"`
}
DNSAgentJsonCfg
type DataDBOpts ¶ added in v0.11.0
type DataDBOpts struct {
InternalDBDumpPath string // Path to the dump file
InternalDBBackupPath string // Path where db dump will backup
InternalDBStartTimeout time.Duration // Transcache recover from dump files timeout duration
InternalDBDumpInterval time.Duration // Regurarly dump database to file
InternalDBRewriteInterval time.Duration // Regurarly rewrite dump files
InternalDBFileSizeLimit int64 // maximum size that can be written in a singular dump file
RedisBatchSize int
RedisMaxConns int
RedisConnectAttempts int
RedisSentinel string
RedisCluster bool
RedisClusterSync time.Duration
RedisClusterOndownDelay time.Duration
RedisConnectTimeout time.Duration
RedisPoolPipelineWindow time.Duration
RedisPoolPipelineLimit int
RedisTLS bool
RedisClientCertificate string
RedisClientKey string
RedisCACertificate string
MongoQueryTimeout time.Duration
MongoConnScheme string
}
func (*DataDBOpts) Clone ¶ added in v0.11.0
func (dbOpts *DataDBOpts) Clone() *DataDBOpts
func (*DataDBOpts) ToTransCacheOpts ¶ added in v0.11.0
func (d *DataDBOpts) ToTransCacheOpts() (tco *ltcache.TransCacheOpts)
ToTransCacheOpts returns to ltcache.TransCacheOpts from DataDBOpts
type DataDbCfg ¶
type DataDbCfg struct {
Type string
Host string // The host to connect to. Values that start with / are for UNIX domain sockets.
Port string // The port to bind to.
Name string // The name of the database to connect to.
User string // The user to sign in as.
Password string // The user's password.
RmtConns []string // Remote DataDB connIDs
RmtConnID string
RplConns []string // Replication connIDs
RplFiltered bool
RplCache string
RplFailedDir string
RplInterval time.Duration
Items map[string]*ItemOpt
Opts *DataDBOpts
}
DataDbCfg Database config
func (*DataDbCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type DbJsonCfg ¶
type DbJsonCfg struct {
Db_type *string
Db_host *string
Db_port *int
Db_name *string
Db_user *string
Db_password *string
String_indexed_fields *[]string
Prefix_indexed_fields *[]string
Remote_conns *[]string
Remote_conn_id *string
Replication_conns *[]string
Replication_filtered *bool
Replication_cache *string
RplFailedDir *string `json:"replication_failed_dir"`
RplInterval *string `json:"replication_interval"`
Items *map[string]*ItemOptJson
Opts *DBOptsJson
}
Database config
type DiamListenerJsnCfg ¶ added in v0.11.0
type DiameterAgentCfg ¶
type DiameterAgentCfg struct {
Enabled bool // enables the diameter agent: <true|false>
Listeners []DiameterListener
DictionariesPath string
DictionariesAppendDefaults bool
CeApplications []string
SessionSConns []string
StatSConns []string
ThresholdSConns []string
OriginHost string
OriginRealm string
VendorID int
ProductName string
SyncedConnReqs bool
ASRTemplate string
RARTemplate string
SNRTemplate string
SLRTemplate string
STRTemplate string
ForcedDisconnect string
ConnStatusStatQueueIDs []string
ConnStatusThresholdIDs []string
ConnHealthCheckInterval time.Duration // peer connection health check interval (0 to disable)
RequestProcessors []*RequestProcessor
}
DiameterAgentCfg the config section that describes the Diameter Agent
func (*DiameterAgentCfg) AsMapInterface ¶ added in v0.10.1
func (da *DiameterAgentCfg) AsMapInterface(separator string) map[string]any
AsMapInterface returns the config as a map[string]any
func (*DiameterAgentCfg) Clone ¶ added in v0.11.0
func (da *DiameterAgentCfg) Clone() *DiameterAgentCfg
Clone returns a deep copy of DiameterAgentCfg
type DiameterAgentJsonCfg ¶
type DiameterAgentJsonCfg struct {
Enabled *bool `json:"enabled"`
Listeners *[]*DiamListenerJsnCfg `json:"listeners"`
DictionariesPath *string `json:"dictionaries_path"`
DictionariesAppendDefaults *bool `json:"dictionaries_append_defaults"`
CeApplications *[]string `json:"ce_applications"`
SessionSConns *[]string `json:"sessions_conns"`
StatSConns *[]string `json:"stats_conns"`
ThresholdSConns *[]string `json:"thresholds_conns"`
OriginHost *string `json:"origin_host"`
OriginRealm *string `json:"origin_realm"`
VendorID *int `json:"vendor_id"`
ProductName *string `json:"product_name"`
SyncedConnRequests *bool `json:"synced_conn_requests"`
ASRTemplate *string `json:"asr_template"`
RARTemplate *string `json:"rar_template"`
SNRTemplate *string `json:"snr_template"`
SLRTemplate *string `json:"slr_template"`
STRTemplate *string `json:"str_template"`
ForcedDisconnect *string `json:"forced_disconnect"`
StatQueueIDs *[]string `json:"conn_status_stat_queue_ids"`
ThresholdIDs *[]string `json:"conn_status_threshold_ids"`
ConnHealthCheckInterval *string `json:"conn_health_check_interval"`
RequestProcessors *[]*ReqProcessorJsnCfg `json:"request_processors"`
}
DiameterAgent configuration
type DiameterListener ¶ added in v0.11.0
type DiameterListener struct {
Network string // sctp or tcp
Address string // address where to listen for diameter requests <x.y.z.y:1234>
}
func (*DiameterListener) AsMapInterface ¶ added in v0.11.0
func (lstn *DiameterListener) AsMapInterface() map[string]any
AsMapInterface returns the config as a map[string]any
type DispatcherSCfg ¶
type DispatcherSCfg struct {
Enabled bool
IndexedSelects bool
StringIndexedFields *[]string
PrefixIndexedFields *[]string
SuffixIndexedFields *[]string
ExistsIndexedFields *[]string
AttributeSConns []string
NestedFields bool
AnySubsystem bool
PreventLoop bool
}
DispatcherSCfg is the configuration of dispatcher service
func (*DispatcherSCfg) AsMapInterface ¶ added in v0.10.1
func (dps *DispatcherSCfg) AsMapInterface() (mp map[string]any)
AsMapInterface returns the config as a map[string]any
func (*DispatcherSCfg) Clone ¶ added in v0.11.0
func (dps *DispatcherSCfg) Clone() (cln *DispatcherSCfg)
Clone returns a deep copy of DispatcherSCfg
type DispatcherSJsonCfg ¶
type DispatcherSJsonCfg struct {
Enabled *bool
Indexed_selects *bool
String_indexed_fields *[]string
Prefix_indexed_fields *[]string
Suffix_indexed_fields *[]string
ExistsIndexedFields *[]string `json:"exists_indexed_fields"`
Nested_fields *bool // applies when indexed fields is not defined
Attributes_conns *[]string
Any_subsystem *bool
Prevent_loop *bool
}
type DnsListener ¶ added in v0.11.0
func (*DnsListener) AsMapInterface ¶ added in v0.11.0
func (lstn *DnsListener) AsMapInterface(separator string) map[string]any
AsMapInterface returns the config as a map[string]any
type DnsListenerJsnCfg ¶ added in v0.11.0
type EEsCfg ¶ added in v0.11.0
type EEsCfg struct {
Enabled bool
AttributeSConns []string
Cache map[string]*CacheParamCfg
FailedPosts *FailedPostsCfg
Exporters []*EventExporterCfg
}
EEsCfg the config for Event Exporters
func (*EEsCfg) AsMapInterface ¶ added in v0.11.0
AsMapInterface returns the config as a map[string]any
func (*EEsCfg) ExporterCfg ¶ added in v0.11.0
func (c *EEsCfg) ExporterCfg(id string) *EventExporterCfg
ExporterCfg iterates over the Exporters slice and returns the exporter configuration associated with the specified "id". If none were found, the method will return nil.
type EEsJsonCfg ¶ added in v0.11.0
type EEsJsonCfg struct {
Enabled *bool `json:"enabled"`
AttributeSConns *[]string `json:"attributes_conns"`
Cache *map[string]*CacheParamJsonCfg `json:"cache"`
FailedPosts *FailedPostsJsonCfg `json:"failed_posts"`
Exporters *[]*EventExporterJsonCfg `json:"exporters"`
}
EEsJsonCfg contains the configuration of EventExporterService
type ERsCfg ¶
type ERsCfg struct {
Enabled bool
SessionSConns []string
EEsConns []string
StatSConns []string
ThresholdSConns []string
ConcurrentEvents int
Readers []*EventReaderCfg
PartialCacheTTL time.Duration
}
ERsCfg the config for ERs
func (*ERsCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
func (*ERsCfg) ReaderCfg ¶ added in v0.11.0
func (c *ERsCfg) ReaderCfg(id string) *EventReaderCfg
ReaderCfg iterates over the Readers slice and returns the reader configuration associated with the specified "id". If none were found, the method will return nil.
type ERsJsonCfg ¶
type ERsJsonCfg struct {
Enabled *bool `json:"enabled"`
SessionSConns *[]string `json:"sessions_conns"`
EEsConns *[]string `json:"ees_conns"`
StatSConns *[]string `json:"stats_conns"`
ThresholdSConns *[]string `json:"thresholds_conns"`
ConcurrentEvents *int `json:"concurrent_events"`
Readers *[]*EventReaderJsonCfg `json:"readers"`
PartialCacheTTL *string `json:"partial_cache_ttl"`
}
EventReaderSJsonCfg contains the configuration of EventReaderService
type ElsOpts ¶ added in v0.11.0
type ElsOpts struct {
// index request opts
Index *string
Refresh *string
OpType *string
Pipeline *string
Routing *string
Timeout *time.Duration
WaitForActiveShards *string
// elasticsearch client opts
CAPath *string
DiscoverNodesOnStart *bool
DiscoverNodeInterval *time.Duration
APIKey *string
CertificateFingerprint *string
ServiceToken *string
Username *string // Username for HTTP Basic Authentication.
Password *string
EnableDebugLogger *bool
Logger *string
CompressRequestBody *bool
CompressRequestBodyLevel *int
RetryOnStatus *[]int
MaxRetries *int
DisableRetry *bool
}
type EventExporterCfg ¶ added in v0.11.0
type EventExporterCfg struct {
ID string
Type string
ExportPath string
Opts *EventExporterOpts
Timezone string
Filters []string
Flags utils.FlagsWithParams
AttributeSIDs []string // selective AttributeS profiles
AttributeSCtx string // context to use when querying AttributeS
Synchronous bool
Attempts int
FailedPostsDir string
ConcurrentRequests int
MetricsResetSchedule string
Fields []*FCTemplate
// contains filtered or unexported fields
}
EventExporterCfg the config for a Event Exporter
func NewEventExporterCfg ¶ added in v0.11.0
func NewEventExporterCfg(ID, exportType, exportPath, failedPostsDir string, attempts int, synchronous bool, opts *EventExporterOpts) *EventExporterCfg
NewEventExporterCfg is a constructor for the EventExporterCfg, that is needed to initialize posters that are used by the readers and HTTP exporter actions
func (*EventExporterCfg) AsMapInterface ¶ added in v0.11.0
func (eeC *EventExporterCfg) AsMapInterface(separator string) (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*EventExporterCfg) Clone ¶ added in v0.11.0
func (eeC *EventExporterCfg) Clone() (cln *EventExporterCfg)
Clone returns a deep copy of EventExporterCfg
func (*EventExporterCfg) ComputeFields ¶ added in v0.11.0
func (eeC *EventExporterCfg) ComputeFields()
ComputeFields will split the fields in header trailer or content exported for ees testing
func (*EventExporterCfg) ContentFields ¶ added in v0.11.0
func (eeC *EventExporterCfg) ContentFields() []*FCTemplate
ContentFields returns the fields that do not have *hdr or *trl prefix
func (*EventExporterCfg) HeaderFields ¶ added in v0.11.0
func (eeC *EventExporterCfg) HeaderFields() []*FCTemplate
HeaderFields returns the fields that have *hdr prefix
func (*EventExporterCfg) TrailerFields ¶ added in v0.11.0
func (eeC *EventExporterCfg) TrailerFields() []*FCTemplate
TrailerFields returns the fields that have *trl prefix
type EventExporterJsonCfg ¶ added in v0.11.0
type EventExporterJsonCfg struct {
Id *string
Type *string
Export_path *string
Opts *EventExporterOptsJson
Timezone *string
Filters *[]string
Flags *[]string
Attribute_ids *[]string
Attribute_context *string
Synchronous *bool
Attempts *int
Failed_posts_dir *string
Concurrent_requests *int
MetricsResetSchedule *string `json:"metrics_reset_schedule"`
Fields *[]*FcTemplateJsonCfg
}
EventExporterJsonCfg is the configuration of a single EventExporter
type EventExporterOpts ¶ added in v0.11.0
type EventExporterOpts struct {
CSVFieldSeparator *string
Els *ElsOpts
SQL *SQLOpts
AMQP *AMQPOpts
AWS *AWSOpts
NATS *NATSOpts
RPC *RPCOpts
Kafka *KafkaOpts
}
func (*EventExporterOpts) Clone ¶ added in v0.11.0
func (eeOpts *EventExporterOpts) Clone() *EventExporterOpts
type EventExporterOptsJson ¶ added in v0.11.0
type EventExporterOptsJson struct {
CSVFieldSeparator *string `json:"csvFieldSeparator"`
ElsAPIKey *string `json:"elsApiKey"`
ElsServiceToken *string `json:"elsServiceToken"`
ElsCertificateFingerprint *string `json:"elsCertificateFingerPrint"`
ElsUsername *string `json:"elsUsername"`
ElsPassword *string `json:"elsPassword"`
ElsCAPath *string `json:"elsCAPath"`
ElsDiscoverNodesOnStart *bool `json:"elsDiscoverNodesOnStart"`
ElsDiscoverNodesInterval *string `json:"elsDiscoverNodesInterval"`
ElsEnableDebugLogger *bool `json:"elsEnableDebugLogger"`
ElsLogger *string `json:"elsLogger"`
ElsCompressRequestBody *bool `json:"elsCompressRequestBody"`
ElsCompressRequestBodyLevel *int `json:"elsCompressRequestBodyLevel"`
ElsRetryOnStatus *[]int `json:"elsRetryOnStatus"`
ElsMaxRetries *int `json:"elsMaxRetries"`
ElsDisableRetry *bool `json:"elsDisableRetry"`
ElsIndex *string `json:"elsIndex"`
ElsRefresh *string `json:"elsRefresh"`
ElsOpType *string `json:"elsOpType"`
ElsPipeline *string `json:"elsPipeline"`
ElsRouting *string `json:"elsRouting"`
ElsTimeout *string `json:"elsTimeout"`
ElsWaitForActiveShards *string `json:"elsWaitForActiveShards"`
SQLMaxIdleConns *int `json:"sqlMaxIdleConns"`
SQLMaxOpenConns *int `json:"sqlMaxOpenConns"`
SQLConnMaxLifetime *string `json:"sqlConnMaxLifetime"`
MYSQLDSNParams map[string]string `json:"mysqlDSNParams"`
SQLTableName *string `json:"sqlTableName"`
SQLDBName *string `json:"sqlDBName"`
SQLUpdateIndexedFields *[]string `json:"sqlUpdateIndexedFields"`
PgSSLMode *string `json:"pgSSLMode"`
KafkaTopic *string `json:"kafkaTopic"`
KafkaLinger *string `json:"kafkaLinger"`
KafkaDeliveryTimeout *string `json:"kafkaDeliveryTimeout"`
KafkaTLS *bool `json:"kafkaTLS"`
KafkaCAPath *string `json:"kafkaCAPath"`
KafkaSkipTLSVerify *bool `json:"kafkaSkipTLSVerify"`
AMQPQueueID *string `json:"amqpQueueID"`
AMQPRoutingKey *string `json:"amqpRoutingKey"`
AMQPExchange *string `json:"amqpExchange"`
AMQPExchangeType *string `json:"amqpExchangeType"`
AMQPUsername *string `json:"amqpUsername"`
AMQPPassword *string `json:"amqpPassword"`
AWSRegion *string `json:"awsRegion"`
AWSKey *string `json:"awsKey"`
AWSSecret *string `json:"awsSecret"`
AWSToken *string `json:"awsToken"`
SQSQueueID *string `json:"sqsQueueID"`
SQSForcePathStyle *bool `json:"sqsForcePathStyle"`
SQSSkipTlsVerify *bool `json:"sqsSkipTlsVerify"`
S3BucketID *string `json:"s3BucketID"`
S3FolderPath *string `json:"s3FolderPath"`
S3ForcePathStyle *bool `json:"s3ForcePathStyle"`
S3SkipTlsVerify *bool `json:"s3SkipTlsVerify"`
NATSJetStream *bool `json:"natsJetStream"`
NATSSubject *string `json:"natsSubject"`
NATSJWTFile *string `json:"natsJWTFile"`
NATSSeedFile *string `json:"natsSeedFile"`
NATSCertificateAuthority *string `json:"natsCertificateAuthority"`
NATSClientCertificate *string `json:"natsClientCertificate"`
NATSClientKey *string `json:"natsClientKey"`
NATSJetStreamMaxWait *string `json:"natsJetStreamMaxWait"`
RPCCodec *string `json:"rpcCodec"`
ServiceMethod *string `json:"serviceMethod"`
KeyPath *string `json:"keyPath"`
CertPath *string `json:"certPath"`
CAPath *string `json:"caPath"`
ConnIDs *[]string `json:"connIDs"`
TLS *bool `json:"tls"`
RPCConnTimeout *string `json:"rpcConnTimeout"`
RPCReplyTimeout *string `json:"rpcReplyTimeout"`
RPCAPIOpts map[string]any `json:"rpcAPIOpts"`
}
type EventReaderCfg ¶
type EventReaderCfg struct {
ID string
Type string
// RunDelay determines how the Serve method initiates the reading process.
// - A value of 0 disables automatic reading, allowing manual control, possibly through an API.
// - A value of -1 enables watching directory changes indefinitely, applicable for file-based readers.
// - Any positive duration sets a fixed time interval for automatic reading cycles.
RunDelay time.Duration
// StartDelay adds a delay before starting reading loop
StartDelay time.Duration
ConcurrentReqs int
SourcePath string
ProcessedPath string
Tenant RSRParsers
Timezone string
Filters []string
Flags utils.FlagsWithParams
Reconnects int
MaxReconnectInterval time.Duration
EEsSuccessIDs []string
EEsFailedIDs []string
Opts *EventReaderOpts
Fields []*FCTemplate
PartialCommitFields []*FCTemplate
CacheDumpFields []*FCTemplate
}
EventReaderCfg the event for the Event Reader
func (*EventReaderCfg) AsMapInterface ¶ added in v0.10.1
func (er *EventReaderCfg) AsMapInterface(separator string) (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*EventReaderCfg) Clone ¶
func (er *EventReaderCfg) Clone() (cln *EventReaderCfg)
Clone returns a deep copy of EventReaderCfg
type EventReaderJsonCfg ¶
type EventReaderJsonCfg struct {
Id *string
Type *string
Run_delay *string
Start_delay *string
Concurrent_requests *int
Source_path *string
Processed_path *string
Tenant *string
Timezone *string
Filters *[]string
Flags *[]string
Reconnects *int
Max_reconnect_interval *string
Ees_success_ids *[]string
Ees_failed_ids *[]string
Opts *EventReaderOptsJson
Fields *[]*FcTemplateJsonCfg
Partial_commit_fields *[]*FcTemplateJsonCfg
Cache_dump_fields *[]*FcTemplateJsonCfg
}
EventReaderSJsonCfg is the configuration of a single EventReader
type EventReaderOpts ¶ added in v0.11.0
type EventReaderOpts struct {
PartialPath *string
PartialCacheAction *string
PartialOrderField *string
IgnoreErroredItems *bool
XMLRootPath *string
CSV *CSVROpts
AMQP *AMQPROpts
AWS *AWSROpts
NATS *NATSROpts
Kafka *KafkaROpts
SQL *SQLROpts
}
func (*EventReaderOpts) Clone ¶ added in v0.11.0
func (erOpts *EventReaderOpts) Clone() *EventReaderOpts
type EventReaderOptsJson ¶ added in v0.11.0
type EventReaderOptsJson struct {
PartialPath *string `json:"partialPath"`
PartialCacheAction *string `json:"partialCacheAction"`
PartialOrderField *string `json:"partialOrderField"`
PartialCSVFieldSeparator *string `json:"partialcsvFieldSeparator"`
IgnoreErroredItems *bool `json:"ignoreErroredItems"`
CSVRowLength *int `json:"csvRowLength"`
CSVFieldSeparator *string `json:"csvFieldSeparator"`
CSVHeaderDefineChar *string `json:"csvHeaderDefineChar"`
CSVLazyQuotes *bool `json:"csvLazyQuotes"`
XMLRootPath *string `json:"xmlRootPath"`
AMQPQueueID *string `json:"amqpQueueID"`
AMQPUsername *string `json:"amqpUsername"`
AMQPPassword *string `json:"amqpPassword"`
AMQPConsumerTag *string `json:"amqpConsumerTag"`
AMQPExchange *string `json:"amqpExchange"`
AMQPExchangeType *string `json:"amqpExchangeType"`
AMQPRoutingKey *string `json:"amqpRoutingKey"`
KafkaTopic *string `json:"kafkaTopic"`
KafkaGroupID *string `json:"kafkaGroupID"`
KafkaMaxWait *string `json:"kafkaMaxWait"`
KafkaTLS *bool `json:"kafkaTLS"`
KafkaCAPath *string `json:"kafkaCAPath"`
KafkaSkipTLSVerify *bool `json:"kafkaSkipTLSVerify"`
SQLDBName *string `json:"sqlDBName"`
SQLTableName *string `json:"sqlTableName"`
SQLBatchSize *int `json:"sqlBatchSize"`
SQLDeleteIndexedFields *[]string `json:"sqlDeleteIndexedFields"`
PgSSLMode *string `json:"pgSSLMode"`
AWSRegion *string `json:"awsRegion"`
AWSKey *string `json:"awsKey"`
AWSSecret *string `json:"awsSecret"`
AWSToken *string `json:"awsToken"`
SQSQueueID *string `json:"sqsQueueID"`
S3BucketID *string `json:"s3BucketID"`
NATSJetStream *bool `json:"natsJetStream"`
NATSConsumerName *string `json:"natsConsumerName"`
NATSStreamName *string `json:"natsStreamName"`
NATSSubject *string `json:"natsSubject"`
NATSQueueID *string `json:"natsQueueID"`
NATSJWTFile *string `json:"natsJWTFile"`
NATSSeedFile *string `json:"natsSeedFile"`
NATSCertificateAuthority *string `json:"natsCertificateAuthority"`
NATSClientCertificate *string `json:"natsClientCertificate"`
NATSClientKey *string `json:"natsClientKey"`
NATSJetStreamMaxWait *string `json:"natsJetStreamMaxWait"`
}
type FCTemplate ¶
type FCTemplate struct {
Tag string
Type string // Type of field
Path string // Field identifier
Filters []string // list of filter profiles
Value RSRParsers
Width int
Strip string
Padding string
Mandatory bool
AttributeID string // Used by NavigableMap when creating CGREvent/XMLElements
NewBranch bool // Used by NavigableMap when creating XMLElements
Timezone string
Blocker bool
Layout string // time format
CostShiftDigits int // Used for CDR
RoundingDecimals *int
MaskDestID string
MaskLen int
// contains filtered or unexported fields
}
FCTemplate the teplate for a field
func FCTemplatesFromFCTemplatesJSONCfg ¶ added in v0.11.0
func FCTemplatesFromFCTemplatesJSONCfg(jsnCfgFlds []*FcTemplateJsonCfg, separator string) (retFields []*FCTemplate, err error)
FCTemplatesFromFCTemplatesJSONCfg will build a list of FCTemplates from json
func InflateTemplates ¶
func InflateTemplates(fcts []*FCTemplate, msgTpls map[string][]*FCTemplate) ([]*FCTemplate, error)
InflateTemplates will replace the *template fields with template content out msgTpls
func NewFCTemplateFromFCTemplateJSONCfg ¶ added in v0.11.0
func NewFCTemplateFromFCTemplateJSONCfg(jsnCfg *FcTemplateJsonCfg, separator string) (*FCTemplate, error)
NewFCTemplateFromFCTemplateJSONCfg creates a FCTemplate from json
func (*FCTemplate) AsMapInterface ¶ added in v0.10.1
func (fc *FCTemplate) AsMapInterface(separator string) (mp map[string]any)
AsMapInterface returns the config as a map[string]any
func (*FCTemplate) Clone ¶
func (fc *FCTemplate) Clone() (cln *FCTemplate)
Clone returns a deep copy of FCTemplate
func (*FCTemplate) ComputePath ¶ added in v0.10.1
func (fc *FCTemplate) ComputePath()
ComputePath used in test to populate private fields used to store the path
func (*FCTemplate) GetPathSlice ¶ added in v0.10.1
func (fc *FCTemplate) GetPathSlice() []string
GetPathSlice returns the cached split of the path
type FWVProvider ¶
type FWVProvider struct {
// contains filtered or unexported fields
}
FWVProvider implements engine.utils.DataProvider so we can pass it to filters
func (*FWVProvider) FieldAsInterface ¶
func (fP *FWVProvider) FieldAsInterface(fldPath []string) (data any, err error)
FieldAsInterface is part of engine.utils.DataProvider interface
func (*FWVProvider) FieldAsString ¶
func (fP *FWVProvider) FieldAsString(fldPath []string) (data string, err error)
FieldAsString is part of engine.utils.DataProvider interface
func (*FWVProvider) String ¶
func (fP *FWVProvider) String() string
String is part of engine.utils.DataProvider interface when called, it will display the already parsed values out of cache
type FailedPostsCfg ¶ added in v0.11.0
func (*FailedPostsCfg) AsMapInterface ¶ added in v0.11.0
func (c *FailedPostsCfg) AsMapInterface() map[string]any
func (*FailedPostsCfg) Clone ¶ added in v0.11.0
func (c *FailedPostsCfg) Clone() *FailedPostsCfg
type FailedPostsJsonCfg ¶ added in v0.11.0
type FcTemplateJsonCfg ¶
type FcTemplateJsonCfg struct {
Tag *string
Type *string
Path *string
Attribute_id *string
Filters *[]string
Value *string
Width *int
Strip *string
Padding *string
Mandatory *bool
New_branch *bool
Timezone *string
Blocker *bool
Layout *string
Cost_shift_digits *int
Rounding_decimals *int
Mask_destinationd_id *string
Mask_length *int
}
type FcTemplates ¶ added in v0.11.0
type FcTemplates map[string][]*FCTemplate
FcTemplates the config for the templates
func (FcTemplates) AsMapInterface ¶ added in v0.11.0
func (sCft FcTemplates) AsMapInterface(separator string) (initialMP map[string][]map[string]any)
AsMapInterface returns the config as a map[string]any
func (FcTemplates) Clone ¶ added in v0.11.0
func (sCft FcTemplates) Clone() (cln FcTemplates)
Clone returns a deep copy of FcTemplates
type FilterSCfg ¶
type FilterSCfg struct {
StatSConns []string
ResourceSConns []string
ApierSConns []string
TrendSConns []string
RankingSConns []string
}
FilterSCfg the filters config section
func (*FilterSCfg) AsMapInterface ¶ added in v0.10.1
func (fSCfg *FilterSCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*FilterSCfg) Clone ¶ added in v0.11.0
func (fSCfg *FilterSCfg) Clone() (cln *FilterSCfg)
Clone returns a deep copy of FilterSCfg
type FilterSJsonCfg ¶
type FilterSJsonCfg struct {
Stats_conns *[]string
Resources_conns *[]string
Apiers_conns *[]string
Trends_conns *[]string
Rankings_conns *[]string
}
Filters config
type FreeswitchAgentJsonCfg ¶
type FreeswitchAgentJsonCfg struct {
Enabled *bool `json:"enabled"`
SessionSConns *[]string `json:"sessions_conns"`
SubscribePark *bool `json:"subscribe_park"`
CreateCDR *bool `json:"create_cdr"`
ExtraFields *[]string `json:"extra_fields"`
LowBalanceAnnFile *string `json:"low_balance_ann_file"`
EmptyBalanceContext *string `json:"empty_balance_context"`
EmptyBalanceAnnFile *string `json:"empty_balance_ann_file"`
ActiveSessionDelimiter *string `json:"active_session_delimiter"`
MaxWaitConnection *string `json:"max_wait_connection"`
RouteProfile *bool `json:"route_profile"`
SchedTransferExtension *string `json:"sched_transfer_extension"`
EventSocketConns *[]*FsConnJsonCfg `json:"event_socket_conns"`
}
FreeSWITCHAgent config section
type FsAgentCfg ¶
type FsAgentCfg struct {
Enabled bool
SessionSConns []string
SubscribePark bool
CreateCDR bool
ExtraFields RSRParsers
LowBalanceAnnFile string
EmptyBalanceContext string
EmptyBalanceAnnFile string
ActiveSessionDelimiter string
MaxWaitConnection time.Duration
RouteProfile bool
SchedTransferExtension string
EventSocketConns []*FsConnCfg
}
FsAgentCfg the config section that describes the FreeSWITCH Agent
func (*FsAgentCfg) AsMapInterface ¶ added in v0.10.1
func (fscfg *FsAgentCfg) AsMapInterface(separator string) (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*FsAgentCfg) Clone ¶ added in v0.11.0
func (fscfg *FsAgentCfg) Clone() (cln *FsAgentCfg)
Clone returns a deep copy of FsAgentCfg
type FsConnCfg ¶
type FsConnCfg struct {
Address string
Password string
Reconnects int
MaxReconnectInterval time.Duration
ReplyTimeout time.Duration
Alias string
}
FsConnCfg one connection to FreeSWITCH server
func NewDfltFsConnConfig ¶
func NewDfltFsConnConfig() *FsConnCfg
NewDfltFsConnConfig returns the first cached default value for a FreeSWITCHAgent connection
func (*FsConnCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type FsConnJsonCfg ¶
type FsConnJsonCfg struct {
Address *string `json:"address"`
Password *string `json:"password"`
Reconnects *int `json:"reconnects"`
MaxReconnectInterval *string `json:"max_reconnect_interval"`
ReplyTimeout *string `json:"reply_timeout"`
Alias *string `json:"alias"`
}
Represents one connection instance towards FreeSWITCH
type GeneralCfg ¶
type GeneralCfg struct {
NodeID string // Identifier for this engine instance
Logger string // dictates the way logs are displayed/stored
LogLevel int // system wide log level, nothing higher than this will be logged
RoundingDecimals int // Number of decimals to round end prices at
DBDataEncoding string // The encoding used to store object data in strings: <msgpack|json>
TpExportPath string // Path towards export folder for offline Tariff Plans
PosterAttempts int // Time to wait before writing the failed posts in a single file
DefaultReqType string // Use this request type if not defined on top
DefaultCategory string // set default type of record
DefaultTenant string // set default tenant
DefaultTimezone string // default timezone for timestamps where not specified <""|UTC|Local|$IANA_TZ_DB>
DefaultCaching string
CachingDelay time.Duration // use to add delay before cache reload
ConnectAttempts int // number of initial connection attempts before giving up
Reconnects int // number of reconnect attempts in case of connection lost <-1 for infinite | nb>
MaxReconnectInterval time.Duration // time to wait in between reconnect attempts
ConnectTimeout time.Duration // timeout for RPC connection attempts
ReplyTimeout time.Duration // timeout replies if not reaching back
LockingTimeout time.Duration // locking mechanism timeout to avoid deadlocks
DigestSeparator string //
DigestEqual string //
RSRSep string // separator used to split RSRParser (by default is used ";")
MaxParallelConns int // the maximum number of connections used by the *parallel strategy
}
GeneralCfg is the general config section
func (*GeneralCfg) AsMapInterface ¶ added in v0.10.1
func (gencfg *GeneralCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*GeneralCfg) Clone ¶ added in v0.11.0
func (gencfg *GeneralCfg) Clone() *GeneralCfg
Clone returns a deep copy of GeneralCfg
type GeneralJsonCfg ¶
type GeneralJsonCfg struct {
Node_id *string
Logger *string
Log_level *int
Rounding_decimals *int
Dbdata_encoding *string
Tpexport_dir *string
Poster_attempts *int
Default_request_type *string
Default_category *string
Default_tenant *string
Default_timezone *string
Default_caching *string
Caching_delay *string
Connect_attempts *int
Reconnects *int
Max_reconnect_interval *string
Connect_timeout *string
Reply_timeout *string
Locking_timeout *string
Digest_separator *string
Digest_equal *string
Rsr_separator *string
Max_parallel_conns *int
}
General config section
type HTTPAgentCfg ¶ added in v0.11.0
type HTTPAgentCfg struct {
ID string // identifier for the agent, so we can update it's processors
URL string
SessionSConns []string
StatSConns []string
ThresholdSConns []string
RequestPayload string
ReplyPayload string
RequestProcessors []*RequestProcessor
}
HTTPAgentCfg the config for a HTTP Agent
func (*HTTPAgentCfg) AsMapInterface ¶ added in v0.11.0
func (ha *HTTPAgentCfg) AsMapInterface(separator string) map[string]any
AsMapInterface returns the config as a map[string]any
func (*HTTPAgentCfg) Clone ¶ added in v0.11.0
func (ha *HTTPAgentCfg) Clone() *HTTPAgentCfg
Clone returns a deep copy of HTTPAgentCfg
type HTTPAgentCfgs ¶ added in v0.11.0
type HTTPAgentCfgs []*HTTPAgentCfg
HTTPAgentCfgs the config section for HTTP Agent
func (HTTPAgentCfgs) AsMapInterface ¶ added in v0.11.0
func (hcfgs HTTPAgentCfgs) AsMapInterface(separator string) (mp []map[string]any)
AsMapInterface returns the config as a map[string]any
func (HTTPAgentCfgs) Clone ¶ added in v0.11.0
func (hcfgs HTTPAgentCfgs) Clone() (cln HTTPAgentCfgs)
Clone returns a deep copy of HTTPAgentCfgs
type HTTPCfg ¶
type HTTPCfg struct {
HTTPJsonRPCURL string // JSON RPC relative URL ("" to disable)
RegistrarSURL string // registrar service relative URL
HTTPWSURL string // WebSocket relative URL ("" to disable)
HTTPFreeswitchCDRsURL string // Freeswitch CDRS relative URL ("" to disable)
HTTPCDRsURL string // CDRS relative URL ("" to disable)
PprofPath string // runtime profiling url path ("" to disable)
HTTPUseBasicAuth bool // Use basic auth for HTTP API
HTTPAuthUsers map[string]string // Basic auth user:password map (base64 passwords)
ClientOpts *http.Transport
// contains filtered or unexported fields
}
HTTPCfg is the HTTP config section
func (*HTTPCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type HTTPClientOptsJson ¶ added in v0.11.0
type HTTPClientOptsJson struct {
SkipTLSVerify *bool `json:"skipTlsVerify"`
TLSHandshakeTimeout *string `json:"tlsHandshakeTimeout"`
DisableKeepAlives *bool `json:"disableKeepAlives"`
DisableCompression *bool `json:"disableCompression"`
MaxIdleConns *int `json:"maxIdleConns"`
MaxIdleConnsPerHost *int `json:"maxIdleConnsPerHost"`
MaxConnsPerHost *int `json:"maxConnsPerHost"`
IdleConnTimeout *string `json:"IdleConnTimeout"`
ResponseHeaderTimeout *string `json:"responseHeaderTimeout"`
ExpectContinueTimeout *string `json:"expectContinueTimeout"`
ForceAttemptHTTP2 *bool `json:"forceAttemptHttp2"`
DialTimeout *string `json:"dialTimeout"`
DialFallbackDelay *string `json:"dialFallbackDelay"`
DialKeepAlive *string `json:"dialKeepAlive"`
}
type HTTPJsonCfg ¶
type HTTPJsonCfg struct {
Json_rpc_url *string
Registrars_url *string
Ws_url *string
Freeswitch_cdrs_url *string
Http_Cdrs *string
PprofPath *string `json:"pprof_path"`
Use_basic_auth *bool
Auth_users *map[string]string
Client_opts *HTTPClientOptsJson
}
HTTP config section
type HttpAgentJsonCfg ¶
type HttpAgentJsonCfg struct {
ID *string `json:"id"`
URL *string `json:"url"`
SessionSConns *[]string `json:"sessions_conns"`
StatSConns *[]string `json:"stats_conns"`
ThresholdSConns *[]string `json:"thresholds_conns"`
RequestPayload *string `json:"request_payload"`
ReplyPayload *string `json:"reply_payload"`
RequestProcessors *[]*ReqProcessorJsnCfg `json:"request_processors"`
}
Conecto Agent configuration section
type IPsCfg ¶ added in v0.11.0
type IPsCfg struct {
Enabled bool
IndexedSelects bool
StoreInterval time.Duration
StringIndexedFields *[]string
PrefixIndexedFields *[]string
SuffixIndexedFields *[]string
ExistsIndexedFields *[]string
NestedFields bool
Opts *IPsOpts
}
IPsCfg represents the configuration of the IPs module.
func (IPsCfg) AsMapInterface ¶ added in v0.11.0
AsMapInterface returns the ips config as a map[string]any.
type IPsJsonCfg ¶ added in v0.11.0
type IPsJsonCfg struct {
Enabled *bool `json:"enabled"`
IndexedSelects *bool `json:"indexed_selects"`
StoreInterval *string `json:"store_interval"`
StringIndexedFields *[]string `json:"string_indexed_fields"`
PrefixIndexedFields *[]string `json:"prefix_indexed_fields"`
SuffixIndexedFields *[]string `json:"suffix_indexed_fields"`
ExistsIndexedFields *[]string `json:"exists_indexed_fields"`
NestedFields *bool `json:"nested_fields"`
Opts *IPsOptsJson `json:"opts"`
}
IPsJsonCfg holds the unparsed ips section configuration as found in the config file.
type IPsOpts ¶ added in v0.11.0
func (*IPsOpts) AsMapInterface ¶ added in v0.11.0
AsMapInterface returns the config as a map[string]any.
type IPsOptsJson ¶ added in v0.11.0
type ItemOpt ¶
type ItemOpt struct {
Limit int
TTL time.Duration
StaticTTL bool
Remote bool
Replicate bool
// used for ArgDispatcher in case we send this to a dispatcher engine
RouteID string
APIKey string
}
ItemOpt the options for the stored items
func (*ItemOpt) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type ItemOptJson ¶
type JanusAgentCfg ¶ added in v0.11.0
type JanusAgentCfg struct {
Enabled bool
URL string
SessionSConns []string
JanusConns []*JanusConn // connections towards Janus
RequestProcessors []*RequestProcessor
}
JanusAgentCfg the config for an Janus Agent
func (*JanusAgentCfg) AsMapInterface ¶ added in v0.11.0
func (jaCfg *JanusAgentCfg) AsMapInterface(separator string) (initialMP map[string]any)
func (*JanusAgentCfg) Clone ¶ added in v0.11.0
func (jaCfg *JanusAgentCfg) Clone() *JanusAgentCfg
type JanusAgentJsonCfg ¶ added in v0.11.0
type JanusAgentJsonCfg struct {
Enabled *bool `json:"enabled"`
Url *string `json:"url"`
Sessions_conns *[]string `json:"sessions_conns"`
Janus_conns *[]*JanusConnJsonCfg `json:"janus_conns"`
RequestProcessors *[]*ReqProcessorJsnCfg `json:"request_processors"`
}
type JanusConn ¶ added in v0.11.0
type JanusConn struct {
Address string // Address to reach Janus
Type string // Connection type
AdminAddress string
AdminPassword string
}
JanusConn represents one connection to Janus server
func (*JanusConn) AsMapInterface ¶ added in v0.11.0
type JanusConnJsonCfg ¶ added in v0.11.0
type KafkaOpts ¶ added in v0.11.0
type KafkaROpts ¶ added in v0.11.0
type KafkaROpts struct {
Topic *string
GroupID *string
MaxWait *time.Duration
TLS *bool
CAPath *string
SkipTLSVerify *bool
}
func (*KafkaROpts) Clone ¶ added in v0.11.0
func (kafkaOpts *KafkaROpts) Clone() *KafkaROpts
type KamAgentCfg ¶
type KamAgentCfg struct {
Enabled bool
SessionSConns []string
CreateCdr bool
EvapiConns []*KamConnCfg
Timezone string
RouteProfile bool
}
KamAgentCfg is the Kamailio config section
func (*KamAgentCfg) AsMapInterface ¶ added in v0.10.1
func (ka *KamAgentCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*KamAgentCfg) Clone ¶ added in v0.11.0
func (ka *KamAgentCfg) Clone() (cln *KamAgentCfg)
Clone returns a deep copy of KamAgentCfg
type KamAgentJsonCfg ¶
type KamAgentJsonCfg struct {
Enabled *bool
Sessions_conns *[]string
Create_cdr *bool
Evapi_conns *[]*KamConnJsonCfg
Timezone *string
Route_profile *bool
}
SM-Kamailio config section
type KamConnCfg ¶
type KamConnCfg struct {
Alias string
Address string
Reconnects int
MaxReconnectInterval time.Duration
}
KamConnCfg represents one connection instance towards Kamailio
func NewDfltKamConnConfig ¶
func NewDfltKamConnConfig() *KamConnCfg
NewDfltKamConnConfig returns the first cached default value for a KamConnCfg connection
func (*KamConnCfg) AsMapInterface ¶ added in v0.10.1
func (kamCfg *KamConnCfg) AsMapInterface() map[string]any
AsMapInterface returns the config as a map[string]any
func (*KamConnCfg) Clone ¶ added in v0.11.0
func (kamCfg *KamConnCfg) Clone() *KamConnCfg
Clone returns a deep copy of KamConnCfg
type KamConnJsonCfg ¶
type KamConnJsonCfg struct {
Alias *string
Address *string
Reconnects *int
Max_reconnect_interval *string
}
Represents one connection instance towards Kamailio
type ListenCfg ¶
type ListenCfg struct {
RPCJSONListen string // RPC JSON listening address
RPCGOBListen string // RPC GOB listening address
HTTPListen string // HTTP listening address
RPCJSONTLSListen string // RPC JSON TLS listening address
RPCGOBTLSListen string // RPC GOB TLS listening address
HTTPTLSListen string // HTTP TLS listening address
BiJSONListen string // Bidirectional RPC JSON listening address
BiGobListen string // Bidirectional RPC GOB listening address
}
ListenCfg is the listen config section
func (*ListenCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type ListenJsonCfg ¶
type ListenJsonCfg struct {
Rpc_json *string
Rpc_gob *string
Http *string
Rpc_json_tls *string
Rpc_gob_tls *string
Http_tls *string
Birpc_json *string
Birpc_gob *string
}
Listen config section
type LoaderCfgJson ¶
type LoaderCfgJson struct {
Tpid *string
Data_path *string
Disable_reverse *bool
Field_separator *string
Caches_conns *[]string
Scheduler_conns *[]string
Gapi_credentials *json.RawMessage
Gapi_token *json.RawMessage
}
type LoaderCgrCfg ¶
type LoaderCgrCfg struct {
TpID string
DataPath string
DisableReverse bool
FieldSeparator rune // The separator to use when reading csvs
CachesConns []string
SchedulerConns []string
GapiCredentials json.RawMessage
GapiToken json.RawMessage
}
LoaderCgrCfg the config for cgr-loader
func (*LoaderCgrCfg) AsMapInterface ¶ added in v0.10.1
func (ld *LoaderCgrCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*LoaderCgrCfg) Clone ¶ added in v0.11.0
func (ld *LoaderCgrCfg) Clone() (cln *LoaderCgrCfg)
Clone returns a deep copy of LoaderCgrCfg
type MailerCfg ¶
type MailerCfg struct {
MailerServer string // The server to use when sending emails out
MailerAuthUser string // Authenticate to email server using this user
MailerAuthPass string // Authenticate to email server with this password
MailerFromAddr string // From address used when sending emails out
}
MailerCfg stores Mailer config section
func (*MailerCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type MailerJsonCfg ¶
type MailerJsonCfg struct {
Server *string
Auth_user *string
Auth_password *string
From_address *string
}
Mailer config section
type MigratorCfgJson ¶
type MigratorCfgJson struct {
Out_dataDB_type *string
Out_dataDB_host *string
Out_dataDB_port *string
Out_dataDB_name *string
Out_dataDB_user *string
Out_dataDB_password *string
Out_dataDB_encoding *string
Out_storDB_type *string
Out_storDB_host *string
Out_storDB_port *string
Out_storDB_name *string
Out_storDB_user *string
Out_storDB_password *string
Users_filters *[]string
Out_dataDB_opts *DBOptsJson
Out_storDB_opts *DBOptsJson
}
type MigratorCgrCfg ¶
type MigratorCgrCfg struct {
OutDataDBType string
OutDataDBHost string
OutDataDBPort string
OutDataDBName string
OutDataDBUser string
OutDataDBPassword string
OutDataDBEncoding string
OutStorDBType string
OutStorDBHost string
OutStorDBPort string
OutStorDBName string
OutStorDBUser string
OutStorDBPassword string
UsersFilters []string
OutDataDBOpts *DataDBOpts
OutStorDBOpts *StorDBOpts
}
MigratorCgrCfg the migrator config section
func (*MigratorCgrCfg) AsMapInterface ¶ added in v0.10.1
func (mg *MigratorCgrCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*MigratorCgrCfg) Clone ¶ added in v0.11.0
func (mg *MigratorCgrCfg) Clone() (cln *MigratorCgrCfg)
Clone returns a deep copy of MigratorCgrCfg
type NATSOpts ¶ added in v0.11.0
type NATSROpts ¶ added in v0.11.0
type ObjectDP ¶
type ObjectDP struct {
// contains filtered or unexported fields
}
ObjectDP implements the DataProvider for any any
func (*ObjectDP) FieldAsInterface ¶
FieldAsInterface is part of engine.utils.DataProvider interface
func (*ObjectDP) FieldAsString ¶
FieldAsString is part of engine.utils.DataProvider interface
type OsipsConnJsonCfg ¶
Represents one connection instance towards OpenSIPS
type PrometheusAgentCfg ¶ added in v0.11.0
type PrometheusAgentCfg struct {
Enabled bool
Path string
CollectGoMetrics bool
CollectProcessMetrics bool
CacheSConns []string
CacheIDs []string
CoreSConns []string
ApierSConns []string
StatSConns []string
StatQueueIDs []string
}
PrometheusAgentCfg represents the configuration of the Prometheus Agent.
func (PrometheusAgentCfg) AsMapInterface ¶ added in v0.11.0
func (c PrometheusAgentCfg) AsMapInterface() any
AsMapInterface returns the prometheus_agent config as a map[string]any.
func (*PrometheusAgentCfg) Clone ¶ added in v0.11.0
func (c *PrometheusAgentCfg) Clone() *PrometheusAgentCfg
Clone returns a deep copy of PrometheusAgentCfg.
type PrometheusAgentJsonCfg ¶ added in v0.11.0
type PrometheusAgentJsonCfg struct {
Enabled *bool `json:"enabled"`
Path *string `json:"path"`
CollectGoMetrics *bool `json:"collect_go_metrics"`
CollectProcessMetrics *bool `json:"collect_process_metrics"`
CacheSConns *[]string `json:"caches_conns"`
CacheIDs *[]string `json:"cache_ids"`
CoreSConns *[]string `json:"cores_conns"`
ApierSConns *[]string `json:"apiers_conns"`
StatSConns *[]string `json:"stats_conns"`
StatQueueIDs *[]string `json:"stat_queue_ids"`
}
PrometheusAgentJsonCfg holds the unparsed prometheus_agent as found in the config file.
type RPCConn ¶
type RPCConn struct {
Strategy string
PoolSize int
Conns []*RemoteHost
}
RPCConn the connection pool config
func NewDfltRPCConn ¶
func NewDfltRPCConn() *RPCConn
NewDfltRPCConn returns the default value for a RPCConn
func (*RPCConn) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type RPCConns ¶ added in v0.11.0
RPCConns the config for all rpc pools
func (RPCConns) AsMapInterface ¶ added in v0.11.0
AsMapInterface returns the config as a map[string]any
type RPCConnsJson ¶
type RPCConnsJson struct {
Strategy *string
PoolSize *int
Conns *[]*RemoteHostJson
}
type RPCOpts ¶ added in v0.11.0
type RSRParser ¶
type RSRParser struct {
Rules string // Rules container holding the string rules, public so it can be stored
// contains filtered or unexported fields
}
RSRParser is a parser for data coming from various sources
func NewRSRParser ¶
NewRSRParser builds one RSRParser
func NewRSRParserMustCompile ¶
NewRSRParserMustCompile creates a new RSRParser and panic if fails
func (*RSRParser) CompileDynRule ¶ added in v0.11.0
func (prsr *RSRParser) CompileDynRule(dP utils.DataProvider) (p string, err error)
CompileDynRule will return the compiled dynamic rule
func (*RSRParser) ParseDataProvider ¶
func (prsr *RSRParser) ParseDataProvider(dP utils.DataProvider) (out string, err error)
ParseDataProvider will parse the dataprovider using DPDynamicString
func (*RSRParser) ParseDataProviderWithInterfaces ¶
func (prsr *RSRParser) ParseDataProviderWithInterfaces(dP utils.DataProvider) (out string, err error)
ParseDataProviderWithInterfaces will parse the dataprovider using DPDynamicInterface
type RSRParsers ¶
type RSRParsers []*RSRParser
RSRParsers is a set of RSRParser
func NewRSRParsers ¶
func NewRSRParsers(parsersRules string, rsrSeparator string) (prsrs RSRParsers, err error)
NewRSRParsers creates a new RSRParsers by spliting the rule using the separator
func NewRSRParsersFromSlice ¶
func NewRSRParsersFromSlice(parsersRules []string) (prsrs RSRParsers, err error)
NewRSRParsersFromSlice creates a new RSRParsers from a slice
func NewRSRParsersMustCompile ¶
func NewRSRParsersMustCompile(parsersRules string, rsrSeparator string) (prsrs RSRParsers)
NewRSRParsersMustCompile creates a new RSRParsers and panic if fails
func (RSRParsers) Clone ¶ added in v0.11.0
func (prsrs RSRParsers) Clone() (cln RSRParsers)
Clone returns a deep copy of RSRParsers
func (RSRParsers) Compile ¶
func (prsrs RSRParsers) Compile() (err error)
Compile parses Rules string and repopulates other fields
func (RSRParsers) GetIfaceFromValues ¶ added in v0.11.0
func (prsrs RSRParsers) GetIfaceFromValues(evNm utils.DataProvider) (iFaceVals []any, err error)
GetIfaceFromValues returns an interface for each RSRParser
func (RSRParsers) GetRule ¶ added in v0.10.1
func (prsrs RSRParsers) GetRule(sep string) (out string)
GetRule returns the original string from which the rules were composed
func (RSRParsers) ParseDataProvider ¶
func (prsrs RSRParsers) ParseDataProvider(dP utils.DataProvider) (out string, err error)
ParseDataProvider will parse the dataprovider using DPDynamicString
func (RSRParsers) ParseDataProviderWithInterfaces ¶
func (prsrs RSRParsers) ParseDataProviderWithInterfaces(dP utils.DataProvider) (out string, err error)
ParseDataProviderWithInterfaces will parse the dataprovider using DPDynamicInterface
func (RSRParsers) ParseValue ¶
func (prsrs RSRParsers) ParseValue(value any) (out string, err error)
ParseValue will parse the value out considering converters
type RadiListenerJsnCfg ¶ added in v0.11.0
type RadiusAgentCfg ¶
type RadiusAgentCfg struct {
Enabled bool
Listeners []RadiusListener
ClientSecrets map[string]string
ClientDictionaries map[string][]string
ClientDaAddresses map[string]DAClientOpts
SessionSConns []string
StatSConns []string
ThresholdSConns []string
RequestsCacheKey RSRParsers
DMRTemplate string
CoATemplate string
RequestProcessors []*RequestProcessor
}
RadiusAgentCfg the config section that describes the Radius Agent
func (*RadiusAgentCfg) AsMapInterface ¶ added in v0.10.1
func (ra *RadiusAgentCfg) AsMapInterface(separator string) map[string]any
AsMapInterface returns the config as a map[string]any
func (*RadiusAgentCfg) Clone ¶ added in v0.11.0
func (ra *RadiusAgentCfg) Clone() *RadiusAgentCfg
Clone returns a deep copy of RadiusAgentCfg
type RadiusAgentJsonCfg ¶
type RadiusAgentJsonCfg struct {
Enabled *bool `json:"enabled"`
Listeners *[]*RadiListenerJsnCfg `json:"listeners"`
ClientSecrets *map[string]string `json:"client_secrets"`
ClientDictionaries *map[string][]string `json:"client_dictionaries"`
ClientDaAddresses map[string]DAClientOptsJson `json:"client_da_addresses"`
SessionSConns *[]string `json:"sessions_conns"`
StatSConns *[]string `json:"stats_conns"`
ThresholdSConns *[]string `json:"thresholds_conns"`
RequestsCacheKey *string `json:"requests_cache_key"`
DMRTemplate *string `json:"dmr_template"`
CoATemplate *string `json:"coa_template"`
RequestProcessors *[]*ReqProcessorJsnCfg `json:"request_processors"`
}
Radius Agent configuration section
type RadiusListener ¶ added in v0.11.0
func (*RadiusListener) AsMapInterface ¶ added in v0.11.0
func (lstn *RadiusListener) AsMapInterface(separator string) map[string]any
AsMapInterface returns the config as a map[string]any
type RalsCfg ¶
type RalsCfg struct {
Enabled bool // start standalone server (no balancer)
ThresholdSConns []string // address where to reach ThresholdS config
StatSConns []string
SessionSConns []string
RpSubjectPrefixMatching bool // enables prefix matching for the rating profile subject
RemoveExpired bool
MaxComputedUsage map[string]time.Duration
BalanceRatingSubject map[string]string
MaxIncrements int
FallbackDepth int
}
RalsCfg is rater config section
func (*RalsCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type RalsJsonCfg ¶
type RalsJsonCfg struct {
Enabled *bool
Thresholds_conns *[]string
Stats_conns *[]string
Sessions_conns *[]string
Rp_subject_prefix_matching *bool
Remove_expired *bool
Max_computed_usage *map[string]string
Max_increments *int
Fallback_depth *int
Balance_rating_subject *map[string]string
}
Rater config section
type RankingSCfg ¶ added in v0.11.0
type RankingSCfg struct {
Enabled bool
StatSConns []string
ThresholdSConns []string
ScheduledIDs map[string][]string
StoreInterval time.Duration
EEsConns []string
EEsExporterIDs []string
}
func (*RankingSCfg) AsMapInterface ¶ added in v0.11.0
func (sgsCfg *RankingSCfg) AsMapInterface() (initialMP map[string]any)
func (*RankingSCfg) Clone ¶ added in v0.11.0
func (sgscfg *RankingSCfg) Clone() (cln *RankingSCfg)
type RankingsJsonCfg ¶ added in v0.11.0
type RegistrarCCfg ¶ added in v0.11.0
type RegistrarCCfg struct {
RegistrarSConns []string
Hosts map[string][]*RemoteHost
RefreshInterval time.Duration
}
RegistrarCCfg is the configuration of registrarc
func (*RegistrarCCfg) AsMapInterface ¶ added in v0.11.0
func (dps *RegistrarCCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*RegistrarCCfg) Clone ¶ added in v0.11.0
func (dps *RegistrarCCfg) Clone() (cln *RegistrarCCfg)
Clone returns a deep copy of DispatcherHCfg
type RegistrarCCfgs ¶ added in v0.11.0
type RegistrarCCfgs struct {
RPC *RegistrarCCfg
Dispatchers *RegistrarCCfg
}
RegistrarCCfgs is the configuration of registrarc rpc and dispatcher
func (*RegistrarCCfgs) AsMapInterface ¶ added in v0.11.0
func (dps *RegistrarCCfgs) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*RegistrarCCfgs) Clone ¶ added in v0.11.0
func (dps *RegistrarCCfgs) Clone() (cln *RegistrarCCfgs)
Clone returns a deep copy of DispatcherHCfg
type RegistrarCJsonCfg ¶ added in v0.11.0
type RegistrarCJsonCfg struct {
Registrars_conns *[]string
Hosts []*RemoteHostJsonWithTenant
Refresh_interval *string
}
type RegistrarCJsonCfgs ¶ added in v0.11.0
type RegistrarCJsonCfgs struct {
RPC *RegistrarCJsonCfg
Dispatchers *RegistrarCJsonCfg
}
type ReloadArgs ¶ added in v0.11.0
type ReloadArgs struct {
APIOpts map[string]any
Tenant string
Path string
Section string
DryRun bool
}
ReloadArgs the API params for V1ReloadConfig
type RemoteHost ¶
type RemoteHost struct {
ID string
Address string
Transport string
ConnectAttempts int
Reconnects int
MaxReconnectInterval time.Duration
ConnectTimeout time.Duration
ReplyTimeout time.Duration
TLS bool
ClientKey string
ClientCertificate string
CaCertificate string
}
RemoteHost connection config
func NewDfltRemoteHost ¶
func NewDfltRemoteHost() *RemoteHost
NewDfltRemoteHost returns the first cached default value for a RemoteHost connection
func (*RemoteHost) AsMapInterface ¶ added in v0.10.1
func (rh *RemoteHost) AsMapInterface() (mp map[string]any)
AsMapInterface returns the config as a map[string]any
func (*RemoteHost) Clone ¶ added in v0.11.0
func (rh *RemoteHost) Clone() (cln *RemoteHost)
Clone returns a deep copy of RemoteHost
type RemoteHostJson ¶
type RemoteHostJson struct {
Id *string
Address *string
Transport *string
Synchronous *bool
Tls *bool
Key_path *string
Cert_path *string
Ca_path *string
Conn_attempts *int
Reconnects *int
Max_reconnect_interval *string
Connect_timeout *string
Reply_timeout *string
}
Represents one connection instance towards a rater/cdrs server
type RemoteHostJsonWithTenant ¶ added in v0.11.0
type RemoteHostJsonWithTenant struct {
*RemoteHostJson
Tenant *string
}
type ReqProcessorJsnCfg ¶
type ReqProcessorJsnCfg struct {
ID *string
Filters *[]string
Tenant *string
Timezone *string
Flags *[]string
Request_fields *[]*FcTemplateJsonCfg
Reply_fields *[]*FcTemplateJsonCfg
}
type RequestProcessor ¶
type RequestProcessor struct {
ID string
Tenant RSRParsers
Filters []string
Flags utils.FlagsWithParams
Timezone string
RequestFields []*FCTemplate
ReplyFields []*FCTemplate
}
RequestProcessor is the request processor configuration
func (*RequestProcessor) AsMapInterface ¶ added in v0.10.1
func (rp *RequestProcessor) AsMapInterface(separator string) (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*RequestProcessor) Clone ¶ added in v0.11.0
func (rp *RequestProcessor) Clone() (cln *RequestProcessor)
Clone returns a deep copy of APIBanCfg
type ResourceSConfig ¶
type ResourceSConfig struct {
Enabled bool
IndexedSelects bool
ThresholdSConns []string
StoreInterval time.Duration // Dump regularly from cache into dataDB
StringIndexedFields *[]string
PrefixIndexedFields *[]string
SuffixIndexedFields *[]string
ExistsIndexedFields *[]string
NestedFields bool
Opts *ResourcesOpts
}
ResourceSConfig is resorces section config
func (*ResourceSConfig) AsMapInterface ¶ added in v0.10.1
func (rlcfg *ResourceSConfig) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*ResourceSConfig) Clone ¶ added in v0.11.0
func (rlcfg *ResourceSConfig) Clone() (cln *ResourceSConfig)
Clone returns a deep copy of ResourceSConfig
type ResourceSJsonCfg ¶
type ResourceSJsonCfg struct {
Enabled *bool
Indexed_selects *bool
Thresholds_conns *[]string
Store_interval *string
String_indexed_fields *[]string
Prefix_indexed_fields *[]string
Suffix_indexed_fields *[]string
ExistsIndexedFields *[]string `json:"exists_indexed_fields"`
Nested_fields *bool // applies when indexed fields is not defined
Opts *ResourcesOptsJson
}
ResourceLimiter service config section
type ResourcesOpts ¶ added in v0.11.0
func (*ResourcesOpts) Clone ¶ added in v0.11.0
func (resOpts *ResourcesOpts) Clone() (cln *ResourcesOpts)
type ResourcesOptsJson ¶ added in v0.11.0
type RjReader ¶ added in v0.11.0
type RjReader struct {
// contains filtered or unexported fields
}
RjReader structure that implements io.Reader to read json files ignoring C style comments and replacing *env:
func NewRjReader ¶
NewRjReader creates a new rjReader from a io.Reader
func NewRjReaderFromBytes ¶
NewRjReaderFromBytes creates a new rjReader from a slice of bytes
func (*RjReader) HandleJSONError ¶ added in v0.11.0
HandleJSONError warning: needs to read file again
func (*RjReader) PeekByteWC ¶ added in v0.11.0
PeekByteWC peeks next byte skiping the comments
func (*RjReader) ReadByteWC ¶ added in v0.11.0
ReadByteWC reads next byte skiping the comments
func (*RjReader) UnreadByte ¶ added in v0.11.0
UnreadByte implementation
type RouteSCfg ¶ added in v0.11.0
type RouteSCfg struct {
Enabled bool
IndexedSelects bool
StringIndexedFields *[]string
PrefixIndexedFields *[]string
SuffixIndexedFields *[]string
ExistsIndexedFields *[]string
AttributeSConns []string
ResourceSConns []string
StatSConns []string
RALsConns []string
DefaultRatio int
NestedFields bool
Opts *RoutesOpts
}
RouteSCfg is the configuration of route service
func (*RouteSCfg) AsMapInterface ¶ added in v0.11.0
AsMapInterface returns the config as a map[string]any
type RouteSJsonCfg ¶ added in v0.11.0
type RouteSJsonCfg struct {
Enabled *bool
Indexed_selects *bool
String_indexed_fields *[]string
Prefix_indexed_fields *[]string
Suffix_indexed_fields *[]string
ExistsIndexedFields *[]string `json:"exists_indexed_fields"`
Nested_fields *bool // applies when indexed fields is not defined
Attributes_conns *[]string
Resources_conns *[]string
Stats_conns *[]string
Rals_conns *[]string
Default_ratio *int
Opts *RoutesOptsJson
}
Route service config section
type RoutesOpts ¶ added in v0.11.0
type RoutesOpts struct {
Context string
IgnoreErrors bool
MaxCost any
Limit *int
Offset *int
ProfileCount *int
}
func (*RoutesOpts) Clone ¶ added in v0.11.0
func (rts *RoutesOpts) Clone() (cln *RoutesOpts)
type RoutesOptsJson ¶ added in v0.11.0
type SIPAgentCfg ¶ added in v0.11.0
type SIPAgentCfg struct {
Enabled bool
Listen string
ListenNet string // udp or tcp
SessionSConns []string
StatSConns []string
ThresholdSConns []string
Timezone string
RetransmissionTimer time.Duration // timeout replies if not reaching back
RequestProcessors []*RequestProcessor
}
SIPAgentCfg the config for the SIPAgent
func (*SIPAgentCfg) AsMapInterface ¶ added in v0.11.0
func (sa *SIPAgentCfg) AsMapInterface(separator string) map[string]any
AsMapInterface returns the config as a map[string]any
func (*SIPAgentCfg) Clone ¶ added in v0.11.0
func (sa *SIPAgentCfg) Clone() *SIPAgentCfg
Clone returns a deep copy of SIPAgentCfg
type SIPAgentJsonCfg ¶ added in v0.11.0
type SIPAgentJsonCfg struct {
Enabled *bool `json:"enabled"`
Listen *string `json:"listen"`
ListenNet *string `json:"listen_net"`
SessionSConns *[]string `json:"sessions_conns"`
StatSConns *[]string `json:"stats_conns"`
ThresholdSConns *[]string `json:"thresholds_conns"`
Timezone *string `json:"timezone"`
RetransmissionTimer *string `json:"retransmission_timer"`
RequestProcessors *[]*ReqProcessorJsnCfg `json:"request_processors"`
}
SIPAgentJsonCfg
type SQLOpts ¶ added in v0.11.0
type SQLROpts ¶ added in v0.11.0
type STIRJsonCfg ¶ added in v0.11.0
type STIRcfg ¶ added in v0.11.0
type STIRcfg struct {
AllowedAttest utils.StringSet
PayloadMaxduration time.Duration
DefaultAttest string
PublicKeyPath string
PrivateKeyPath string
}
STIRcfg the confuguration structure for STIR
func (*STIRcfg) AsMapInterface ¶ added in v0.11.0
AsMapInterface returns the config as a map[string]any
type SchedulerCfg ¶
type SchedulerCfg struct {
Enabled bool
CDRsConns []string
ThreshSConns []string
StatSConns []string
Filters []string
DynaprepaidActionPlans []string
}
SchedulerCfg the condig section for scheduler
func (*SchedulerCfg) AsMapInterface ¶ added in v0.10.1
func (schdcfg *SchedulerCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*SchedulerCfg) Clone ¶ added in v0.11.0
func (schdcfg *SchedulerCfg) Clone() (cln *SchedulerCfg)
Clone returns a deep copy of SchedulerCfg
type SchedulerJsonCfg ¶
type SchedulerJsonCfg struct {
Enabled *bool
Cdrs_conns *[]string
Thresholds_conns *[]string
Stats_conns *[]string
Filters *[]string
Dynaprepaid_actionplans *[]string
}
Scheduler config section
type SectionWithAPIOpts ¶ added in v0.11.0
SectionWithAPIOpts the API params for GetConfig
type SentryPeerCfg ¶ added in v0.11.0
type SentryPeerCfg struct {
ClientID string
ClientSecret string
TokenUrl string
IpsUrl string
NumbersUrl string
Audience string
GrantType string
}
func (*SentryPeerCfg) AsMapInterface ¶ added in v0.11.0
func (sp *SentryPeerCfg) AsMapInterface() map[string]any
func (*SentryPeerCfg) Clone ¶ added in v0.11.0
func (sp *SentryPeerCfg) Clone() (cln *SentryPeerCfg)
type SentryPeerJsonCfg ¶ added in v0.11.0
type SessionSCfg ¶
type SessionSCfg struct {
Enabled bool
ApierSConns []string
ChargerSConns []string
RALsConns []string
IPsConns []string
ResourceSConns []string
ThresholdSConns []string
StatSConns []string
RouteSConns []string
AttributeSConns []string
CDRsConns []string
ReplicationConns []string
DebitInterval time.Duration
StoreSCosts bool
SessionTTL time.Duration
SessionTTLMaxDelay *time.Duration
SessionTTLLastUsed *time.Duration
SessionTTLUsage *time.Duration
SessionTTLLastUsage *time.Duration
SessionIndexes utils.StringSet
ClientProtocol float64
ChannelSyncInterval time.Duration
ChannelSyncTimeout time.Duration
StaleChanMaxExtraUsage time.Duration
TerminateAttempts int
AlterableFields utils.StringSet
MinDurLowBalance time.Duration
SchedulerConns []string
STIRCfg *STIRcfg
DefaultUsage map[string]time.Duration
BackupInterval time.Duration
}
SessionSCfg is the config section for SessionS
func (*SessionSCfg) AsMapInterface ¶ added in v0.10.1
func (scfg *SessionSCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*SessionSCfg) Clone ¶ added in v0.11.0
func (scfg *SessionSCfg) Clone() (cln *SessionSCfg)
Clone returns a deep copy of SessionSCfg
func (*SessionSCfg) GetDefaultUsage ¶ added in v0.10.3
func (scfg *SessionSCfg) GetDefaultUsage(tor string) time.Duration
type SessionSJsonCfg ¶
type SessionSJsonCfg struct {
Enabled *bool `json:"enabled"`
ApierSConns *[]string `json:"apiers_conns"`
ChargerSConns *[]string `json:"chargers_conns"`
RALsConns *[]string `json:"rals_conns"`
IPsConns *[]string `json:"ips_conns"`
ResourceSConns *[]string `json:"resources_conns"`
ThresholdSConns *[]string `json:"thresholds_conns"`
StatSConns *[]string `json:"stats_conns"`
RouteSConns *[]string `json:"routes_conns"`
CDRsConns *[]string `json:"cdrs_conns"`
ReplicationConns *[]string `json:"replication_conns"`
AttributeSConns *[]string `json:"attributes_conns"`
DebitInterval *string `json:"debit_interval"`
StoreSCosts *bool `json:"store_session_costs"`
SessionTTL *string `json:"session_ttl"`
SessionTTLMaxDelay *string `json:"session_ttl_max_delay"`
SessionTTLLastUsed *string `json:"session_ttl_last_used"`
SessionTTLUsage *string `json:"session_ttl_usage"`
SessionTTLLastUsage *string `json:"session_ttl_last_usage"`
SessionIndexes *[]string `json:"session_indexes"`
ClientProtocol *float64 `json:"client_protocol"`
ChannelSyncInterval *string `json:"channel_sync_interval"`
ChannelSyncTimeout *string `json:"channel_sync_timeout"`
StaleChanMaxExtraUsage *string `json:"stale_chan_max_extra_usage"`
TerminateAttempts *int `json:"terminate_attempts"`
AlterableFields *[]string `json:"alterable_fields"`
MinDurLowBalance *string `json:"min_dur_low_balance"`
SchedulerConns *[]string `json:"scheduler_conns"`
Stir *STIRJsonCfg `json:"stir"`
DefaultUsage *map[string]string `json:"default_usage"`
BackupInterval *string `json:"backup_interval"`
}
SessionSJsonCfg config section
type SetConfigArgs ¶ added in v0.11.0
type SetConfigArgs struct {
APIOpts map[string]any
Tenant string
Config map[string]any
DryRun bool
}
SetConfigArgs the API params for V1SetConfig
type SetConfigFromJSONArgs ¶ added in v0.11.0
type SetConfigFromJSONArgs struct {
APIOpts map[string]any
Tenant string
Config string
DryRun bool
}
SetConfigFromJSONArgs the API params for V1SetConfigFromJSON
type SliceDP ¶
type SliceDP struct {
// contains filtered or unexported fields
}
SliceDP implements engine.utils.DataProvider so we can pass it to filters
func (*SliceDP) FieldAsInterface ¶
FieldAsInterface is part of engine.utils.DataProvider interface
func (*SliceDP) FieldAsString ¶
FieldAsString is part of engine.utils.DataProvider interface
type StatSCfg ¶
type StatSCfg struct {
Enabled bool
IndexedSelects bool
StoreInterval time.Duration // Dump regularly from cache into dataDB
StoreUncompressedLimit int
ThresholdSConns []string
StringIndexedFields *[]string
PrefixIndexedFields *[]string
SuffixIndexedFields *[]string
ExistsIndexedFields *[]string
NestedFields bool
Opts *StatsOpts
EEsConns []string
EEsExporterIDs []string
}
StatSCfg the stats config section
func (*StatSCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type StatServJsonCfg ¶
type StatServJsonCfg struct {
Enabled *bool
Indexed_selects *bool
Store_interval *string
Store_uncompressed_limit *int
Thresholds_conns *[]string
String_indexed_fields *[]string
Prefix_indexed_fields *[]string
Suffix_indexed_fields *[]string
ExistsIndexedFields *[]string `json:"exists_indexed_fields"`
Nested_fields *bool // applies when indexed fields is not defined
Opts *StatsOptsJson
Ees_conns *[]string
Ees_exporter_ids *[]string
}
Stat service config section
type StatsOptsJson ¶ added in v0.11.0
type StorDBOpts ¶ added in v0.11.0
type StorDBOpts struct {
InternalDBDumpPath string // Path to the dump file
InternalDBBackupPath string // Path where db dump will backup
InternalDBStartTimeout time.Duration // Transcache recover from dump files timeout duration
InternalDBDumpInterval time.Duration // Regurarly dump database to file
InternalDBRewriteInterval time.Duration // Regurarly rewrite dump files
InternalDBFileSizeLimit int64 // maximum size that can be written in a singular dump file
SQLMaxOpenConns int
SQLMaxIdleConns int
SQLConnMaxLifetime time.Duration
SQLLogLevel int
MongoQueryTimeout time.Duration
MongoConnScheme string
PgSSLMode string
PgSSLCert string
PgSSLKey string
PgSSLPassword string
PgSSLCertMode string
PgSSLRootCert string
PgSchema string
MySQLLocation string
MySQLDSNParams map[string]string
}
func (*StorDBOpts) Clone ¶ added in v0.11.0
func (dbOpts *StorDBOpts) Clone() *StorDBOpts
func (*StorDBOpts) ToTransCacheOpts ¶ added in v0.11.0
func (s *StorDBOpts) ToTransCacheOpts() (tco *ltcache.TransCacheOpts)
ToTransCacheOpts returns to ltcache.TransCacheOpts from StorDBOpts
type StorDbCfg ¶
type StorDbCfg struct {
Type string // Should reflect the database type used to store logs
Host string // The host to connect to. Values that start with / are for UNIX domain sockets.
Port string // The port to bind to.
Name string // The name of the database to connect to.
User string // The user to sign in as.
Password string // The user's password.
StringIndexedFields []string
PrefixIndexedFields []string
RmtConns []string // Remote DataDB connIDs
RplConns []string // Replication connIDs
Items map[string]*ItemOpt
Opts *StorDBOpts
}
StorDbCfg StroreDb config
func (*StorDbCfg) AsMapInterface ¶ added in v0.10.1
AsMapInterface returns the config as a map[string]any
type SureTaxCfg ¶
type SureTaxCfg struct {
URL string
ClientNumber string
ValidationKey string
BusinessUnit string
Timezone *time.Location // Convert the time of the events to this timezone before sending request out
IncludeLocalCost bool
ReturnFileCode string
ResponseGroup string
ResponseType string
RegulatoryCode string
ClientTracking RSRParsers // Concatenate all of them to get value
CustomerNumber RSRParsers
OrigNumber RSRParsers
TermNumber RSRParsers
BillToNumber RSRParsers
Zipcode RSRParsers
Plus4 RSRParsers
P2PZipcode RSRParsers
P2PPlus4 RSRParsers
Units RSRParsers
UnitType RSRParsers
TaxIncluded RSRParsers
TaxSitusRule RSRParsers
TransTypeCode RSRParsers
SalesTypeCode RSRParsers
TaxExemptionCodeList RSRParsers
}
SureTaxCfg configuration object
func (*SureTaxCfg) AsMapInterface ¶ added in v0.10.1
func (st *SureTaxCfg) AsMapInterface(separator string) (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*SureTaxCfg) Clone ¶ added in v0.11.0
func (st *SureTaxCfg) Clone() (cln *SureTaxCfg)
Clone returns a deep copy of SureTaxCfg
type SureTaxJsonCfg ¶
type SureTaxJsonCfg struct {
Url *string
Client_number *string
Validation_key *string
Business_unit *string
Timezone *string
Include_local_cost *bool
Return_file_code *string
Response_group *string
Response_type *string
Regulatory_code *string
Client_tracking *string
Customer_number *string
Orig_number *string
Term_number *string
Bill_to_number *string
Zipcode *string
Plus4 *string
P2PZipcode *string
P2PPlus4 *string
Units *string
Unit_type *string
Tax_included *string
Tax_situs_rule *string
Trans_type_code *string
Sales_type_code *string
Tax_exemption_code_list *string
}
SureTax config section
type TLSCfg ¶ added in v0.11.0
type TLSCfg struct {
ServerCerificate string
ServerKey string
ServerPolicy int
ServerName string
ClientCerificate string
ClientKey string
CaCertificate string
}
TLSCfg is the configuration for tls
func (*TLSCfg) AsMapInterface ¶ added in v0.11.0
AsMapInterface returns the config as a map[string]any
type ThresholdSCfg ¶
type ThresholdSCfg struct {
Enabled bool
IndexedSelects bool
StoreInterval time.Duration // Dump regularly from cache into dataDB
SessionSConns []string
ApierSConns []string
EEsExporterIDs []string
EEsConns []string
StringIndexedFields *[]string
PrefixIndexedFields *[]string
SuffixIndexedFields *[]string
ExistsIndexedFields *[]string
NestedFields bool
Opts *ThresholdsOpts
}
ThresholdSCfg the threshold config section
func (*ThresholdSCfg) AsMapInterface ¶ added in v0.10.1
func (t *ThresholdSCfg) AsMapInterface() (initialMP map[string]any)
AsMapInterface returns the config as a map[string]any
func (*ThresholdSCfg) Clone ¶ added in v0.11.0
func (t *ThresholdSCfg) Clone() (cln *ThresholdSCfg)
Clone returns a deep copy of ThresholdSCfg
type ThresholdSJsonCfg ¶
type ThresholdSJsonCfg struct {
Enabled *bool
Indexed_selects *bool
Store_interval *string
Sessions_conns []string
Apiers_conns []string
Ees_conns *[]string
Ees_exporter_ids *[]string
String_indexed_fields *[]string
Prefix_indexed_fields *[]string
Suffix_indexed_fields *[]string
ExistsIndexedFields *[]string `json:"exists_indexed_fields"`
Nested_fields *bool // applies when indexed fields is not defined
Opts *ThresholdsOptsJson
}
Threshold service config section
type ThresholdsOpts ¶ added in v0.11.0
func (*ThresholdsOpts) Clone ¶ added in v0.11.0
func (thdOpts *ThresholdsOpts) Clone() *ThresholdsOpts
type ThresholdsOptsJson ¶ added in v0.11.0
type TlsJsonCfg ¶
type TrendSCfg ¶ added in v0.11.0
type TrendSCfg struct {
Enabled bool
StatSConns []string
ThresholdSConns []string
ScheduledIDs map[string][]string
StoreInterval time.Duration
StoreUncompressedLimit int
EEsConns []string
EEsExporterIDs []string
}
func (*TrendSCfg) AsMapInterface ¶ added in v0.11.0
type TrendsJsonCfg ¶ added in v0.11.0
type XMLProvider ¶ added in v0.11.0
type XMLProvider struct {
// contains filtered or unexported fields
}
XmlProvider implements engine.utils.DataProvider, allowing it to be passed to filters. An instance of XmlProvider is created for each element retrieved from xmlquery.QueryAll.
func (*XMLProvider) FieldAsInterface ¶ added in v0.11.0
func (xP *XMLProvider) FieldAsInterface(fldPath []string) (data any, err error)
FieldAsInterface is part of engine.utils.DataProvider interface
func (*XMLProvider) FieldAsString ¶ added in v0.11.0
func (xP *XMLProvider) FieldAsString(fldPath []string) (data string, err error)
FieldAsString is part of engine.utils.DataProvider interface
func (*XMLProvider) String ¶ added in v0.11.0
func (xP *XMLProvider) String() string
String is part of engine.utils.DataProvider interface when called, it will display the already parsed values out of cache
Source Files
¶
- analyzerscfg.go
- apiban.go
- apiercfg.go
- attributescfg.go
- cachecfg.go
- cdrscfg.go
- chargerscfg.go
- config.go
- config_defaults.go
- config_json.go
- configs.go
- configsanity.go
- corescfg.go
- datadbcfg.go
- diameter.go
- dispatcherscfg.go
- dns.go
- eescfg.go
- ers.go
- fctemplate.go
- filterscfg.go
- fwvdp.go
- generalcfg.go
- httpagent.go
- httpcfg.go
- ips.go
- janusagntcfg.go
- kamagentcfg.go
- libconfig_json.go
- listencfg.go
- loadercgrcfg.go
- mailercfg.go
- migratorcfg.go
- objdp.go
- prometheus.go
- radius.go
- ralscfg.go
- rankingscfg.go
- registrarccfg.go
- resourcescfg.go
- rjreader.go
- routescfg.go
- rpcconn.go
- rsrparser.go
- schedulercfg.go
- sentrypeer.go
- sessionscfg.go
- sip.go
- slicedp.go
- statscfg.go
- stordbcfg.go
- suretaxcfg.go
- thresholdscfg.go
- tlscfg.go
- trendscfg.go
- xmldp.go