Versions in this module Expand all Collapse all v1 v1.2.5 Jul 26, 2024 Changes in this version + const NrfDiscUriPrefix + const PcfSmpolicycontrolUriPrefix + const SmfCallbackUriPrefix + const SmfDefaultCertPemPath + const SmfDefaultConfigPath + const SmfDefaultNrfUri + const SmfDefaultPrivateKeyPath + const SmfDefaultTLSKeyLogPath + const SmfDefaultUERoutingPath + const SmfEventExposureResUriPrefix + const SmfOamUriPrefix + const SmfPdusessionResUriPrefix + const SmfSbiDefaultIPv4 + const SmfSbiDefaultPort + const SmfSbiDefaultScheme + const UdmSdmUriPrefix + const UpiUriPrefix + var SmfConfig *Config + var UERoutingConfig *RoutingConfig + func InitConfigFactory(f string, cfg *Config) error + func InitRoutingConfigFactory(f string, cfg *RoutingConfig) error + type Config struct + Configuration *Configuration + Info *Info + Logger *Logger + func ReadConfig(cfgPath string) (*Config, error) + func (c *Config) GetCertKeyPath() string + func (c *Config) GetCertPemPath() string + func (c *Config) GetLogEnable() bool + func (c *Config) GetLogLevel() string + func (c *Config) GetLogReportCaller() bool + func (c *Config) GetSbiScheme() string + func (c *Config) GetVersion() string + func (c *Config) Print() + func (c *Config) SetLogEnable(enable bool) + func (c *Config) SetLogLevel(level string) + func (c *Config) SetLogReportCaller(reportCaller bool) + func (c *Config) Validate() (bool, error) + type Configuration struct + Locality string + NrfCertPem string + NrfUri string + NwInstFqdnEncoding bool + PFCP *PFCP + PLMNList []PlmnID + RequestedUnit int32 + SNssaiInfo []*SnssaiInfoItem + Sbi *Sbi + ServiceNameList []string + SmfName string + T3591 *TimerValue + T3592 *TimerValue + ULCL bool + UrrPeriod uint16 + UrrThreshold uint64 + UserPlaneInformation UserPlaneInformation + type DNS struct + IPv4Addr string + IPv6Addr string + type DnnUpfInfoItem struct + DnaiList []string + Dnn string + PduSessionTypes []models.PduSessionType + Pools []*UEIPPool + StaticPools []*UEIPPool + type Info struct + Description string + Version string + type InterfaceUpfInfoItem struct + Endpoints []string + InterfaceType models.UpInterfaceType + NetworkInstances []string + type Logger struct + Enable bool + Level string + ReportCaller bool + type PCSCF struct + IPv4Addr string + type PFCP struct + AssocFailAlertInterval time.Duration + AssocFailRetryInterval time.Duration + ExternalAddr string + HeartbeatInterval time.Duration + ListenAddr string + NodeID string + type Path struct + DestinationIP string + DestinationPort string + UPF []string + type PfdContent struct + DomainNames []string + FlowDescriptions []string + PfdID string + Urls []string + type PfdDataForApp struct + AppID string + CachingTime *time.Time + Pfds []PfdContent + type PlmnID struct + Mcc string + Mnc string + type RouteProfID string + type RouteProfile struct + ForwardingPolicyID string + type RoutingConfig struct + Info *Info + PfdDatas []*PfdDataForApp + RouteProf map[RouteProfID]RouteProfile + UERoutingInfo map[string]UERoutingInfo + func ReadUERoutingConfig(cfgPath string) (*RoutingConfig, error) + func (r *RoutingConfig) GetVersion() string + func (r *RoutingConfig) Validate() (bool, error) + type Sbi struct + BindingIPv4 string + Port int + RegisterIPv4 string + Scheme string + Tls *Tls + type SnssaiDnnInfoItem struct + DNS *DNS + Dnn string + PCSCF *PCSCF + type SnssaiInfoItem struct + DnnInfos []*SnssaiDnnInfoItem + SNssai *models.Snssai + type SnssaiUpfInfoItem struct + DnnUpfInfoList []*DnnUpfInfoItem + SNssai *models.Snssai + type SpecificPath struct + DestinationIP string + DestinationPort string + Path []string + type TimerValue struct + Enable bool + ExpireTime time.Duration + MaxRetryTimes int + type Tls struct + Key string + Pem string + type UEIPPool struct + Cidr string + type UERoutingInfo struct + AN string + Members []string + PathList []Path + SpecificPaths []SpecificPath + Topology []UPLink + type UPLink struct + A string + B string + type UPNode struct + ANIP string + Addr string + Dnn string + InterfaceUpfInfoList []*InterfaceUpfInfoItem + NodeID string + SNssaiInfos []*SnssaiUpfInfoItem + Type string + type UserPlaneInformation struct + Links []*UPLink + UPNodes map[string]*UPNode