Documentation ¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version (devel) DO NOT EDIT.
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version (devel) DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router fiber.Router, si ServerInterface)
- func RegisterHandlersWithOptions(router fiber.Router, si ServerInterface, options FiberServerOptions)
- type BadrequestResponse
- type Example
- type FiberServerOptions
- type HeadersExample200JSONResponse
- type HeadersExample200ResponseHeaders
- type HeadersExample400Response
- type HeadersExampleJSONRequestBody
- type HeadersExampleParams
- type HeadersExampleRequestObject
- type HeadersExampleResponseObject
- type HeadersExampledefaultResponse
- type JSONExample200JSONResponse
- type JSONExample400Response
- type JSONExampleJSONRequestBody
- type JSONExampleRequestObject
- type JSONExampleResponseObject
- type JSONExampledefaultResponse
- type MiddlewareFunc
- type MultipartExample200MultipartResponse
- type MultipartExample400Response
- type MultipartExampleMultipartRequestBody
- type MultipartExampleRequestObject
- type MultipartExampleResponseObject
- type MultipartExampledefaultResponse
- type MultipleRequestAndResponseTypes200FormdataResponse
- type MultipleRequestAndResponseTypes200ImagepngResponse
- type MultipleRequestAndResponseTypes200JSONResponse
- type MultipleRequestAndResponseTypes200MultipartResponse
- type MultipleRequestAndResponseTypes200TextResponse
- type MultipleRequestAndResponseTypes400Response
- type MultipleRequestAndResponseTypesFormdataRequestBody
- type MultipleRequestAndResponseTypesJSONRequestBody
- type MultipleRequestAndResponseTypesMultipartRequestBody
- type MultipleRequestAndResponseTypesRequestObject
- type MultipleRequestAndResponseTypesResponseObject
- type MultipleRequestAndResponseTypesTextBody
- type MultipleRequestAndResponseTypesTextRequestBody
- type ReservedGoKeywordParameters200TextResponse
- type ReservedGoKeywordParametersRequestObject
- type ReservedGoKeywordParametersResponseObject
- type ReusableResponses200JSONResponse
- type ReusableResponses400Response
- type ReusableResponsesJSONRequestBody
- type ReusableResponsesRequestObject
- type ReusableResponsesResponseObject
- type ReusableResponsesdefaultResponse
- type Reusableresponse
- type ReusableresponseJSONResponse
- type ReusableresponseResponseHeaders
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) HeadersExample(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) JSONExample(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) MultipartExample(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) MultipleRequestAndResponseTypes(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) ReservedGoKeywordParameters(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) ReusableResponses(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) TextExample(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) URLEncodedExample(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) UnknownExample(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) UnspecifiedContentType(c *fiber.Ctx) error
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServer
- func (s StrictServer) HeadersExample(ctx context.Context, request HeadersExampleRequestObject) (HeadersExampleResponseObject, error)
- func (s StrictServer) JSONExample(ctx context.Context, request JSONExampleRequestObject) (JSONExampleResponseObject, error)
- func (s StrictServer) MultipartExample(ctx context.Context, request MultipartExampleRequestObject) (MultipartExampleResponseObject, error)
- func (s StrictServer) MultipleRequestAndResponseTypes(ctx context.Context, request MultipleRequestAndResponseTypesRequestObject) (MultipleRequestAndResponseTypesResponseObject, error)
- func (s StrictServer) ReservedGoKeywordParameters(ctx context.Context, request ReservedGoKeywordParametersRequestObject) (ReservedGoKeywordParametersResponseObject, error)
- func (s StrictServer) ReusableResponses(ctx context.Context, request ReusableResponsesRequestObject) (ReusableResponsesResponseObject, error)
- func (s StrictServer) TextExample(ctx context.Context, request TextExampleRequestObject) (TextExampleResponseObject, error)
- func (s StrictServer) URLEncodedExample(ctx context.Context, request URLEncodedExampleRequestObject) (URLEncodedExampleResponseObject, error)
- func (s StrictServer) UnknownExample(ctx context.Context, request UnknownExampleRequestObject) (UnknownExampleResponseObject, error)
- func (s StrictServer) UnspecifiedContentType(ctx context.Context, request UnspecifiedContentTypeRequestObject) (UnspecifiedContentTypeResponseObject, error)
- type StrictServerInterface
- type TextExample200TextResponse
- type TextExample400Response
- type TextExampleRequestObject
- type TextExampleResponseObject
- type TextExampleTextBody
- type TextExampleTextRequestBody
- type TextExampledefaultResponse
- type URLEncodedExample200FormdataResponse
- type URLEncodedExample400Response
- type URLEncodedExampleFormdataRequestBody
- type URLEncodedExampleRequestObject
- type URLEncodedExampleResponseObject
- type URLEncodedExampledefaultResponse
- type UnknownExample200Videomp4Response
- type UnknownExample400Response
- type UnknownExampleRequestObject
- type UnknownExampleResponseObject
- type UnknownExampledefaultResponse
- type UnspecifiedContentType200VideoResponse
- type UnspecifiedContentType400Response
- type UnspecifiedContentType401Response
- type UnspecifiedContentType403Response
- type UnspecifiedContentTypeRequestObject
- type UnspecifiedContentTypeResponseObject
- type UnspecifiedContentTypedefaultResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router fiber.Router, si ServerInterface)
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router fiber.Router, si ServerInterface, options FiberServerOptions)
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
type BadrequestResponse ¶
type BadrequestResponse struct { }
type Example ¶
type Example struct {
Value *string `json:"value,omitempty"`
}
Example defines model for example.
type FiberServerOptions ¶
type FiberServerOptions struct { BaseURL string Middlewares []MiddlewareFunc }
FiberServerOptions provides options for the Fiber server.
type HeadersExample200JSONResponse ¶
type HeadersExample200JSONResponse struct { Body Example Headers HeadersExample200ResponseHeaders }
func (HeadersExample200JSONResponse) VisitHeadersExampleResponse ¶
func (response HeadersExample200JSONResponse) VisitHeadersExampleResponse(ctx *fiber.Ctx) error
type HeadersExample400Response ¶
type HeadersExample400Response = BadrequestResponse
func (HeadersExample400Response) VisitHeadersExampleResponse ¶
func (response HeadersExample400Response) VisitHeadersExampleResponse(ctx *fiber.Ctx) error
type HeadersExampleJSONRequestBody ¶
type HeadersExampleJSONRequestBody = Example
HeadersExampleJSONRequestBody defines body for HeadersExample for application/json ContentType.
type HeadersExampleParams ¶
type HeadersExampleParams struct { Header1 string `json:"header1"` Header2 *int `json:"header2,omitempty"` }
HeadersExampleParams defines parameters for HeadersExample.
type HeadersExampleRequestObject ¶
type HeadersExampleRequestObject struct { Params HeadersExampleParams Body *HeadersExampleJSONRequestBody }
type HeadersExampleResponseObject ¶
type HeadersExampleResponseObject interface {
VisitHeadersExampleResponse(ctx *fiber.Ctx) error
}
type HeadersExampledefaultResponse ¶
type HeadersExampledefaultResponse struct {
StatusCode int
}
func (HeadersExampledefaultResponse) VisitHeadersExampleResponse ¶
func (response HeadersExampledefaultResponse) VisitHeadersExampleResponse(ctx *fiber.Ctx) error
type JSONExample200JSONResponse ¶
type JSONExample200JSONResponse Example
func (JSONExample200JSONResponse) VisitJSONExampleResponse ¶
func (response JSONExample200JSONResponse) VisitJSONExampleResponse(ctx *fiber.Ctx) error
type JSONExample400Response ¶
type JSONExample400Response = BadrequestResponse
func (JSONExample400Response) VisitJSONExampleResponse ¶
func (response JSONExample400Response) VisitJSONExampleResponse(ctx *fiber.Ctx) error
type JSONExampleJSONRequestBody ¶
type JSONExampleJSONRequestBody = Example
JSONExampleJSONRequestBody defines body for JSONExample for application/json ContentType.
type JSONExampleRequestObject ¶
type JSONExampleRequestObject struct {
Body *JSONExampleJSONRequestBody
}
type JSONExampleResponseObject ¶
type JSONExampleResponseObject interface {
VisitJSONExampleResponse(ctx *fiber.Ctx) error
}
type JSONExampledefaultResponse ¶
type JSONExampledefaultResponse struct {
StatusCode int
}
func (JSONExampledefaultResponse) VisitJSONExampleResponse ¶
func (response JSONExampledefaultResponse) VisitJSONExampleResponse(ctx *fiber.Ctx) error
type MiddlewareFunc ¶
type MiddlewareFunc fiber.Handler
type MultipartExample200MultipartResponse ¶
func (MultipartExample200MultipartResponse) VisitMultipartExampleResponse ¶
func (response MultipartExample200MultipartResponse) VisitMultipartExampleResponse(ctx *fiber.Ctx) error
type MultipartExample400Response ¶
type MultipartExample400Response = BadrequestResponse
func (MultipartExample400Response) VisitMultipartExampleResponse ¶
func (response MultipartExample400Response) VisitMultipartExampleResponse(ctx *fiber.Ctx) error
type MultipartExampleMultipartRequestBody ¶
type MultipartExampleMultipartRequestBody = Example
MultipartExampleMultipartRequestBody defines body for MultipartExample for multipart/form-data ContentType.
type MultipartExampleResponseObject ¶
type MultipartExampleResponseObject interface {
VisitMultipartExampleResponse(ctx *fiber.Ctx) error
}
type MultipartExampledefaultResponse ¶
type MultipartExampledefaultResponse struct {
StatusCode int
}
func (MultipartExampledefaultResponse) VisitMultipartExampleResponse ¶
func (response MultipartExampledefaultResponse) VisitMultipartExampleResponse(ctx *fiber.Ctx) error
type MultipleRequestAndResponseTypes200FormdataResponse ¶
type MultipleRequestAndResponseTypes200FormdataResponse Example
func (MultipleRequestAndResponseTypes200FormdataResponse) VisitMultipleRequestAndResponseTypesResponse ¶
func (response MultipleRequestAndResponseTypes200FormdataResponse) VisitMultipleRequestAndResponseTypesResponse(ctx *fiber.Ctx) error
type MultipleRequestAndResponseTypes200ImagepngResponse ¶
type MultipleRequestAndResponseTypes200ImagepngResponse struct { Body io.Reader ContentLength int64 }
func (MultipleRequestAndResponseTypes200ImagepngResponse) VisitMultipleRequestAndResponseTypesResponse ¶
func (response MultipleRequestAndResponseTypes200ImagepngResponse) VisitMultipleRequestAndResponseTypesResponse(ctx *fiber.Ctx) error
type MultipleRequestAndResponseTypes200JSONResponse ¶
type MultipleRequestAndResponseTypes200JSONResponse Example
func (MultipleRequestAndResponseTypes200JSONResponse) VisitMultipleRequestAndResponseTypesResponse ¶
func (response MultipleRequestAndResponseTypes200JSONResponse) VisitMultipleRequestAndResponseTypesResponse(ctx *fiber.Ctx) error
type MultipleRequestAndResponseTypes200MultipartResponse ¶
func (MultipleRequestAndResponseTypes200MultipartResponse) VisitMultipleRequestAndResponseTypesResponse ¶
func (response MultipleRequestAndResponseTypes200MultipartResponse) VisitMultipleRequestAndResponseTypesResponse(ctx *fiber.Ctx) error
type MultipleRequestAndResponseTypes200TextResponse ¶
type MultipleRequestAndResponseTypes200TextResponse string
func (MultipleRequestAndResponseTypes200TextResponse) VisitMultipleRequestAndResponseTypesResponse ¶
func (response MultipleRequestAndResponseTypes200TextResponse) VisitMultipleRequestAndResponseTypesResponse(ctx *fiber.Ctx) error
type MultipleRequestAndResponseTypes400Response ¶
type MultipleRequestAndResponseTypes400Response = BadrequestResponse
func (MultipleRequestAndResponseTypes400Response) VisitMultipleRequestAndResponseTypesResponse ¶
func (response MultipleRequestAndResponseTypes400Response) VisitMultipleRequestAndResponseTypesResponse(ctx *fiber.Ctx) error
type MultipleRequestAndResponseTypesFormdataRequestBody ¶
type MultipleRequestAndResponseTypesFormdataRequestBody = Example
MultipleRequestAndResponseTypesFormdataRequestBody defines body for MultipleRequestAndResponseTypes for application/x-www-form-urlencoded ContentType.
type MultipleRequestAndResponseTypesJSONRequestBody ¶
type MultipleRequestAndResponseTypesJSONRequestBody = Example
MultipleRequestAndResponseTypesJSONRequestBody defines body for MultipleRequestAndResponseTypes for application/json ContentType.
type MultipleRequestAndResponseTypesMultipartRequestBody ¶
type MultipleRequestAndResponseTypesMultipartRequestBody = Example
MultipleRequestAndResponseTypesMultipartRequestBody defines body for MultipleRequestAndResponseTypes for multipart/form-data ContentType.
type MultipleRequestAndResponseTypesRequestObject ¶
type MultipleRequestAndResponseTypesRequestObject struct { JSONBody *MultipleRequestAndResponseTypesJSONRequestBody FormdataBody *MultipleRequestAndResponseTypesFormdataRequestBody Body io.Reader MultipartBody *multipart.Reader TextBody *MultipleRequestAndResponseTypesTextRequestBody }
type MultipleRequestAndResponseTypesResponseObject ¶
type MultipleRequestAndResponseTypesResponseObject interface {
VisitMultipleRequestAndResponseTypesResponse(ctx *fiber.Ctx) error
}
type MultipleRequestAndResponseTypesTextBody ¶
type MultipleRequestAndResponseTypesTextBody = string
MultipleRequestAndResponseTypesTextBody defines parameters for MultipleRequestAndResponseTypes.
type MultipleRequestAndResponseTypesTextRequestBody ¶
type MultipleRequestAndResponseTypesTextRequestBody = MultipleRequestAndResponseTypesTextBody
MultipleRequestAndResponseTypesTextRequestBody defines body for MultipleRequestAndResponseTypes for text/plain ContentType.
type ReservedGoKeywordParameters200TextResponse ¶
type ReservedGoKeywordParameters200TextResponse string
func (ReservedGoKeywordParameters200TextResponse) VisitReservedGoKeywordParametersResponse ¶
func (response ReservedGoKeywordParameters200TextResponse) VisitReservedGoKeywordParametersResponse(ctx *fiber.Ctx) error
type ReservedGoKeywordParametersRequestObject ¶
type ReservedGoKeywordParametersRequestObject struct {
Type string `json:"type"`
}
type ReservedGoKeywordParametersResponseObject ¶
type ReservedGoKeywordParametersResponseObject interface {
VisitReservedGoKeywordParametersResponse(ctx *fiber.Ctx) error
}
type ReusableResponses200JSONResponse ¶
type ReusableResponses200JSONResponse struct{ ReusableresponseJSONResponse }
func (ReusableResponses200JSONResponse) VisitReusableResponsesResponse ¶
func (response ReusableResponses200JSONResponse) VisitReusableResponsesResponse(ctx *fiber.Ctx) error
type ReusableResponses400Response ¶
type ReusableResponses400Response = BadrequestResponse
func (ReusableResponses400Response) VisitReusableResponsesResponse ¶
func (response ReusableResponses400Response) VisitReusableResponsesResponse(ctx *fiber.Ctx) error
type ReusableResponsesJSONRequestBody ¶
type ReusableResponsesJSONRequestBody = Example
ReusableResponsesJSONRequestBody defines body for ReusableResponses for application/json ContentType.
type ReusableResponsesRequestObject ¶
type ReusableResponsesRequestObject struct {
Body *ReusableResponsesJSONRequestBody
}
type ReusableResponsesResponseObject ¶
type ReusableResponsesResponseObject interface {
VisitReusableResponsesResponse(ctx *fiber.Ctx) error
}
type ReusableResponsesdefaultResponse ¶
type ReusableResponsesdefaultResponse struct {
StatusCode int
}
func (ReusableResponsesdefaultResponse) VisitReusableResponsesResponse ¶
func (response ReusableResponsesdefaultResponse) VisitReusableResponsesResponse(ctx *fiber.Ctx) error
type Reusableresponse ¶
type Reusableresponse = Example
Reusableresponse defines model for reusableresponse.
type ReusableresponseJSONResponse ¶
type ReusableresponseJSONResponse struct { Body Example Headers ReusableresponseResponseHeaders }
type ServerInterface ¶
type ServerInterface interface { // (POST /json) JSONExample(c *fiber.Ctx) error // (POST /multipart) MultipartExample(c *fiber.Ctx) error // (POST /multiple) MultipleRequestAndResponseTypes(c *fiber.Ctx) error // (GET /reserved-go-keyword-parameters/{type}) ReservedGoKeywordParameters(c *fiber.Ctx, pType string) error // (POST /reusable-responses) ReusableResponses(c *fiber.Ctx) error // (POST /text) TextExample(c *fiber.Ctx) error // (POST /unknown) UnknownExample(c *fiber.Ctx) error // (POST /unspecified-content-type) UnspecifiedContentType(c *fiber.Ctx) error // (POST /urlencoded) URLEncodedExample(c *fiber.Ctx) error // (POST /with-headers) HeadersExample(c *fiber.Ctx, params HeadersExampleParams) error }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) HeadersExample ¶
func (siw *ServerInterfaceWrapper) HeadersExample(c *fiber.Ctx) error
HeadersExample operation middleware
func (*ServerInterfaceWrapper) JSONExample ¶
func (siw *ServerInterfaceWrapper) JSONExample(c *fiber.Ctx) error
JSONExample operation middleware
func (*ServerInterfaceWrapper) MultipartExample ¶
func (siw *ServerInterfaceWrapper) MultipartExample(c *fiber.Ctx) error
MultipartExample operation middleware
func (*ServerInterfaceWrapper) MultipleRequestAndResponseTypes ¶
func (siw *ServerInterfaceWrapper) MultipleRequestAndResponseTypes(c *fiber.Ctx) error
MultipleRequestAndResponseTypes operation middleware
func (*ServerInterfaceWrapper) ReservedGoKeywordParameters ¶
func (siw *ServerInterfaceWrapper) ReservedGoKeywordParameters(c *fiber.Ctx) error
ReservedGoKeywordParameters operation middleware
func (*ServerInterfaceWrapper) ReusableResponses ¶
func (siw *ServerInterfaceWrapper) ReusableResponses(c *fiber.Ctx) error
ReusableResponses operation middleware
func (*ServerInterfaceWrapper) TextExample ¶
func (siw *ServerInterfaceWrapper) TextExample(c *fiber.Ctx) error
TextExample operation middleware
func (*ServerInterfaceWrapper) URLEncodedExample ¶
func (siw *ServerInterfaceWrapper) URLEncodedExample(c *fiber.Ctx) error
URLEncodedExample operation middleware
func (*ServerInterfaceWrapper) UnknownExample ¶
func (siw *ServerInterfaceWrapper) UnknownExample(c *fiber.Ctx) error
UnknownExample operation middleware
func (*ServerInterfaceWrapper) UnspecifiedContentType ¶
func (siw *ServerInterfaceWrapper) UnspecifiedContentType(c *fiber.Ctx) error
UnspecifiedContentType operation middleware
type StrictHandlerFunc ¶
type StrictHandlerFunc func(ctx *fiber.Ctx, args interface{}) (interface{}, error)
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServer ¶
type StrictServer struct { }
func (StrictServer) HeadersExample ¶
func (s StrictServer) HeadersExample(ctx context.Context, request HeadersExampleRequestObject) (HeadersExampleResponseObject, error)
func (StrictServer) JSONExample ¶
func (s StrictServer) JSONExample(ctx context.Context, request JSONExampleRequestObject) (JSONExampleResponseObject, error)
func (StrictServer) MultipartExample ¶
func (s StrictServer) MultipartExample(ctx context.Context, request MultipartExampleRequestObject) (MultipartExampleResponseObject, error)
func (StrictServer) MultipleRequestAndResponseTypes ¶
func (s StrictServer) MultipleRequestAndResponseTypes(ctx context.Context, request MultipleRequestAndResponseTypesRequestObject) (MultipleRequestAndResponseTypesResponseObject, error)
func (StrictServer) ReservedGoKeywordParameters ¶
func (s StrictServer) ReservedGoKeywordParameters(ctx context.Context, request ReservedGoKeywordParametersRequestObject) (ReservedGoKeywordParametersResponseObject, error)
func (StrictServer) ReusableResponses ¶
func (s StrictServer) ReusableResponses(ctx context.Context, request ReusableResponsesRequestObject) (ReusableResponsesResponseObject, error)
func (StrictServer) TextExample ¶
func (s StrictServer) TextExample(ctx context.Context, request TextExampleRequestObject) (TextExampleResponseObject, error)
func (StrictServer) URLEncodedExample ¶
func (s StrictServer) URLEncodedExample(ctx context.Context, request URLEncodedExampleRequestObject) (URLEncodedExampleResponseObject, error)
func (StrictServer) UnknownExample ¶
func (s StrictServer) UnknownExample(ctx context.Context, request UnknownExampleRequestObject) (UnknownExampleResponseObject, error)
func (StrictServer) UnspecifiedContentType ¶
func (s StrictServer) UnspecifiedContentType(ctx context.Context, request UnspecifiedContentTypeRequestObject) (UnspecifiedContentTypeResponseObject, error)
type StrictServerInterface ¶
type StrictServerInterface interface { // (POST /json) JSONExample(ctx context.Context, request JSONExampleRequestObject) (JSONExampleResponseObject, error) // (POST /multipart) MultipartExample(ctx context.Context, request MultipartExampleRequestObject) (MultipartExampleResponseObject, error) // (POST /multiple) MultipleRequestAndResponseTypes(ctx context.Context, request MultipleRequestAndResponseTypesRequestObject) (MultipleRequestAndResponseTypesResponseObject, error) // (GET /reserved-go-keyword-parameters/{type}) ReservedGoKeywordParameters(ctx context.Context, request ReservedGoKeywordParametersRequestObject) (ReservedGoKeywordParametersResponseObject, error) // (POST /reusable-responses) ReusableResponses(ctx context.Context, request ReusableResponsesRequestObject) (ReusableResponsesResponseObject, error) // (POST /text) TextExample(ctx context.Context, request TextExampleRequestObject) (TextExampleResponseObject, error) // (POST /unknown) UnknownExample(ctx context.Context, request UnknownExampleRequestObject) (UnknownExampleResponseObject, error) // (POST /unspecified-content-type) UnspecifiedContentType(ctx context.Context, request UnspecifiedContentTypeRequestObject) (UnspecifiedContentTypeResponseObject, error) // (POST /urlencoded) URLEncodedExample(ctx context.Context, request URLEncodedExampleRequestObject) (URLEncodedExampleResponseObject, error) // (POST /with-headers) HeadersExample(ctx context.Context, request HeadersExampleRequestObject) (HeadersExampleResponseObject, error) }
StrictServerInterface represents all server handlers.
type TextExample200TextResponse ¶
type TextExample200TextResponse string
func (TextExample200TextResponse) VisitTextExampleResponse ¶
func (response TextExample200TextResponse) VisitTextExampleResponse(ctx *fiber.Ctx) error
type TextExample400Response ¶
type TextExample400Response = BadrequestResponse
func (TextExample400Response) VisitTextExampleResponse ¶
func (response TextExample400Response) VisitTextExampleResponse(ctx *fiber.Ctx) error
type TextExampleRequestObject ¶
type TextExampleRequestObject struct {
Body *TextExampleTextRequestBody
}
type TextExampleResponseObject ¶
type TextExampleResponseObject interface {
VisitTextExampleResponse(ctx *fiber.Ctx) error
}
type TextExampleTextBody ¶
type TextExampleTextBody = string
TextExampleTextBody defines parameters for TextExample.
type TextExampleTextRequestBody ¶
type TextExampleTextRequestBody = TextExampleTextBody
TextExampleTextRequestBody defines body for TextExample for text/plain ContentType.
type TextExampledefaultResponse ¶
type TextExampledefaultResponse struct {
StatusCode int
}
func (TextExampledefaultResponse) VisitTextExampleResponse ¶
func (response TextExampledefaultResponse) VisitTextExampleResponse(ctx *fiber.Ctx) error
type URLEncodedExample200FormdataResponse ¶
type URLEncodedExample200FormdataResponse Example
func (URLEncodedExample200FormdataResponse) VisitURLEncodedExampleResponse ¶
func (response URLEncodedExample200FormdataResponse) VisitURLEncodedExampleResponse(ctx *fiber.Ctx) error
type URLEncodedExample400Response ¶
type URLEncodedExample400Response = BadrequestResponse
func (URLEncodedExample400Response) VisitURLEncodedExampleResponse ¶
func (response URLEncodedExample400Response) VisitURLEncodedExampleResponse(ctx *fiber.Ctx) error
type URLEncodedExampleFormdataRequestBody ¶
type URLEncodedExampleFormdataRequestBody = Example
URLEncodedExampleFormdataRequestBody defines body for URLEncodedExample for application/x-www-form-urlencoded ContentType.
type URLEncodedExampleRequestObject ¶
type URLEncodedExampleRequestObject struct {
Body *URLEncodedExampleFormdataRequestBody
}
type URLEncodedExampleResponseObject ¶
type URLEncodedExampleResponseObject interface {
VisitURLEncodedExampleResponse(ctx *fiber.Ctx) error
}
type URLEncodedExampledefaultResponse ¶
type URLEncodedExampledefaultResponse struct {
StatusCode int
}
func (URLEncodedExampledefaultResponse) VisitURLEncodedExampleResponse ¶
func (response URLEncodedExampledefaultResponse) VisitURLEncodedExampleResponse(ctx *fiber.Ctx) error
type UnknownExample200Videomp4Response ¶
func (UnknownExample200Videomp4Response) VisitUnknownExampleResponse ¶
func (response UnknownExample200Videomp4Response) VisitUnknownExampleResponse(ctx *fiber.Ctx) error
type UnknownExample400Response ¶
type UnknownExample400Response = BadrequestResponse
func (UnknownExample400Response) VisitUnknownExampleResponse ¶
func (response UnknownExample400Response) VisitUnknownExampleResponse(ctx *fiber.Ctx) error
type UnknownExampleResponseObject ¶
type UnknownExampleResponseObject interface {
VisitUnknownExampleResponse(ctx *fiber.Ctx) error
}
type UnknownExampledefaultResponse ¶
type UnknownExampledefaultResponse struct {
StatusCode int
}
func (UnknownExampledefaultResponse) VisitUnknownExampleResponse ¶
func (response UnknownExampledefaultResponse) VisitUnknownExampleResponse(ctx *fiber.Ctx) error
type UnspecifiedContentType200VideoResponse ¶
type UnspecifiedContentType200VideoResponse struct { Body io.Reader ContentType string ContentLength int64 }
func (UnspecifiedContentType200VideoResponse) VisitUnspecifiedContentTypeResponse ¶
func (response UnspecifiedContentType200VideoResponse) VisitUnspecifiedContentTypeResponse(ctx *fiber.Ctx) error
type UnspecifiedContentType400Response ¶
type UnspecifiedContentType400Response = BadrequestResponse
func (UnspecifiedContentType400Response) VisitUnspecifiedContentTypeResponse ¶
func (response UnspecifiedContentType400Response) VisitUnspecifiedContentTypeResponse(ctx *fiber.Ctx) error
type UnspecifiedContentType401Response ¶
type UnspecifiedContentType401Response struct { }
func (UnspecifiedContentType401Response) VisitUnspecifiedContentTypeResponse ¶
func (response UnspecifiedContentType401Response) VisitUnspecifiedContentTypeResponse(ctx *fiber.Ctx) error
type UnspecifiedContentType403Response ¶
type UnspecifiedContentType403Response struct { }
func (UnspecifiedContentType403Response) VisitUnspecifiedContentTypeResponse ¶
func (response UnspecifiedContentType403Response) VisitUnspecifiedContentTypeResponse(ctx *fiber.Ctx) error
type UnspecifiedContentTypeResponseObject ¶
type UnspecifiedContentTypeResponseObject interface {
VisitUnspecifiedContentTypeResponse(ctx *fiber.Ctx) error
}
type UnspecifiedContentTypedefaultResponse ¶
type UnspecifiedContentTypedefaultResponse struct {
StatusCode int
}
func (UnspecifiedContentTypedefaultResponse) VisitUnspecifiedContentTypeResponse ¶
func (response UnspecifiedContentTypedefaultResponse) VisitUnspecifiedContentTypeResponse(ctx *fiber.Ctx) error