Documentation ¶
Index ¶
- Constants
- Variables
- 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(state bool, certFile string, keyFile string) http.Client
- func GetMongoDBUri() string
- func GetNumberOfRecordsInCollection(name string) (int64, error)
- func GetServerPort() string
- func InitNefContext(context *nef_context.NEFContext)
- 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
Variables ¶
View Source
var (
DefaultNefConfigPath = "./etc/niralos/nefcfg.yaml"
)
View Source
var NefKeyPath = path_util.Free5gcPath("free5gc/support/TLS/nef.key")
View Source
var NefLogPath = path_util.Free5gcPath("NEF-service/nefsslkey.log")
View Source
var NefPemPath = path_util.Free5gcPath("free5gc/support/TLS/nef.pem")
Functions ¶
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 InitNefContext ¶
func InitNefContext(context *nef_context.NEFContext)
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.