event

package
v0.0.0-...-c5b8628 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Overview

Package event 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

View Source
const (
	OAuth2ClientCredentialsScopes = "oAuth2ClientCredentials.Scopes"
)

Variables

This section is empty.

Functions

func GetKinOpenApi3Document

func GetKinOpenApi3Document() (*openapi3.T, error)

func GetKinOpenApi3DocumentMust

func GetKinOpenApi3DocumentMust() *openapi3.T

func NewCreateIndividualSubcriptionRequest

func NewCreateIndividualSubcriptionRequest(server string, body CreateIndividualSubcriptionJSONRequestBody) (*http.Request, error)

NewCreateIndividualSubcriptionRequest calls the generic CreateIndividualSubcription builder with application/json body

func NewCreateIndividualSubcriptionRequestWithBody

func NewCreateIndividualSubcriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateIndividualSubcriptionRequestWithBody generates requests for CreateIndividualSubcription with any type of body

func NewDeleteIndividualSubcriptionRequest

func NewDeleteIndividualSubcriptionRequest(server string, subId string) (*http.Request, error)

NewDeleteIndividualSubcriptionRequest generates requests for DeleteIndividualSubcription

func NewGetIndividualSubcriptionRequest

func NewGetIndividualSubcriptionRequest(server string, subId string) (*http.Request, error)

NewGetIndividualSubcriptionRequest generates requests for GetIndividualSubcription

func NewReplaceIndividualSubcriptionRequest

func NewReplaceIndividualSubcriptionRequest(server string, subId string, body ReplaceIndividualSubcriptionJSONRequestBody) (*http.Request, error)

NewReplaceIndividualSubcriptionRequest calls the generic ReplaceIndividualSubcription builder with application/json body

func NewReplaceIndividualSubcriptionRequestWithBody

func NewReplaceIndividualSubcriptionRequestWithBody(server string, subId string, contentType string, body io.Reader) (*http.Request, error)

NewReplaceIndividualSubcriptionRequestWithBody generates requests for ReplaceIndividualSubcription 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 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) CreateIndividualSubcription

