Documentation
¶
Index ¶
- Constants
- Variables
- func AddQueryParams(queryParams *url.Values, name string, obj any, format string) error
- func AmfIdEqualFold(s string, t string) bool
- func ApiVersion(name models.Nrf_NFMgmt_ServiceName) string
- func CacheExpires(r *http.Response) time.Time
- func CallAPI(cfg Configuration, request *http.Request) (*http.Response, error)
- func Convert(from interface{}, to interface{}) error
- func Deserialize(v interface{}, b []byte, contentType string) (err error)
- func ExtSnssaiEqualFold(s, t models.ExtSnssai) bool
- func GetNFServiceUri(nfProf *models.Nrf_NFDisc_NFProfile, srvName models.Nrf_NFMgmt_ServiceName) string
- func GetServiceNfProfileAndUri(nfInstances []models.Nrf_NFDisc_NFProfile, ...) (*models.Nrf_NFDisc_NFProfile, string, error)
- func GnbIdEqualFold(s models.GNbId, t models.GNbId) bool
- func GuamiEqualFold(s models.Guami, t models.Guami) bool
- func InterceptInnerHttp2Client(t *testing.T, https bool)
- func InterceptNfmHttp2Client(t *testing.T, https bool)
- func ModelsGnbIdToUint(gnbId *models.GNbId) (uint64, error)
- func ModelsPlmnIdNidToPlmnId(plmnidNid *models.PlmnIdNid) *models.PlmnId
- func ModelsPlmnIdToPlmnIdNid(plmnId *models.PlmnId) *models.PlmnIdNid
- func NewHttp2Client(https bool, ...) *http.Client
- func NewNfmHttp2Client(https bool) *http.Client
- func NidEqualFold(s string, t string) bool
- func ParameterToString(obj interface{}, format string) string
- func PlmnIdEqual(s models.PlmnId, t models.PlmnId) bool
- func PlmnIdJsonToModels(plmnIdJson []byte) (*models.PlmnId, error)
- func PlmnIdNidEqualFold(s models.PlmnIdNid, t models.PlmnIdNid) bool
- func PrepareRequest(ctx context.Context, cfg Configuration, path string, method string, ...) (localVarRequest *http.Request, err error)
- func ProblemDetailsConflict(detail string) *models.ProblemDetails
- func ProblemDetailsDataNotFound(detail string) *models.ProblemDetails
- func ProblemDetailsForbidden(detail, cause string) *models.ProblemDetails
- func ProblemDetailsMalformedReqSyntax(detail string) *models.ProblemDetails
- func ProblemDetailsNotAcceptable(detail string) *models.ProblemDetails
- func ProblemDetailsOperationNotSupported() *models.ProblemDetails
- func ProblemDetailsSystemFailure(detail string) *models.ProblemDetails
- func RejectRedirects(_ *http.Request, _ []*http.Request) error
- func ReportError(format string, a ...interface{}) error
- func SelectHeaderAccept(accepts []string) string
- func Serialize(v any, mediaType string) (string, []byte, error)
- func ServiceBaseUri(srvName models.Nrf_NFMgmt_ServiceName) string
- func ServiceUri(srvName models.Nrf_NFMgmt_ServiceName, apiPrefix string) string
- func SnssaiEqualFold(s, t models.Snssai) bool
- func SnssaiHexToModels(hexString string) (*models.Snssai, error)
- func SnssaiModelsToHex(snssai models.Snssai) string
- func StringOfValue(v interface{}) string
- func TacEqualFold(s string, t string) bool
- func TaiEqualFold(s models.Tai, t models.Tai) bool
- func TypeCheckParameter(obj interface{}, expected string, name string) error
- type APIKey
- type BasicAuth
- type Configuration
- type ContextKey
- type GenericOpenAPIError
- type HTTP2CleartextClient
- type MultipartRelatedBinding
- type MultipartRelatedRender
- type RedirectPolicy
- type RedirectPolicyProvider
- type RequestMetricsHook
- type SupportedFeature
Constants ¶
const ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = ContextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = ContextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = ContextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = ContextKey("apikey") )
const ( ClientTimeout = 10 * time.Second NfmClientTimeout = 1 * time.Second TransportReadIdleTimeout = 1 * time.Second TransportPingTimeout = 2 * time.Second )
const ( ServiceBaseURI_NNRF_NFM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNRF_NFM) + "/v1" ServiceBaseURI_NNRF_DISC_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNRF_DISC) + "/v1" ServiceBaseURI_NNRF_OAUTH2 string = "" ServiceBaseURI_NNRF_OAM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNRF_OAM) + "/v1" ServiceBaseURI_NNRF_CMI_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNRF_CMI) + "/v1" ServiceBaseURI_NUDM_SDM_v2 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDM_SDM) + "/v2" ServiceBaseURI_NUDM_UECM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDM_UECM) + "/v1" ServiceBaseURI_NUDM_UEAU_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDM_UEAU) + "/v1" ServiceBaseURI_NUDM_EE_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDM_EE) + "/v1" ServiceBaseURI_NUDM_PP_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDM_PP) + "/v1" // ServiceBaseURI_NUDM_NIDDAU string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDM_NIDDAU) // ServiceBaseURI_NUDM_MT string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDM_MT) ServiceBaseURI_NUDM_OAM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDM_OAM) + "/v1" ServiceBaseURI_NUDM_CMI_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDM_CMI) + "/v1" ServiceBaseURI_NAMF_COMM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NAMF_COMM) + "/v1" ServiceBaseURI_NAMF_EVTS_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NAMF_EVTS) + "/v1" ServiceBaseURI_NAMF_MT_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NAMF_MT) + "/v1" ServiceBaseURI_NAMF_LOC_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NAMF_LOC) + "/v1" ServiceBaseURI_NAMF_OAM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NAMF_OAM) + "/v1" ServiceBaseURI_NAMF_CMI_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NAMF_CMI) + "/v1" ServiceBaseURI_NSMF_PDUSESSION_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NSMF_PDUSESSION) + "/v1" ServiceBaseURI_NSMF_EVENT_EXPOSURE_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NSMF_EVENT_EXPOSURE) + "/v1" // ServiceBaseURI_NSMF_NIDD string = "/" + string(models.Nrf_NFMgmt_ServiceName_NSMF_NIDD) ServiceBaseURI_NSMF_OAM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NSMF_OAM) + "/v1" ServiceBaseURI_NSMF_CMI_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NSMF_CMI) + "/v1" ServiceBaseURI_NAUSF_AUTH_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NAUSF_AUTH) + "/v1" ServiceBaseURI_NAUSF_SORPROTECTION_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NAUSF_SORPROTECTION) + "/v1" ServiceBaseURI_NAUSF_UPUPROTECTION_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NAUSF_UPUPROTECTION) + "/v1" ServiceBaseURI_NAUSF_OAM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NAUSF_OAM) + "/v1" ServiceBaseURI_NAUSF_CMI_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NAUSF_CMI) + "/v1" ServiceBaseURI_NNEF_PFDMANAGEMENT_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNEF_PFDMANAGEMENT) + "/v1" ServiceBaseURI_3GPP_AS_SESSION_WITH_QOS_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_3GPP_AS_SESSION_WITH_QOS) + "/v1" ServiceBaseURI_3GPP_PFD_MANAGEMENT_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_3GPP_PFD_MANAGEMENT) + "/v1" ServiceBaseURI_3GPP_TRAFFIC_INFLUENCE_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_3GPP_TRAFFIC_INFLUENCE) + "/v1" // ServiceBaseURI_NNEF_SMCONTEXT string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNEF_SMCONTEXT) // ServiceBaseURI_NNEF_EVENTEXPOSURE string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNEF_EVENTEXPOSURE) ServiceBaseURI_NNEF_OAM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNEF_OAM) + "/v1" ServiceBaseURI_NNEF_CMI_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNEF_CMI) + "/v1" ServiceBaseURI_NPCF_AM_POLICY_CONTROL_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NPCF_AM_POLICY_CONTROL) + "/v1" ServiceBaseURI_NPCF_SMPOLICYCONTROL_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NPCF_SMPOLICYCONTROL) + "/v1" ServiceBaseURI_NPCF_POLICYAUTHORIZATION_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NPCF_POLICYAUTHORIZATION) + "/v1" ServiceBaseURI_NPCF_BDTPOLICYCONTROL_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NPCF_BDTPOLICYCONTROL) + "/v1" // ServiceBaseURI_NPCF_EVENTEXPOSURE string = "/" + string(models.Nrf_NFMgmt_ServiceName_NPCF_EVENTEXPOSURE) ServiceBaseURI_NPCF_UE_POLICY_CONTROL_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NPCF_UE_POLICY_CONTROL) + "/v1" ServiceBaseURI_NPCF_OAM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NPCF_OAM) + "/v1" ServiceBaseURI_NPCF_CMI_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NPCF_CMI) + "/v1" // ServiceBaseURI_NSMSF_SMS string = "/" + string(models.Nrf_NFMgmt_ServiceName_NSMSF_SMS) ServiceBaseURI_NNSSF_NSSELECTION_v2 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNSSF_NSSELECTION) + "/v2" ServiceBaseURI_NNSSF_NSSAIAVAILABILITY_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNSSF_NSSAIAVAILABILITY) + "/v1" ServiceBaseURI_NNSSF_OAM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNSSF_OAM) + "/v1" ServiceBaseURI_NNSSF_CMI_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNSSF_CMI) + "/v1" ServiceBaseURI_NUDR_DR_v2 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDR_DR) + "/v2" ServiceBaseURI_NUDR_IMS_DR_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDR_IMS_DR) + "/v1" ServiceBaseURI_NUDR_GROUP_ID_MAP_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDR_GROUP_ID_MAP) + "/v1" ServiceBaseURI_NUDR_OAM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDR_OAM) + "/v1" ServiceBaseURI_NUDR_CMI_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDR_CMI) + "/v1" ServiceBaseURI_NLMF_LOC_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NLMF_LOC) + "/v1" ServiceBaseURI_NLMF_BROADCAST_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NLMF_BROADCAST) + "/v1" ServiceBaseURI_NLMF_OAM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NLMF_OAM) + "/v1" ServiceBaseURI_NLMF_CMI_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NLMF_CMI) + "/v1" // ServiceBaseURI_N5G_EIR_EIC string = "/" + string(models.Nrf_NFMgmt_ServiceName_N5G_EIR_EIC) // ServiceBaseURI_NBSF_MANAGEMENT string = "/" + string(models.Nrf_NFMgmt_ServiceName_NBSF_MANAGEMENT) // ServiceBaseURI_NCHF_SPENDINGLIMITCONTROL string = "/" + string(models.Nrf_NFMgmt_ServiceName_NCHF_SPENDINGLIMITCONTROL) // ServiceBaseURI_NCHF_CONVERGEDCHARGING string = "/" + string(models.Nrf_NFMgmt_ServiceName_NCHF_CONVERGEDCHARGING) // ServiceBaseURI_NCHF_OFFLINEONLYCHARGING string = "/" + string(models.Nrf_NFMgmt_ServiceName_NCHF_OFFLINEONLYCHARGING) // ServiceBaseURI_NNWDAF_EVENTSSUBSCRIPTION string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNWDAF_EVENTSSUBSCRIPTION) // ServiceBaseURI_NNWDAF_ANALYTICSINFO string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNWDAF_ANALYTICSINFO) // ServiceBaseURI_NGMLC_LOC string = "/" + string(models.Nrf_NFMgmt_ServiceName_NGMLC_LOC) // ServiceBaseURI_NUCMF_PROVISIONING string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUCMF_PROVISIONING) // ServiceBaseURI_NUCMF_UECAPABILITYMANAGEMENT string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUCMF_UECAPABILITYMANAGEMENT) // ServiceBaseURI_NHSS_SDM string = "/" + string(models.Nrf_NFMgmt_ServiceName_NHSS_SDM) // ServiceBaseURI_NHSS_UECM string = "/" + string(models.Nrf_NFMgmt_ServiceName_NHSS_UECM) // ServiceBaseURI_NHSS_UEAU string = "/" + string(models.Nrf_NFMgmt_ServiceName_NHSS_UEAU) // ServiceBaseURI_NHSS_EE string = "/" + string(models.Nrf_NFMgmt_ServiceName_NHSS_EE) ServiceBaseURI_NHSS_IMS_SDM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NHSS_IMS_SDM) + "/v1" ServiceBaseURI_NHSS_IMS_UECM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NHSS_IMS_UECM) + "/v1" ServiceBaseURI_NHSS_IMS_UEAU_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NHSS_IMS_UEAU) + "/v1" // ServiceBaseURI_NSEPP_TELESCOPIC string = "/" + string(models.Nrf_NFMgmt_ServiceName_NSEPP_TELESCOPIC) // ServiceBaseURI_NSORAF_SOR string = "/" + string(models.Nrf_NFMgmt_ServiceName_NSORAF_SOR) // ServiceBaseURI_NSPAF_SECURED_PACKET string = "/" + string(models.Nrf_NFMgmt_ServiceName_NSPAF_SECURED_PACKET) // ServiceBaseURI_NUDSF_DR string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUDSF_DR) // ServiceBaseURI_NNSSAAF_NSSAA string = "/" + string(models.Nrf_NFMgmt_ServiceName_NNSSAAF_NSSAA) ServiceBaseURI_NUPF_OAM_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUPF_OAM) + "/v1" ServiceBaseURI_NUPF_CMI_v1 string = "/" + string(models.Nrf_NFMgmt_ServiceName_NUPF_CMI) + "/v1" )
Variables ¶
var ServiceNfType map[models.Nrf_NFMgmt_ServiceName]models.Nrf_NFMgmt_NFType
Functions ¶
func AddQueryParams ¶ added in v1.3.0
func AmfIdEqualFold ¶ added in v1.3.0
func ApiVersion ¶ added in v1.1.0
func ApiVersion(name models.Nrf_NFMgmt_ServiceName) string
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func CallAPI ¶
callAPI do the request. nolint:gosec // G704: This is an internal 5GC SBA API client. The request URL is securely constructed from trusted NF profiles/configs, not user input.
func Convert ¶
func Convert(from interface{}, to interface{}) error
Convert - convert map[string]interface{} to openapi models
func Deserialize ¶
func ExtSnssaiEqualFold ¶ added in v1.1.0
func GetNFServiceUri ¶ added in v1.1.0
func GetNFServiceUri( nfProf *models.Nrf_NFDisc_NFProfile, srvName models.Nrf_NFMgmt_ServiceName, ) string
Returns NF Uri derived from NfProfile with corresponding service
func GetServiceNfProfileAndUri ¶ added in v1.1.0
func GetServiceNfProfileAndUri( nfInstances []models.Nrf_NFDisc_NFProfile, srvName models.Nrf_NFMgmt_ServiceName, ) (*models.Nrf_NFDisc_NFProfile, string, error)
func InterceptInnerHttp2Client ¶ added in v1.3.0
This function is only used in test cases.
func InterceptNfmHttp2Client ¶ added in v1.3.0
This function is only used in test cases.
func ModelsGnbIdToUint ¶ added in v1.3.0
func ModelsPlmnIdNidToPlmnId ¶ added in v1.3.0
func ModelsPlmnIdToPlmnIdNid ¶ added in v1.3.0
func NewHttp2Client ¶ added in v1.3.0
func NewNfmHttp2Client ¶ added in v1.3.0
func NidEqualFold ¶ added in v1.3.0
func ParameterToString ¶
ParameterToString convert interface{} parameters to string, using a delimiter if format is provided.
func PlmnIdJsonToModels ¶ added in v1.1.0
func PlmnIdNidEqualFold ¶ added in v1.3.0
func PrepareRequest ¶
func PrepareRequest( ctx context.Context, cfg Configuration, path string, method string, postBody interface{}, headerParams map[string]string, queryParams url.Values, formParams url.Values, formFileName string, fileName string, fileBytes []byte, ) (localVarRequest *http.Request, err error)
prepareRequest build the request
func ProblemDetailsConflict ¶ added in v1.3.0
func ProblemDetailsConflict(detail string) *models.ProblemDetails
func ProblemDetailsDataNotFound ¶ added in v1.0.2
func ProblemDetailsDataNotFound(detail string) *models.ProblemDetails
func ProblemDetailsForbidden ¶ added in v1.1.0
func ProblemDetailsForbidden(detail, cause string) *models.ProblemDetails
func ProblemDetailsMalformedReqSyntax ¶ added in v1.0.2
func ProblemDetailsMalformedReqSyntax(detail string) *models.ProblemDetails
func ProblemDetailsNotAcceptable ¶ added in v1.3.0
func ProblemDetailsNotAcceptable(detail string) *models.ProblemDetails
func ProblemDetailsOperationNotSupported ¶ added in v1.1.0
func ProblemDetailsOperationNotSupported() *models.ProblemDetails
func ProblemDetailsSystemFailure ¶ added in v1.0.2
func ProblemDetailsSystemFailure(detail string) *models.ProblemDetails
func RejectRedirects ¶ added in v1.3.0
RejectRedirects returns the original redirect response without following it.
func ReportError ¶
Prevent trying to import "fmt"
func SelectHeaderAccept ¶
SelectHeaderAccept join all accept types and return
func Serialize ¶
Serialize - serialize data v to corresponding media type return contentType, bodyBytes, error
func ServiceBaseUri ¶ added in v1.1.0
func ServiceBaseUri(srvName models.Nrf_NFMgmt_ServiceName) string
func ServiceUri ¶ added in v1.1.0
func ServiceUri(srvName models.Nrf_NFMgmt_ServiceName, apiPrefix string) string
func SnssaiEqualFold ¶ added in v1.0.7
func SnssaiHexToModels ¶ added in v1.1.0
func SnssaiModelsToHex ¶ added in v1.1.0
func StringOfValue ¶ added in v1.1.0
func StringOfValue(v interface{}) string
func TacEqualFold ¶ added in v1.3.0
func TypeCheckParameter ¶
Verify optional parameters are of the correct type.
Types ¶
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type BasicAuth ¶
type BasicAuth struct {
UserName string `json:"userName,omitempty"`
Password string `json:"password,omitempty"`
}
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type Configuration ¶
type ContextKey ¶
type ContextKey string
func (ContextKey) String ¶
func (c ContextKey) String() string
type GenericOpenAPIError ¶
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type HTTP2CleartextClient ¶ added in v1.3.0
type HTTP2CleartextClient struct {
// contains filtered or unexported fields
}
func GetInnerHTTP2CleartextClient ¶ added in v1.3.0
func GetInnerHTTP2CleartextClient() *HTTP2CleartextClient
func GetNfmHTTP2CleartextClient ¶ added in v1.3.0
func GetNfmHTTP2CleartextClient() *HTTP2CleartextClient
func (*HTTP2CleartextClient) SetHttpTimeout ¶ added in v1.3.0
func (h2c *HTTP2CleartextClient) SetHttpTimeout(t time.Duration)
type MultipartRelatedBinding ¶
type MultipartRelatedBinding struct{}
func (MultipartRelatedBinding) Bind ¶
func (MultipartRelatedBinding) Bind(req *http.Request, obj interface{}) error
func (MultipartRelatedBinding) BindBody ¶
func (MultipartRelatedBinding) BindBody(body []byte, obj interface{}) error
func (MultipartRelatedBinding) Name ¶
func (MultipartRelatedBinding) Name() string
type MultipartRelatedRender ¶
type MultipartRelatedRender struct {
Data interface{}
// contains filtered or unexported fields
}
func (MultipartRelatedRender) Render ¶
func (r MultipartRelatedRender) Render(w http.ResponseWriter) (err error)
func (MultipartRelatedRender) WriteContentType ¶
func (r MultipartRelatedRender) WriteContentType(w http.ResponseWriter)
type RedirectPolicy ¶ added in v1.3.0
RedirectPolicy controls how an HTTP client handles a redirect response.
type RedirectPolicyProvider ¶ added in v1.3.0
type RedirectPolicyProvider interface {
RedirectPolicy() RedirectPolicy
}
RedirectPolicyProvider optionally supplies a redirect policy for one configuration.
type RequestMetricsHook ¶ added in v1.2.1
RequestMetricsHook is called after each HTTP Submit.
method: HTTP method (GET, POST, ...) path: URL path pattern (e.g. "/namf-comm/v1/...") status: HTTP status code (0 if no response)
type SupportedFeature ¶
type SupportedFeature []byte
SupportedFeature - bytes used to indicate the features supported by a API that is used as defined in subclause 6.6 in 3GPP TS 29.500
func NewSupportedFeature ¶
func NewSupportedFeature(suppFeat string) (SupportedFeature, error)
NewSupportedFeature - new NewSupportedFeature from string
func (SupportedFeature) GetFeature ¶
func (suppoertedFeature SupportedFeature) GetFeature(n int) bool
GetFeature - get nth feature is supported
func (SupportedFeature) NegotiateWith ¶
func (suppoertedFeature SupportedFeature) NegotiateWith(incomingSuppFeat SupportedFeature) SupportedFeature
NegotiateWith - Negotiate with other supported feature
func (SupportedFeature) String ¶
func (suppoertedFeature SupportedFeature) String() string
String - convert SupportedFeature to hex format