Documentation ¶
Overview ¶
Package sor provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.1-0.20240123090344-d326c01d279a DO NOT EDIT.
Index ¶
- Constants
- func GetKinOpenApi3Document() (*openapi3.T, error)
- func GetKinOpenApi3DocumentMust() *openapi3.T
- func NewPostSupiUeSorRequest(server string, supi externalRef0.Supi, body PostSupiUeSorJSONRequestBody) (*http.Request, error)
- func NewPostSupiUeSorRequestWithBody(server string, supi externalRef0.Supi, contentType string, body io.Reader) (*http.Request, error)
- func RegisterHandlers(router gin.IRouter, si ServerInterface)
- func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
- type AccessTech
- type AckInd
- type Client
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) PostSupiUeSorWithBodyWithResponse(ctx context.Context, supi externalRef0.Supi, contentType string, ...) (*PostSupiUeSorResponse, error)
- func (c *ClientWithResponses) PostSupiUeSorWithResponse(ctx context.Context, supi externalRef0.Supi, body PostSupiUeSorJSONRequestBody, ...) (*PostSupiUeSorResponse, error)
- type ClientWithResponsesInterface
- type CounterSor
- type GinServerOptions
- type HttpRequestDoer
- type MiddlewareFunc
- type PostSupiUeSor200JSONResponse
- type PostSupiUeSor307JSONResponse
- type PostSupiUeSor308JSONResponse
- type PostSupiUeSor503ApplicationProblemPlusJSONResponse
- type PostSupiUeSorJSONRequestBody
- type PostSupiUeSorRequestObject
- type PostSupiUeSorResponse
- type PostSupiUeSorResponseObject
- type PostSupiUeSordefaultApplicationProblemPlusJSONResponse
- type RequestEditorFn
- type SecuredPacket
- type ServerInterface
- type ServerInterfaceWrapper
- type SorInfo
- type SorMac
- type SorSecurityInfo
- type SteeringContainer
- func (t SteeringContainer) AsSecuredPacket() (SecuredPacket, error)
- func (t SteeringContainer) AsSteeringContainer0() (SteeringContainer0, error)
- func (t *SteeringContainer) FromSecuredPacket(v SecuredPacket) error
- func (t *SteeringContainer) FromSteeringContainer0(v SteeringContainer0) error
- func (t SteeringContainer) MarshalJSON() ([]byte, error)
- func (t *SteeringContainer) MergeSecuredPacket(v SecuredPacket) error
- func (t *SteeringContainer) MergeSteeringContainer0(v SteeringContainer0) error
- func (t *SteeringContainer) UnmarshalJSON(b []byte) error
- type SteeringContainer0
- type SteeringInfo
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
Constants ¶
const (
OAuth2ClientCredentialsScopes = "oAuth2ClientCredentials.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetKinOpenApi3Document ¶
func NewPostSupiUeSorRequest ¶
func NewPostSupiUeSorRequest(server string, supi externalRef0.Supi, body PostSupiUeSorJSONRequestBody) (*http.Request, error)
NewPostSupiUeSorRequest calls the generic PostSupiUeSor builder with application/json body
func NewPostSupiUeSorRequestWithBody ¶
func NewPostSupiUeSorRequestWithBody(server string, supi externalRef0.Supi, contentType string, body io.Reader) (*http.Request, error)
NewPostSupiUeSorRequestWithBody generates requests for PostSupiUeSor with any type of body
func RegisterHandlers ¶
func RegisterHandlers(router gin.IRouter, si ServerInterface)
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
type AccessTech ¶
type AccessTech string
AccessTech defines model for AccessTech.
const ( CDMA1xRTT AccessTech = "CDMA_1xRTT" CDMAHRPD AccessTech = "CDMA_HRPD" ECGSMIoTONLY AccessTech = "ECGSM_IoT_ONLY" EUTRANINNBS1MODEONLY AccessTech = "EUTRAN_IN_NBS1_MODE_ONLY" EUTRANINWBS1MODEANDNBS1MODE AccessTech = "EUTRAN_IN_WBS1_MODE_AND_NBS1_MODE" EUTRANINWBS1MODEONLY AccessTech = "EUTRAN_IN_WBS1_MODE_ONLY" GSMANDECGSMIoT AccessTech = "GSM_AND_ECGSM_IoT" GSMCOMPACT AccessTech = "GSM_COMPACT" GSMWITHOUTECGSMIoT AccessTech = "GSM_WITHOUT_ECGSM_IoT" NR AccessTech = "NR" UTRAN AccessTech = "UTRAN" )
Defines values for AccessTech.
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) PostSupiUeSor ¶
func (c *Client) PostSupiUeSor(ctx context.Context, supi externalRef0.Supi, body PostSupiUeSorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostSupiUeSorWithBody ¶
type ClientInterface ¶
type ClientInterface interface { // PostSupiUeSorWithBody request with any body PostSupiUeSorWithBody(ctx context.Context, supi externalRef0.Supi, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostSupiUeSor(ctx context.Context, supi externalRef0.Supi, body PostSupiUeSorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) PostSupiUeSorWithBodyWithResponse ¶
func (c *ClientWithResponses) PostSupiUeSorWithBodyWithResponse(ctx context.Context, supi externalRef0.Supi, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSupiUeSorResponse, error)
PostSupiUeSorWithBodyWithResponse request with arbitrary body returning *PostSupiUeSorResponse
func (*ClientWithResponses) PostSupiUeSorWithResponse ¶
func (c *ClientWithResponses) PostSupiUeSorWithResponse(ctx context.Context, supi externalRef0.Supi, body PostSupiUeSorJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSupiUeSorResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // PostSupiUeSorWithBodyWithResponse request with any body PostSupiUeSorWithBodyWithResponse(ctx context.Context, supi externalRef0.Supi, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSupiUeSorResponse, error) PostSupiUeSorWithResponse(ctx context.Context, supi externalRef0.Supi, body PostSupiUeSorJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSupiUeSorResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type GinServerOptions ¶
type GinServerOptions struct { BaseURL string Middlewares []MiddlewareFunc ErrorHandler func(*gin.Context, error, int) }
GinServerOptions provides options for the Gin server.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type MiddlewareFunc ¶
type PostSupiUeSor200JSONResponse ¶
type PostSupiUeSor200JSONResponse SorSecurityInfo
func (PostSupiUeSor200JSONResponse) VisitPostSupiUeSorResponse ¶
func (response PostSupiUeSor200JSONResponse) VisitPostSupiUeSorResponse(w http.ResponseWriter) error
type PostSupiUeSor307JSONResponse ¶
type PostSupiUeSor307JSONResponse struct{ externalRef0.N307JSONResponse }
func (PostSupiUeSor307JSONResponse) VisitPostSupiUeSorResponse ¶
func (response PostSupiUeSor307JSONResponse) VisitPostSupiUeSorResponse(w http.ResponseWriter) error
type PostSupiUeSor308JSONResponse ¶
type PostSupiUeSor308JSONResponse struct{ externalRef0.N308JSONResponse }
func (PostSupiUeSor308JSONResponse) VisitPostSupiUeSorResponse ¶
func (response PostSupiUeSor308JSONResponse) VisitPostSupiUeSorResponse(w http.ResponseWriter) error
type PostSupiUeSor503ApplicationProblemPlusJSONResponse ¶
type PostSupiUeSor503ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (PostSupiUeSor503ApplicationProblemPlusJSONResponse) VisitPostSupiUeSorResponse ¶
func (response PostSupiUeSor503ApplicationProblemPlusJSONResponse) VisitPostSupiUeSorResponse(w http.ResponseWriter) error
type PostSupiUeSorJSONRequestBody ¶
type PostSupiUeSorJSONRequestBody = SorInfo
PostSupiUeSorJSONRequestBody defines body for PostSupiUeSor for application/json ContentType.
type PostSupiUeSorRequestObject ¶
type PostSupiUeSorRequestObject struct { Supi externalRef0.Supi `json:"supi"` Body *PostSupiUeSorJSONRequestBody }
type PostSupiUeSorResponse ¶
type PostSupiUeSorResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SorSecurityInfo JSON307 *externalRef0.N307 JSON308 *externalRef0.N308 ApplicationproblemJSON503 *externalRef0.ProblemDetails ApplicationproblemJSONDefault *externalRef0.ProblemDetails }
func ParsePostSupiUeSorResponse ¶
func ParsePostSupiUeSorResponse(rsp *http.Response) (*PostSupiUeSorResponse, error)
ParsePostSupiUeSorResponse parses an HTTP response from a PostSupiUeSorWithResponse call
func (PostSupiUeSorResponse) Status ¶
func (r PostSupiUeSorResponse) Status() string
Status returns HTTPResponse.Status
func (PostSupiUeSorResponse) StatusCode ¶
func (r PostSupiUeSorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostSupiUeSorResponseObject ¶
type PostSupiUeSorResponseObject interface {
VisitPostSupiUeSorResponse(w http.ResponseWriter) error
}
type PostSupiUeSordefaultApplicationProblemPlusJSONResponse ¶
type PostSupiUeSordefaultApplicationProblemPlusJSONResponse struct { Body externalRef0.ProblemDetails StatusCode int }
func (PostSupiUeSordefaultApplicationProblemPlusJSONResponse) VisitPostSupiUeSorResponse ¶
func (response PostSupiUeSordefaultApplicationProblemPlusJSONResponse) VisitPostSupiUeSorResponse(w http.ResponseWriter) error
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface { // (POST /{supi}/ue-sor) PostSupiUeSor(c *gin.Context, supi externalRef0.Supi) }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandler func(*gin.Context, error, int) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) PostSupiUeSor ¶
func (siw *ServerInterfaceWrapper) PostSupiUeSor(c *gin.Context)
PostSupiUeSor operation middleware
type SorInfo ¶
type SorInfo struct { AckInd AckInd `json:"ackInd"` SteeringContainer *SteeringContainer `json:"steeringContainer,omitempty"` SupportedFeatures *externalRef0.SupportedFeatures `json:"supportedFeatures,omitempty"` AdditionalProperties map[string]interface{} `json:"-"` }
SorInfo defines model for SorInfo.
func (SorInfo) Get ¶
Getter for additional properties for SorInfo. Returns the specified element and whether it was found
func (SorInfo) MarshalJSON ¶
Override default JSON handling for SorInfo to handle AdditionalProperties
func (*SorInfo) UnmarshalJSON ¶
Override default JSON handling for SorInfo to handle AdditionalProperties
type SorSecurityInfo ¶
type SorSecurityInfo struct { CounterSor CounterSor `json:"counterSor"` SorMacIausf SorMac `json:"sorMacIausf"` SorXmacIue SorMac `json:"sorXmacIue,omitempty"` AdditionalProperties map[string]interface{} `json:"-"` }
SorSecurityInfo defines model for SorSecurityInfo.
func (SorSecurityInfo) Get ¶
func (a SorSecurityInfo) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for SorSecurityInfo. Returns the specified element and whether it was found
func (SorSecurityInfo) MarshalJSON ¶
func (a SorSecurityInfo) MarshalJSON() ([]byte, error)
Override default JSON handling for SorSecurityInfo to handle AdditionalProperties
func (*SorSecurityInfo) Set ¶
func (a *SorSecurityInfo) Set(fieldName string, value interface{})
Setter for additional properties for SorSecurityInfo
func (*SorSecurityInfo) UnmarshalJSON ¶
func (a *SorSecurityInfo) UnmarshalJSON(b []byte) error
Override default JSON handling for SorSecurityInfo to handle AdditionalProperties
type SteeringContainer ¶
type SteeringContainer struct {
// contains filtered or unexported fields
}
SteeringContainer defines model for SteeringContainer.
func (SteeringContainer) AsSecuredPacket ¶
func (t SteeringContainer) AsSecuredPacket() (SecuredPacket, error)
AsSecuredPacket returns the union data inside the SteeringContainer as a SecuredPacket
func (SteeringContainer) AsSteeringContainer0 ¶
func (t SteeringContainer) AsSteeringContainer0() (SteeringContainer0, error)
AsSteeringContainer0 returns the union data inside the SteeringContainer as a SteeringContainer0
func (*SteeringContainer) FromSecuredPacket ¶
func (t *SteeringContainer) FromSecuredPacket(v SecuredPacket) error
FromSecuredPacket overwrites any union data inside the SteeringContainer as the provided SecuredPacket
func (*SteeringContainer) FromSteeringContainer0 ¶
func (t *SteeringContainer) FromSteeringContainer0(v SteeringContainer0) error
FromSteeringContainer0 overwrites any union data inside the SteeringContainer as the provided SteeringContainer0
func (SteeringContainer) MarshalJSON ¶
func (t SteeringContainer) MarshalJSON() ([]byte, error)
func (*SteeringContainer) MergeSecuredPacket ¶
func (t *SteeringContainer) MergeSecuredPacket(v SecuredPacket) error
MergeSecuredPacket performs a merge with any union data inside the SteeringContainer, using the provided SecuredPacket
func (*SteeringContainer) MergeSteeringContainer0 ¶
func (t *SteeringContainer) MergeSteeringContainer0(v SteeringContainer0) error
MergeSteeringContainer0 performs a merge with any union data inside the SteeringContainer, using the provided SteeringContainer0
func (*SteeringContainer) UnmarshalJSON ¶
func (t *SteeringContainer) UnmarshalJSON(b []byte) error
type SteeringContainer0 ¶
type SteeringContainer0 = []SteeringInfo
SteeringContainer0 defines model for .
type SteeringInfo ¶
type SteeringInfo struct { AccessTechList []AccessTech `json:"accessTechList,omitempty"` PlmnId externalRef0.PlmnId `json:"plmnId"` AdditionalProperties map[string]interface{} `json:"-"` }
SteeringInfo defines model for SteeringInfo.
func (SteeringInfo) Get ¶
func (a SteeringInfo) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for SteeringInfo. Returns the specified element and whether it was found
func (SteeringInfo) MarshalJSON ¶
func (a SteeringInfo) MarshalJSON() ([]byte, error)
Override default JSON handling for SteeringInfo to handle AdditionalProperties
func (*SteeringInfo) Set ¶
func (a *SteeringInfo) Set(fieldName string, value interface{})
Setter for additional properties for SteeringInfo
func (*SteeringInfo) UnmarshalJSON ¶
func (a *SteeringInfo) UnmarshalJSON(b []byte) error
Override default JSON handling for SteeringInfo to handle AdditionalProperties
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictgin.StrictGinHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictgin.StrictGinMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface { // (POST /{supi}/ue-sor) PostSupiUeSor(ctx context.Context, request PostSupiUeSorRequestObject) (PostSupiUeSorResponseObject, error) }
StrictServerInterface represents all server handlers.