func (c *Client) CreateIndividualSubcription(ctx context.Context, body CreateIndividualSubcriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateIndividualSubcriptionWithBody

func (c *Client) CreateIndividualSubcriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteIndividualSubcription

func (c *Client) DeleteIndividualSubcription(ctx context.Context, subId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIndividualSubcription

func (c *Client) GetIndividualSubcription(ctx context.Context, subId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceIndividualSubcription

func (c *Client) ReplaceIndividualSubcription(ctx context.Context, subId string, body ReplaceIndividualSubcriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceIndividualSubcriptionWithBody

func (c *Client) ReplaceIndividualSubcriptionWithBody(ctx context.Context, subId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// CreateIndividualSubcriptionWithBody request with any body
	CreateIndividualSubcriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateIndividualSubcription(ctx context.Context, body CreateIndividualSubcriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteIndividualSubcription request
	DeleteIndividualSubcription(ctx context.Context, subId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIndividualSubcription request
	GetIndividualSubcription(ctx context.Context, subId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceIndividualSubcriptionWithBody request with any body
	ReplaceIndividualSubcriptionWithBody(ctx context.Context, subId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReplaceIndividualSubcription(ctx context.Context, subId string, body ReplaceIndividualSubcriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) CreateIndividualSubcriptionWithBodyWithResponse

func (c *ClientWithResponses) CreateIndividualSubcriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIndividualSubcriptionResponse, error)

CreateIndividualSubcriptionWithBodyWithResponse request with arbitrary body returning *CreateIndividualSubcriptionResponse

func (*ClientWithResponses) CreateIndividualSubcriptionWithResponse

func (c *ClientWithResponses) CreateIndividualSubcriptionWithResponse(ctx context.Context, body CreateIndividualSubcriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIndividualSubcriptionResponse, error)

func (*ClientWithResponses) DeleteIndividualSubcriptionWithResponse

func (c *ClientWithResponses) DeleteIndividualSubcriptionWithResponse(ctx context.Context, subId string, reqEditors ...RequestEditorFn) (*DeleteIndividualSubcriptionResponse, error)

DeleteIndividualSubcriptionWithResponse request returning *DeleteIndividualSubcriptionResponse

func (*ClientWithResponses) GetIndividualSubcriptionWithResponse

func (c *ClientWithResponses) GetIndividualSubcriptionWithResponse(ctx context.Context, subId string, reqEditors ...RequestEditorFn) (*GetIndividualSubcriptionResponse, error)

GetIndividualSubcriptionWithResponse request returning *GetIndividualSubcriptionResponse

func (*ClientWithResponses) ReplaceIndividualSubcriptionWithBodyWithResponse

func (c *ClientWithResponses) ReplaceIndividualSubcriptionWithBodyWithResponse(ctx context.Context, subId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceIndividualSubcriptionResponse, error)

ReplaceIndividualSubcriptionWithBodyWithResponse request with arbitrary body returning *ReplaceIndividualSubcriptionResponse

func (*ClientWithResponses) ReplaceIndividualSubcriptionWithResponse

func (c *ClientWithResponses) ReplaceIndividualSubcriptionWithResponse(ctx context.Context, subId string, body ReplaceIndividualSubcriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceIndividualSubcriptionResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// CreateIndividualSubcriptionWithBodyWithResponse request with any body
	CreateIndividualSubcriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIndividualSubcriptionResponse, error)

	CreateIndividualSubcriptionWithResponse(ctx context.Context, body CreateIndividualSubcriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIndividualSubcriptionResponse, error)

	// DeleteIndividualSubcriptionWithResponse request
	DeleteIndividualSubcriptionWithResponse(ctx context.Context, subId string, reqEditors ...RequestEditorFn) (*DeleteIndividualSubcriptionResponse, error)

	// GetIndividualSubcriptionWithResponse request
	GetIndividualSubcriptionWithResponse(ctx context.Context, subId string, reqEditors ...RequestEditorFn) (*GetIndividualSubcriptionResponse, error)

	// ReplaceIndividualSubcriptionWithBodyWithResponse request with any body
	ReplaceIndividualSubcriptionWithBodyWithResponse(ctx context.Context, subId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceIndividualSubcriptionResponse, error)

	ReplaceIndividualSubcriptionWithResponse(ctx context.Context, subId string, body ReplaceIndividualSubcriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceIndividualSubcriptionResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateIndividualSubcription201JSONResponse

type CreateIndividualSubcription201JSONResponse struct {
	Body    externalRef0.NsmfEventExposure
	Headers CreateIndividualSubcription201ResponseHeaders
}

func (CreateIndividualSubcription201JSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcription201JSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type CreateIndividualSubcription201ResponseHeaders

type CreateIndividualSubcription201ResponseHeaders struct {
	Location string
}

type CreateIndividualSubcription400ApplicationProblemPlusJSONResponse

type CreateIndividualSubcription400ApplicationProblemPlusJSONResponse struct {
	externalRef0.N400ApplicationProblemPlusJSONResponse
}

func (CreateIndividualSubcription400ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcription400ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type CreateIndividualSubcription401ApplicationProblemPlusJSONResponse

type CreateIndividualSubcription401ApplicationProblemPlusJSONResponse struct {
	externalRef0.N401ApplicationProblemPlusJSONResponse
}

func (CreateIndividualSubcription401ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcription401ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type CreateIndividualSubcription403ApplicationProblemPlusJSONResponse

type CreateIndividualSubcription403ApplicationProblemPlusJSONResponse struct {
	externalRef0.N403ApplicationProblemPlusJSONResponse
}

func (CreateIndividualSubcription403ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcription403ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type CreateIndividualSubcription404ApplicationProblemPlusJSONResponse

type CreateIndividualSubcription404ApplicationProblemPlusJSONResponse struct {
	externalRef0.N404ApplicationProblemPlusJSONResponse
}

func (CreateIndividualSubcription404ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcription404ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type CreateIndividualSubcription411ApplicationProblemPlusJSONResponse

type CreateIndividualSubcription411ApplicationProblemPlusJSONResponse struct {
	externalRef0.N411ApplicationProblemPlusJSONResponse
}

func (CreateIndividualSubcription411ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcription411ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type CreateIndividualSubcription413ApplicationProblemPlusJSONResponse

type CreateIndividualSubcription413ApplicationProblemPlusJSONResponse struct {
	externalRef0.N413ApplicationProblemPlusJSONResponse
}

func (CreateIndividualSubcription413ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcription413ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type CreateIndividualSubcription415ApplicationProblemPlusJSONResponse

type CreateIndividualSubcription415ApplicationProblemPlusJSONResponse struct {
	externalRef0.N415ApplicationProblemPlusJSONResponse
}

func (CreateIndividualSubcription415ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcription415ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type CreateIndividualSubcription429ApplicationProblemPlusJSONResponse

type CreateIndividualSubcription429ApplicationProblemPlusJSONResponse struct {
	externalRef0.N429ApplicationProblemPlusJSONResponse
}

func (CreateIndividualSubcription429ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcription429ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type CreateIndividualSubcription500ApplicationProblemPlusJSONResponse

type CreateIndividualSubcription500ApplicationProblemPlusJSONResponse struct {
	externalRef0.N500ApplicationProblemPlusJSONResponse
}

func (CreateIndividualSubcription500ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcription500ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type CreateIndividualSubcription503ApplicationProblemPlusJSONResponse

type CreateIndividualSubcription503ApplicationProblemPlusJSONResponse struct {
	externalRef0.N503ApplicationProblemPlusJSONResponse
}

func (CreateIndividualSubcription503ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcription503ApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type CreateIndividualSubcriptionJSONRequestBody

type CreateIndividualSubcriptionJSONRequestBody = externalRef0.NsmfEventExposure

CreateIndividualSubcriptionJSONRequestBody defines body for CreateIndividualSubcription for application/json ContentType.

type CreateIndividualSubcriptionRequestObject

type CreateIndividualSubcriptionRequestObject struct {
	Body *CreateIndividualSubcriptionJSONRequestBody
}

type CreateIndividualSubcriptionResponse

type CreateIndividualSubcriptionResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	JSON201                       *externalRef0.NsmfEventExposure
	ApplicationproblemJSON400     *externalRef0.N400
	ApplicationproblemJSON401     *externalRef0.N401
	ApplicationproblemJSON403     *externalRef0.N403
	ApplicationproblemJSON404     *externalRef0.N404
	ApplicationproblemJSON411     *externalRef0.N411
	ApplicationproblemJSON413     *externalRef0.N413
	ApplicationproblemJSON415     *externalRef0.N415
	ApplicationproblemJSON429     *externalRef0.N429
	ApplicationproblemJSON500     *externalRef0.N500
	ApplicationproblemJSON503     *externalRef0.N503
	ApplicationproblemJSONDefault *externalRef0.Default
}

func ParseCreateIndividualSubcriptionResponse

func ParseCreateIndividualSubcriptionResponse(rsp *http.Response) (*CreateIndividualSubcriptionResponse, error)

ParseCreateIndividualSubcriptionResponse parses an HTTP response from a CreateIndividualSubcriptionWithResponse call

func (CreateIndividualSubcriptionResponse) Status

Status returns HTTPResponse.Status

func (CreateIndividualSubcriptionResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type CreateIndividualSubcriptionResponseObject

type CreateIndividualSubcriptionResponseObject interface {
	VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error
}

type CreateIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse

type CreateIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse struct {
	Body       externalRef0.ProblemDetails
	StatusCode int
}

func (CreateIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse

func (response CreateIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse) VisitCreateIndividualSubcriptionResponse(w http.ResponseWriter) error

type DeleteIndividualSubcription204Response

type DeleteIndividualSubcription204Response struct {
}

func (DeleteIndividualSubcription204Response) VisitDeleteIndividualSubcriptionResponse

func (response DeleteIndividualSubcription204Response) VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error

type DeleteIndividualSubcription307JSONResponse

type DeleteIndividualSubcription307JSONResponse struct{ externalRef0.N307JSONResponse }

func (DeleteIndividualSubcription307JSONResponse) VisitDeleteIndividualSubcriptionResponse

func (response DeleteIndividualSubcription307JSONResponse) VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error

type DeleteIndividualSubcription308JSONResponse

type DeleteIndividualSubcription308JSONResponse struct{ externalRef0.N308JSONResponse }

func (DeleteIndividualSubcription308JSONResponse) VisitDeleteIndividualSubcriptionResponse

func (response DeleteIndividualSubcription308JSONResponse) VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error

type DeleteIndividualSubcription400ApplicationProblemPlusJSONResponse

type DeleteIndividualSubcription400ApplicationProblemPlusJSONResponse struct {
	externalRef0.N400ApplicationProblemPlusJSONResponse
}

func (DeleteIndividualSubcription400ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse

func (response DeleteIndividualSubcription400ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error

type DeleteIndividualSubcription401ApplicationProblemPlusJSONResponse

type DeleteIndividualSubcription401ApplicationProblemPlusJSONResponse struct {
	externalRef0.N401ApplicationProblemPlusJSONResponse
}

func (DeleteIndividualSubcription401ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse

func (response DeleteIndividualSubcription401ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error

type DeleteIndividualSubcription403ApplicationProblemPlusJSONResponse

type DeleteIndividualSubcription403ApplicationProblemPlusJSONResponse struct {
	externalRef0.N403ApplicationProblemPlusJSONResponse
}

func (DeleteIndividualSubcription403ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse

func (response DeleteIndividualSubcription403ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error

type DeleteIndividualSubcription404ApplicationProblemPlusJSONResponse

type DeleteIndividualSubcription404ApplicationProblemPlusJSONResponse struct {
	externalRef0.N404ApplicationProblemPlusJSONResponse
}

func (DeleteIndividualSubcription404ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse

func (response DeleteIndividualSubcription404ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error

type DeleteIndividualSubcription429ApplicationProblemPlusJSONResponse

type DeleteIndividualSubcription429ApplicationProblemPlusJSONResponse struct {
	externalRef0.N429ApplicationProblemPlusJSONResponse
}

func (DeleteIndividualSubcription429ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse

func (response DeleteIndividualSubcription429ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error

type DeleteIndividualSubcription500ApplicationProblemPlusJSONResponse

type DeleteIndividualSubcription500ApplicationProblemPlusJSONResponse struct {
	externalRef0.N500ApplicationProblemPlusJSONResponse
}

func (DeleteIndividualSubcription500ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse

func (response DeleteIndividualSubcription500ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error

type DeleteIndividualSubcription503ApplicationProblemPlusJSONResponse

type DeleteIndividualSubcription503ApplicationProblemPlusJSONResponse struct {
	externalRef0.N503ApplicationProblemPlusJSONResponse
}

func (DeleteIndividualSubcription503ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse

func (response DeleteIndividualSubcription503ApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error

type DeleteIndividualSubcriptionRequestObject

type DeleteIndividualSubcriptionRequestObject struct {
	SubId string `json:"subId"`
}

type DeleteIndividualSubcriptionResponse

type DeleteIndividualSubcriptionResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	JSON307                       *externalRef0.N307
	JSON308                       *externalRef0.N308
	ApplicationproblemJSON400     *externalRef0.N400
	ApplicationproblemJSON401     *externalRef0.N401
	ApplicationproblemJSON403     *externalRef0.N403
	ApplicationproblemJSON404     *externalRef0.N404
	ApplicationproblemJSON429     *externalRef0.N429
	ApplicationproblemJSON500     *externalRef0.N500
	ApplicationproblemJSON503     *externalRef0.N503
	ApplicationproblemJSONDefault *externalRef0.Default
}

func ParseDeleteIndividualSubcriptionResponse

func ParseDeleteIndividualSubcriptionResponse(rsp *http.Response) (*DeleteIndividualSubcriptionResponse, error)

ParseDeleteIndividualSubcriptionResponse parses an HTTP response from a DeleteIndividualSubcriptionWithResponse call

func (DeleteIndividualSubcriptionResponse) Status

Status returns HTTPResponse.Status

func (DeleteIndividualSubcriptionResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteIndividualSubcriptionResponseObject

type DeleteIndividualSubcriptionResponseObject interface {
	VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error
}

type DeleteIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse

type DeleteIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse struct {
	Body       externalRef0.ProblemDetails
	StatusCode int
}

func (DeleteIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse

func (response DeleteIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse) VisitDeleteIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcription200JSONResponse

type GetIndividualSubcription200JSONResponse externalRef0.NsmfEventExposure

func (GetIndividualSubcription200JSONResponse) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcription200JSONResponse) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcription307JSONResponse

type GetIndividualSubcription307JSONResponse struct{ externalRef0.N307JSONResponse }

func (GetIndividualSubcription307JSONResponse) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcription307JSONResponse) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcription308JSONResponse

type GetIndividualSubcription308JSONResponse struct{ externalRef0.N308JSONResponse }

func (GetIndividualSubcription308JSONResponse) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcription308JSONResponse) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcription400ApplicationProblemPlusJSONResponse

type GetIndividualSubcription400ApplicationProblemPlusJSONResponse struct {
	externalRef0.N400ApplicationProblemPlusJSONResponse
}

func (GetIndividualSubcription400ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcription400ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcription401ApplicationProblemPlusJSONResponse

type GetIndividualSubcription401ApplicationProblemPlusJSONResponse struct {
	externalRef0.N401ApplicationProblemPlusJSONResponse
}

func (GetIndividualSubcription401ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcription401ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcription403ApplicationProblemPlusJSONResponse

type GetIndividualSubcription403ApplicationProblemPlusJSONResponse struct {
	externalRef0.N403ApplicationProblemPlusJSONResponse
}

func (GetIndividualSubcription403ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcription403ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcription404ApplicationProblemPlusJSONResponse

type GetIndividualSubcription404ApplicationProblemPlusJSONResponse struct {
	externalRef0.N404ApplicationProblemPlusJSONResponse
}

func (GetIndividualSubcription404ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcription404ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcription406Response

type GetIndividualSubcription406Response externalRef0.N406Response

func (GetIndividualSubcription406Response) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcription406Response) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcription429ApplicationProblemPlusJSONResponse

type GetIndividualSubcription429ApplicationProblemPlusJSONResponse struct {
	externalRef0.N429ApplicationProblemPlusJSONResponse
}

func (GetIndividualSubcription429ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcription429ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcription500ApplicationProblemPlusJSONResponse

type GetIndividualSubcription500ApplicationProblemPlusJSONResponse struct {
	externalRef0.N500ApplicationProblemPlusJSONResponse
}

func (GetIndividualSubcription500ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcription500ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcription503ApplicationProblemPlusJSONResponse

type GetIndividualSubcription503ApplicationProblemPlusJSONResponse struct {
	externalRef0.N503ApplicationProblemPlusJSONResponse
}

func (GetIndividualSubcription503ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcription503ApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GetIndividualSubcriptionRequestObject

type GetIndividualSubcriptionRequestObject struct {
	SubId string `json:"subId"`
}

type GetIndividualSubcriptionResponse

type GetIndividualSubcriptionResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	JSON200                       *externalRef0.NsmfEventExposure
	JSON307                       *externalRef0.N307
	JSON308                       *externalRef0.N308
	ApplicationproblemJSON400     *externalRef0.N400
	ApplicationproblemJSON401     *externalRef0.N401
	ApplicationproblemJSON403     *externalRef0.N403
	ApplicationproblemJSON404     *externalRef0.N404
	ApplicationproblemJSON429     *externalRef0.N429
	ApplicationproblemJSON500     *externalRef0.N500
	ApplicationproblemJSON503     *externalRef0.N503
	ApplicationproblemJSONDefault *externalRef0.Default
}

func ParseGetIndividualSubcriptionResponse

func ParseGetIndividualSubcriptionResponse(rsp *http.Response) (*GetIndividualSubcriptionResponse, error)

ParseGetIndividualSubcriptionResponse parses an HTTP response from a GetIndividualSubcriptionWithResponse call

func (GetIndividualSubcriptionResponse) Status

Status returns HTTPResponse.Status

func (GetIndividualSubcriptionResponse) StatusCode

func (r GetIndividualSubcriptionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIndividualSubcriptionResponseObject

type GetIndividualSubcriptionResponseObject interface {
	VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error
}

type GetIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse

type GetIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse struct {
	Body       externalRef0.ProblemDetails
	StatusCode int
}

func (GetIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse

func (response GetIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse) VisitGetIndividualSubcriptionResponse(w http.ResponseWriter) error

type GinServerOptions

type GinServerOptions struct {
	BaseURL      string
	Middlewares  []MiddlewareFunc
	ErrorHandler func(*gin.Context, error, int)
}

GinServerOptions provides options for the Gin server.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type MiddlewareFunc

type MiddlewareFunc func(c *gin.Context)

type ReplaceIndividualSubcription200JSONResponse

type ReplaceIndividualSubcription200JSONResponse externalRef0.NsmfEventExposure

func (ReplaceIndividualSubcription200JSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription200JSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription204Response

type ReplaceIndividualSubcription204Response struct {
}

func (ReplaceIndividualSubcription204Response) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription204Response) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription307JSONResponse

type ReplaceIndividualSubcription307JSONResponse struct{ externalRef0.N307JSONResponse }

func (ReplaceIndividualSubcription307JSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription307JSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription308JSONResponse

type ReplaceIndividualSubcription308JSONResponse struct{ externalRef0.N308JSONResponse }

func (ReplaceIndividualSubcription308JSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription308JSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription400ApplicationProblemPlusJSONResponse

type ReplaceIndividualSubcription400ApplicationProblemPlusJSONResponse struct {
	externalRef0.N400ApplicationProblemPlusJSONResponse
}

func (ReplaceIndividualSubcription400ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription400ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription401ApplicationProblemPlusJSONResponse

type ReplaceIndividualSubcription401ApplicationProblemPlusJSONResponse struct {
	externalRef0.N401ApplicationProblemPlusJSONResponse
}

func (ReplaceIndividualSubcription401ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription401ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription403ApplicationProblemPlusJSONResponse

type ReplaceIndividualSubcription403ApplicationProblemPlusJSONResponse struct {
	externalRef0.N403ApplicationProblemPlusJSONResponse
}

func (ReplaceIndividualSubcription403ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription403ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription404ApplicationProblemPlusJSONResponse

type ReplaceIndividualSubcription404ApplicationProblemPlusJSONResponse struct {
	externalRef0.N404ApplicationProblemPlusJSONResponse
}

func (ReplaceIndividualSubcription404ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription404ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription411ApplicationProblemPlusJSONResponse

type ReplaceIndividualSubcription411ApplicationProblemPlusJSONResponse struct {
	externalRef0.N411ApplicationProblemPlusJSONResponse
}

func (ReplaceIndividualSubcription411ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription411ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription413ApplicationProblemPlusJSONResponse

type ReplaceIndividualSubcription413ApplicationProblemPlusJSONResponse struct {
	externalRef0.N413ApplicationProblemPlusJSONResponse
}

func (ReplaceIndividualSubcription413ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription413ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription415ApplicationProblemPlusJSONResponse

type ReplaceIndividualSubcription415ApplicationProblemPlusJSONResponse struct {
	externalRef0.N415ApplicationProblemPlusJSONResponse
}

func (ReplaceIndividualSubcription415ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription415ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription429ApplicationProblemPlusJSONResponse

type ReplaceIndividualSubcription429ApplicationProblemPlusJSONResponse struct {
	externalRef0.N429ApplicationProblemPlusJSONResponse
}

func (ReplaceIndividualSubcription429ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription429ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription500ApplicationProblemPlusJSONResponse

type ReplaceIndividualSubcription500ApplicationProblemPlusJSONResponse struct {
	externalRef0.N500ApplicationProblemPlusJSONResponse
}

func (ReplaceIndividualSubcription500ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription500ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcription503ApplicationProblemPlusJSONResponse

type ReplaceIndividualSubcription503ApplicationProblemPlusJSONResponse struct {
	externalRef0.N503ApplicationProblemPlusJSONResponse
}

func (ReplaceIndividualSubcription503ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcription503ApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type ReplaceIndividualSubcriptionJSONRequestBody

type ReplaceIndividualSubcriptionJSONRequestBody = externalRef0.NsmfEventExposure

ReplaceIndividualSubcriptionJSONRequestBody defines body for ReplaceIndividualSubcription for application/json ContentType.

type ReplaceIndividualSubcriptionRequestObject

type ReplaceIndividualSubcriptionRequestObject struct {
	SubId string `json:"subId"`
	Body  *ReplaceIndividualSubcriptionJSONRequestBody
}

type ReplaceIndividualSubcriptionResponse

type ReplaceIndividualSubcriptionResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	JSON200                       *externalRef0.NsmfEventExposure
	JSON307                       *externalRef0.N307
	JSON308                       *externalRef0.N308
	ApplicationproblemJSON400     *externalRef0.N400
	ApplicationproblemJSON401     *externalRef0.N401
	ApplicationproblemJSON403     *externalRef0.N403
	ApplicationproblemJSON404     *externalRef0.N404
	ApplicationproblemJSON411     *externalRef0.N411
	ApplicationproblemJSON413     *externalRef0.N413
	ApplicationproblemJSON415     *externalRef0.N415
	ApplicationproblemJSON429     *externalRef0.N429
	ApplicationproblemJSON500     *externalRef0.N500
	ApplicationproblemJSON503     *externalRef0.N503
	ApplicationproblemJSONDefault *externalRef0.Default
}

func ParseReplaceIndividualSubcriptionResponse

func ParseReplaceIndividualSubcriptionResponse(rsp *http.Response) (*ReplaceIndividualSubcriptionResponse, error)

ParseReplaceIndividualSubcriptionResponse parses an HTTP response from a ReplaceIndividualSubcriptionWithResponse call

func (ReplaceIndividualSubcriptionResponse) Status

Status returns HTTPResponse.Status

func (ReplaceIndividualSubcriptionResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ReplaceIndividualSubcriptionResponseObject

type ReplaceIndividualSubcriptionResponseObject interface {
	VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error
}

type ReplaceIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse

type ReplaceIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse struct {
	Body       externalRef0.ProblemDetails
	StatusCode int
}

func (ReplaceIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse

func (response ReplaceIndividualSubcriptiondefaultApplicationProblemPlusJSONResponse) VisitReplaceIndividualSubcriptionResponse(w http.ResponseWriter) error

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ServerInterface

type ServerInterface interface {
	// Create an individual subscription for event notifications from the SMF
	// (POST /subscriptions)
	CreateIndividualSubcription(c *gin.Context)
	// Delete an individual subscription for event notifications from the SMF
	// (DELETE /subscriptions/{subId})
	DeleteIndividualSubcription(c *gin.Context, subId string)
	// Read an individual subscription for event notifications from the SMF
	// (GET /subscriptions/{subId})
	GetIndividualSubcription(c *gin.Context, subId string)
	// Replace an individual subscription for event notifications from the SMF
	// (PUT /subscriptions/{subId})
	ReplaceIndividualSubcription(c *gin.Context, subId string)
}

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) CreateIndividualSubcription

func (siw *ServerInterfaceWrapper) CreateIndividualSubcription(c *gin.Context)

CreateIndividualSubcription operation middleware

func (*ServerInterfaceWrapper) DeleteIndividualSubcription

func (siw *ServerInterfaceWrapper) DeleteIndividualSubcription(c *gin.Context)

DeleteIndividualSubcription operation middleware

func (*ServerInterfaceWrapper) GetIndividualSubcription

func (siw *ServerInterfaceWrapper) GetIndividualSubcription(c *gin.Context)

GetIndividualSubcription operation middleware

func (*ServerInterfaceWrapper) ReplaceIndividualSubcription

func (siw *ServerInterfaceWrapper) ReplaceIndividualSubcription(c *gin.Context)

ReplaceIndividualSubcription operation middleware

type StrictHandlerFunc

type StrictHandlerFunc = strictgin.StrictGinHandlerFunc

type StrictMiddlewareFunc

type StrictMiddlewareFunc = strictgin.StrictGinMiddlewareFunc

type StrictServerInterface

type StrictServerInterface interface {
	// Create an individual subscription for event notifications from the SMF
	// (POST /subscriptions)
	CreateIndividualSubcription(ctx context.Context, request CreateIndividualSubcriptionRequestObject) (CreateIndividualSubcriptionResponseObject, error)
	// Delete an individual subscription for event notifications from the SMF
	// (DELETE /subscriptions/{subId})
	DeleteIndividualSubcription(ctx context.Context, request DeleteIndividualSubcriptionRequestObject) (DeleteIndividualSubcriptionResponseObject, error)
	// Read an individual subscription for event notifications from the SMF
	// (GET /subscriptions/{subId})
	GetIndividualSubcription(ctx context.Context, request GetIndividualSubcriptionRequestObject) (GetIndividualSubcriptionResponseObject, error)
	// Replace an individual subscription for event notifications from the SMF
	// (PUT /subscriptions/{subId})
	ReplaceIndividualSubcription(ctx context.Context, request ReplaceIndividualSubcriptionRequestObject) (ReplaceIndividualSubcriptionResponseObject, error)
}

StrictServerInterface represents all server handlers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL