Documentation ¶
Index ¶
- Constants
- Variables
- func AddPrometheusData(data *model.PrometheusResponseMain)
- func AddRegistrationAccept(data *model.RegistrationAccept)
- func CloseConnection(cli *mongo.Client, ctx context.Context)
- func GetCollectionsName() []string
- func GetConfiguration() model.Config
- func GetConnection() (*mongo.Database, *mongo.Client, context.Context)
- func GetDBName() string
- func GetHttpConnection() http.Client
- func GetMongoDBUri() string
- func GetNumberOfRecordsInCollection(name string) (int64, error)
- func GetServerPort() string
- func InitNwdafContext(context *nwdaf_context.NWDAFContext)
- func MapArrayToByte(data []map[string]interface{}) []byte
- func MapToByte(data map[string]interface{}) []byte
- func SearchNFServiceUri(nfProfile models.NfProfile, serviceName models.ServiceName, ...) (nfUri string, endpoint string, apiVersion string)
- func SnssaiHexToModels(hexString string) (*models.Snssai, error)
- func SnssaiModelsToHex(snssai models.Snssai) string
- func ToBsonM(data interface{}) bson.M
Constants ¶
View Source
const DataCollectionAmfRegistration = "datacollection.amf.Registration"
collections names
View Source
const DataCollectionPrometheusData = "datacollection.prometheus.Data"
Variables ¶
View Source
var (
DefaultNwdafConfigPath = "./config/nwdafcfg.yaml"
)
View Source
var NwdafKeyPath = path_util.Free5gcPath("free5gc/support/TLS/nwdaf.key")
View Source
var NwdafLogPath = path_util.Free5gcPath("wsilvad/nwdafsslkey.log")
View Source
var NwdafPemPath = path_util.Free5gcPath("free5gc/support/TLS/nwdaf.pem")
Functions ¶
func AddPrometheusData ¶
func AddPrometheusData(data *model.PrometheusResponseMain)
func AddRegistrationAccept ¶
func AddRegistrationAccept(data *model.RegistrationAccept)
func GetCollectionsName ¶
func GetCollectionsName() []string
func GetConfiguration ¶
func GetHttpConnection ¶
func GetMongoDBUri ¶
func GetMongoDBUri() string
func GetServerPort ¶
func GetServerPort() string
func InitNwdafContext ¶
func InitNwdafContext(context *nwdaf_context.NWDAFContext)
func MapArrayToByte ¶
func SearchNFServiceUri ¶
func SearchNFServiceUri(nfProfile models.NfProfile, serviceName models.ServiceName, nfServiceStatus models.NfServiceStatus) (nfUri string, endpoint string, apiVersion string)
func SnssaiModelsToHex ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.