Documentation ¶
Index ¶
- Constants
- Variables
- func Contain(target interface{}, slice interface{}) bool
- func EmptyUeIdProblemJson(c *gin.Context)
- func EscapeDnn(dnn string) string
- func GinProblemJson(c *gin.Context, pd *models.ProblemDetails)
- func InitUdrContext(context *udr_context.UDRContext)
- func MapArrayToByte(data []map[string]interface{}) []byte
- func MapToByte(data map[string]interface{}) []byte
- func PrimitiveAToByte(data []interface{}) []byte
- func ProblemDetailsMalformedReqSyntax(detail string) *models.ProblemDetails
- func ProblemDetailsModifyNotAllowed(detail string) *models.ProblemDetails
- func ProblemDetailsNotFound(cause string) *models.ProblemDetails
- func ProblemDetailsSystemFailure(detail string) *models.ProblemDetails
- func ProblemDetailsUpspecified(detail string) *models.ProblemDetails
- func SnssaiHexToModels(hexString string) (*models.Snssai, error)
- func SnssaiModelsToHex(snssai models.Snssai) string
- func ToBsonM(data interface{}) bson.M
- func UnescapeDnn(dnnKey string) string
- type RouterAuthorizationCheck
Constants ¶
View Source
const ( INVALID_REQUEST = "Invalid request message framing" MALFORMED_REQUEST = "Malformed request syntax" UNAUTHORIZED_CONSUMER = "Unauthorized NF service consumer" UNSUPPORTED_RESOURCE = "Unsupported request resources" )
Title in ProblemDetails for UDR HTTP APIs
Variables ¶
View Source
var ( UdrDefaultKeyLogPath = "./log/udrsslkey.log" UdrDefaultPemPath = "./config/TLS/udr.pem" UdrDefaultKeyPath = "./config/TLS/udr.key" UdrDefaultConfigPath = "./config/udrcfg.yaml" )
Functions ¶
func Contain ¶
func Contain(target interface{}, slice interface{}) bool
Contain checks whether a slice contains an element
func EmptyUeIdProblemJson ¶
func GinProblemJson ¶
func GinProblemJson(c *gin.Context, pd *models.ProblemDetails)
func InitUdrContext ¶
func InitUdrContext(context *udr_context.UDRContext)
func MapArrayToByte ¶
func PrimitiveAToByte ¶
func PrimitiveAToByte(data []interface{}) []byte
func ProblemDetailsMalformedReqSyntax ¶
func ProblemDetailsMalformedReqSyntax(detail string) *models.ProblemDetails
func ProblemDetailsModifyNotAllowed ¶
func ProblemDetailsModifyNotAllowed(detail string) *models.ProblemDetails
func ProblemDetailsNotFound ¶
func ProblemDetailsNotFound(cause string) *models.ProblemDetails
func ProblemDetailsSystemFailure ¶
func ProblemDetailsSystemFailure(detail string) *models.ProblemDetails
func ProblemDetailsUpspecified ¶
func ProblemDetailsUpspecified(detail string) *models.ProblemDetails
func SnssaiModelsToHex ¶
func UnescapeDnn ¶
Types ¶
type RouterAuthorizationCheck ¶
type RouterAuthorizationCheck struct {
// contains filtered or unexported fields
}
func NewRouterAuthorizationCheck ¶
func NewRouterAuthorizationCheck(serviceName models.ServiceName) *RouterAuthorizationCheck
func (*RouterAuthorizationCheck) Check ¶
func (rac *RouterAuthorizationCheck) Check(c *gin.Context, udrContext udr_context.NFContext)
Click to show internal directories.
Click to hide internal directories.