Documentation
¶
Overview ¶
Package parameters provides primitives to interact with the openapi HTTP API.
Code generated by github.com/KosyanMedia/oapi-codegen/v2 version (devel) DO NOT EDIT.
Index ¶
- func NewGetContentObjectRequest(server string, param ComplexObject) (*http.Request, error)
- func NewGetCookieRequest(server string, params GetCookieParams) (*http.Request, error)
- func NewGetDeepObjectRequest(server string, params GetDeepObjectParams) (*http.Request, error)
- func NewGetHeaderRequest(server string, params GetHeaderParams) (*http.Request, error)
- func NewGetLabelExplodeArrayRequest(server string, param []int32) (*http.Request, error)
- func NewGetLabelExplodeObjectRequest(server string, param Object) (*http.Request, error)
- func NewGetLabelNoExplodeArrayRequest(server string, param []int32) (*http.Request, error)
- func NewGetLabelNoExplodeObjectRequest(server string, param Object) (*http.Request, error)
- func NewGetMatrixExplodeArrayRequest(server string, id []int32) (*http.Request, error)
- func NewGetMatrixExplodeObjectRequest(server string, id Object) (*http.Request, error)
- func NewGetMatrixNoExplodeArrayRequest(server string, id []int32) (*http.Request, error)
- func NewGetMatrixNoExplodeObjectRequest(server string, id Object) (*http.Request, error)
- func NewGetPassThroughRequest(server string, param string) (*http.Request, error)
- func NewGetQueryFormRequest(server string, params GetQueryFormParams) (*http.Request, error)
- func NewGetSimpleExplodeArrayRequest(server string, param []int32) (*http.Request, error)
- func NewGetSimpleExplodeObjectRequest(server string, param Object) (*http.Request, error)
- func NewGetSimpleNoExplodeArrayRequest(server string, param []int32) (*http.Request, error)
- func NewGetSimpleNoExplodeObjectRequest(server string, param Object) (*http.Request, error)
- func NewGetSimplePrimitiveRequest(server string, param int32) (*http.Request, error)
- func NewGetStartingWithNumberRequest(server string, n1param string) (*http.Request, error)
- func RegisterHandlers(router EchoRouter, si ServerInterface, m ...echo.MiddlewareFunc)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string, ...)
- type Client
- func (c *Client) GetContentObject(ctx context.Context, param ComplexObject, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCookie(ctx context.Context, params GetCookieParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDeepObject(ctx context.Context, params GetDeepObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHeader(ctx context.Context, params GetHeaderParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLabelExplodeArray(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLabelExplodeObject(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLabelNoExplodeArray(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLabelNoExplodeObject(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMatrixExplodeArray(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMatrixExplodeObject(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMatrixNoExplodeArray(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMatrixNoExplodeObject(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPassThrough(ctx context.Context, param string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetQueryForm(ctx context.Context, params GetQueryFormParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSimpleExplodeArray(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSimpleExplodeObject(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSimpleNoExplodeArray(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSimpleNoExplodeObject(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSimplePrimitive(ctx context.Context, param int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetStartingWithNumber(ctx context.Context, n1param string, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientGetContentObjectResponse
- type ClientGetCookieResponse
- type ClientGetDeepObjectResponse
- type ClientGetHeaderResponse
- type ClientGetLabelExplodeArrayResponse
- type ClientGetLabelExplodeObjectResponse
- type ClientGetLabelNoExplodeArrayResponse
- type ClientGetLabelNoExplodeObjectResponse
- type ClientGetMatrixExplodeArrayResponse
- type ClientGetMatrixExplodeObjectResponse
- type ClientGetMatrixNoExplodeArrayResponse
- type ClientGetMatrixNoExplodeObjectResponse
- type ClientGetPassThroughResponse
- type ClientGetQueryFormResponse
- type ClientGetSimpleExplodeArrayResponse
- type ClientGetSimpleExplodeObjectResponse
- type ClientGetSimpleNoExplodeArrayResponse
- type ClientGetSimpleNoExplodeObjectResponse
- type ClientGetSimplePrimitiveResponse
- type ClientGetStartingWithNumberResponse
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetContentObjectWithResponse(ctx context.Context, param ComplexObject, reqEditors ...RequestEditorFn) (*ClientGetContentObjectResponse, error)
- func (c *ClientWithResponses) GetCookieWithResponse(ctx context.Context, params GetCookieParams, reqEditors ...RequestEditorFn) (*ClientGetCookieResponse, error)
- func (c *ClientWithResponses) GetDeepObjectWithResponse(ctx context.Context, params GetDeepObjectParams, reqEditors ...RequestEditorFn) (*ClientGetDeepObjectResponse, error)
- func (c *ClientWithResponses) GetHeaderWithResponse(ctx context.Context, params GetHeaderParams, reqEditors ...RequestEditorFn) (*ClientGetHeaderResponse, error)
- func (c *ClientWithResponses) GetLabelExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetLabelExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetLabelExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetLabelExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetLabelNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetLabelNoExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetLabelNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetLabelNoExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetMatrixExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*ClientGetMatrixExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetMatrixExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*ClientGetMatrixExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetMatrixNoExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*ClientGetMatrixNoExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetMatrixNoExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*ClientGetMatrixNoExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetPassThroughWithResponse(ctx context.Context, param string, reqEditors ...RequestEditorFn) (*ClientGetPassThroughResponse, error)
- func (c *ClientWithResponses) GetQueryFormWithResponse(ctx context.Context, params GetQueryFormParams, reqEditors ...RequestEditorFn) (*ClientGetQueryFormResponse, error)
- func (c *ClientWithResponses) GetSimpleExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetSimpleExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetSimpleExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetSimpleExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetSimpleNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetSimpleNoExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetSimpleNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetSimpleNoExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetSimplePrimitiveWithResponse(ctx context.Context, param int32, reqEditors ...RequestEditorFn) (*ClientGetSimplePrimitiveResponse, error)
- func (c *ClientWithResponses) GetStartingWithNumberWithResponse(ctx context.Context, n1param string, reqEditors ...RequestEditorFn) (*ClientGetStartingWithNumberResponse, error)
- type ClientWithResponsesInterface
- type ComplexObject
- type EchoRouter
- type GetCookieParams
- type GetDeepObjectParams
- type GetHeaderParams
- type GetQueryFormParams
- type HttpRequestDoer
- type Object
- type RequestEditorFn
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) GetContentObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetCookie(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetDeepObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetHeader(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetLabelExplodeArray(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetLabelExplodeObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetLabelNoExplodeArray(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetLabelNoExplodeObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetMatrixExplodeArray(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetMatrixExplodeObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetMatrixNoExplodeArray(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetMatrixNoExplodeObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetPassThrough(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetQueryForm(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetSimpleExplodeArray(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetSimpleExplodeObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetSimpleNoExplodeArray(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetSimpleNoExplodeObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetSimplePrimitive(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetStartingWithNumber(ctx echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetContentObjectRequest ¶
func NewGetContentObjectRequest(server string, param ComplexObject) (*http.Request, error)
NewGetContentObjectRequest generates requests for GetContentObject
func NewGetCookieRequest ¶
func NewGetCookieRequest(server string, params GetCookieParams) (*http.Request, error)
NewGetCookieRequest generates requests for GetCookie
func NewGetDeepObjectRequest ¶
func NewGetDeepObjectRequest(server string, params GetDeepObjectParams) (*http.Request, error)
NewGetDeepObjectRequest generates requests for GetDeepObject
func NewGetHeaderRequest ¶
func NewGetHeaderRequest(server string, params GetHeaderParams) (*http.Request, error)
NewGetHeaderRequest generates requests for GetHeader
func NewGetLabelExplodeArrayRequest ¶
NewGetLabelExplodeArrayRequest generates requests for GetLabelExplodeArray
func NewGetLabelExplodeObjectRequest ¶
NewGetLabelExplodeObjectRequest generates requests for GetLabelExplodeObject
func NewGetLabelNoExplodeArrayRequest ¶
NewGetLabelNoExplodeArrayRequest generates requests for GetLabelNoExplodeArray
func NewGetLabelNoExplodeObjectRequest ¶
NewGetLabelNoExplodeObjectRequest generates requests for GetLabelNoExplodeObject
func NewGetMatrixExplodeArrayRequest ¶
NewGetMatrixExplodeArrayRequest generates requests for GetMatrixExplodeArray
func NewGetMatrixExplodeObjectRequest ¶
NewGetMatrixExplodeObjectRequest generates requests for GetMatrixExplodeObject
func NewGetMatrixNoExplodeArrayRequest ¶
NewGetMatrixNoExplodeArrayRequest generates requests for GetMatrixNoExplodeArray
func NewGetMatrixNoExplodeObjectRequest ¶
NewGetMatrixNoExplodeObjectRequest generates requests for GetMatrixNoExplodeObject
func NewGetPassThroughRequest ¶
NewGetPassThroughRequest generates requests for GetPassThrough
func NewGetQueryFormRequest ¶
func NewGetQueryFormRequest(server string, params GetQueryFormParams) (*http.Request, error)
NewGetQueryFormRequest generates requests for GetQueryForm
func NewGetSimpleExplodeArrayRequest ¶
NewGetSimpleExplodeArrayRequest generates requests for GetSimpleExplodeArray
func NewGetSimpleExplodeObjectRequest ¶
NewGetSimpleExplodeObjectRequest generates requests for GetSimpleExplodeObject
func NewGetSimpleNoExplodeArrayRequest ¶
NewGetSimpleNoExplodeArrayRequest generates requests for GetSimpleNoExplodeArray
func NewGetSimpleNoExplodeObjectRequest ¶
NewGetSimpleNoExplodeObjectRequest generates requests for GetSimpleNoExplodeObject
func NewGetSimplePrimitiveRequest ¶
NewGetSimplePrimitiveRequest generates requests for GetSimplePrimitive
func NewGetStartingWithNumberRequest ¶
NewGetStartingWithNumberRequest generates requests for GetStartingWithNumber
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface, m ...echo.MiddlewareFunc)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string, m ...echo.MiddlewareFunc)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
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) GetContentObject ¶
func (c *Client) GetContentObject(ctx context.Context, param ComplexObject, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCookie ¶
func (c *Client) GetCookie(ctx context.Context, params GetCookieParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetDeepObject ¶
func (c *Client) GetDeepObject(ctx context.Context, params GetDeepObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetHeader ¶
func (c *Client) GetHeader(ctx context.Context, params GetHeaderParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetLabelExplodeArray ¶
func (*Client) GetLabelExplodeObject ¶
func (*Client) GetLabelNoExplodeArray ¶
func (*Client) GetLabelNoExplodeObject ¶
func (*Client) GetMatrixExplodeArray ¶
func (*Client) GetMatrixExplodeObject ¶
func (*Client) GetMatrixNoExplodeArray ¶
func (*Client) GetMatrixNoExplodeObject ¶
func (*Client) GetPassThrough ¶
func (*Client) GetQueryForm ¶
func (c *Client) GetQueryForm(ctx context.Context, params GetQueryFormParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSimpleExplodeArray ¶
func (*Client) GetSimpleExplodeObject ¶
func (*Client) GetSimpleNoExplodeArray ¶
func (*Client) GetSimpleNoExplodeObject ¶
func (*Client) GetSimplePrimitive ¶
func (*Client) GetStartingWithNumber ¶
type ClientGetContentObjectResponse ¶
func ParseGetContentObjectResponse ¶
func ParseGetContentObjectResponse(rsp *http.Response) (*ClientGetContentObjectResponse, error)
ParseGetContentObjectResponse parses an HTTP response from a GetContentObjectWithResponse call
func (ClientGetContentObjectResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetContentObjectResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetContentObjectResponse) Status ¶
func (r ClientGetContentObjectResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetContentObjectResponse) StatusCode ¶
func (r ClientGetContentObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetCookieResponse ¶
func ParseGetCookieResponse ¶
func ParseGetCookieResponse(rsp *http.Response) (*ClientGetCookieResponse, error)
ParseGetCookieResponse parses an HTTP response from a GetCookieWithResponse call
func (ClientGetCookieResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetCookieResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetCookieResponse) Status ¶
func (r ClientGetCookieResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetCookieResponse) StatusCode ¶
func (r ClientGetCookieResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetDeepObjectResponse ¶
func ParseGetDeepObjectResponse ¶
func ParseGetDeepObjectResponse(rsp *http.Response) (*ClientGetDeepObjectResponse, error)
ParseGetDeepObjectResponse parses an HTTP response from a GetDeepObjectWithResponse call
func (ClientGetDeepObjectResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetDeepObjectResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetDeepObjectResponse) Status ¶
func (r ClientGetDeepObjectResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetDeepObjectResponse) StatusCode ¶
func (r ClientGetDeepObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetHeaderResponse ¶
func ParseGetHeaderResponse ¶
func ParseGetHeaderResponse(rsp *http.Response) (*ClientGetHeaderResponse, error)
ParseGetHeaderResponse parses an HTTP response from a GetHeaderWithResponse call
func (ClientGetHeaderResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetHeaderResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetHeaderResponse) Status ¶
func (r ClientGetHeaderResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetHeaderResponse) StatusCode ¶
func (r ClientGetHeaderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetLabelExplodeArrayResponse ¶
func ParseGetLabelExplodeArrayResponse ¶
func ParseGetLabelExplodeArrayResponse(rsp *http.Response) (*ClientGetLabelExplodeArrayResponse, error)
ParseGetLabelExplodeArrayResponse parses an HTTP response from a GetLabelExplodeArrayWithResponse call
func (ClientGetLabelExplodeArrayResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetLabelExplodeArrayResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetLabelExplodeArrayResponse) Status ¶
func (r ClientGetLabelExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetLabelExplodeArrayResponse) StatusCode ¶
func (r ClientGetLabelExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetLabelExplodeObjectResponse ¶
func ParseGetLabelExplodeObjectResponse ¶
func ParseGetLabelExplodeObjectResponse(rsp *http.Response) (*ClientGetLabelExplodeObjectResponse, error)
ParseGetLabelExplodeObjectResponse parses an HTTP response from a GetLabelExplodeObjectWithResponse call
func (ClientGetLabelExplodeObjectResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetLabelExplodeObjectResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetLabelExplodeObjectResponse) Status ¶
func (r ClientGetLabelExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetLabelExplodeObjectResponse) StatusCode ¶
func (r ClientGetLabelExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetLabelNoExplodeArrayResponse ¶
func ParseGetLabelNoExplodeArrayResponse ¶
func ParseGetLabelNoExplodeArrayResponse(rsp *http.Response) (*ClientGetLabelNoExplodeArrayResponse, error)
ParseGetLabelNoExplodeArrayResponse parses an HTTP response from a GetLabelNoExplodeArrayWithResponse call
func (ClientGetLabelNoExplodeArrayResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetLabelNoExplodeArrayResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetLabelNoExplodeArrayResponse) Status ¶
func (r ClientGetLabelNoExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetLabelNoExplodeArrayResponse) StatusCode ¶
func (r ClientGetLabelNoExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetLabelNoExplodeObjectResponse ¶
func ParseGetLabelNoExplodeObjectResponse ¶
func ParseGetLabelNoExplodeObjectResponse(rsp *http.Response) (*ClientGetLabelNoExplodeObjectResponse, error)
ParseGetLabelNoExplodeObjectResponse parses an HTTP response from a GetLabelNoExplodeObjectWithResponse call
func (ClientGetLabelNoExplodeObjectResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetLabelNoExplodeObjectResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetLabelNoExplodeObjectResponse) Status ¶
func (r ClientGetLabelNoExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetLabelNoExplodeObjectResponse) StatusCode ¶
func (r ClientGetLabelNoExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetMatrixExplodeArrayResponse ¶
func ParseGetMatrixExplodeArrayResponse ¶
func ParseGetMatrixExplodeArrayResponse(rsp *http.Response) (*ClientGetMatrixExplodeArrayResponse, error)
ParseGetMatrixExplodeArrayResponse parses an HTTP response from a GetMatrixExplodeArrayWithResponse call
func (ClientGetMatrixExplodeArrayResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetMatrixExplodeArrayResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetMatrixExplodeArrayResponse) Status ¶
func (r ClientGetMatrixExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetMatrixExplodeArrayResponse) StatusCode ¶
func (r ClientGetMatrixExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetMatrixExplodeObjectResponse ¶
func ParseGetMatrixExplodeObjectResponse ¶
func ParseGetMatrixExplodeObjectResponse(rsp *http.Response) (*ClientGetMatrixExplodeObjectResponse, error)
ParseGetMatrixExplodeObjectResponse parses an HTTP response from a GetMatrixExplodeObjectWithResponse call
func (ClientGetMatrixExplodeObjectResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetMatrixExplodeObjectResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetMatrixExplodeObjectResponse) Status ¶
func (r ClientGetMatrixExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetMatrixExplodeObjectResponse) StatusCode ¶
func (r ClientGetMatrixExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetMatrixNoExplodeArrayResponse ¶
func ParseGetMatrixNoExplodeArrayResponse ¶
func ParseGetMatrixNoExplodeArrayResponse(rsp *http.Response) (*ClientGetMatrixNoExplodeArrayResponse, error)
ParseGetMatrixNoExplodeArrayResponse parses an HTTP response from a GetMatrixNoExplodeArrayWithResponse call
func (ClientGetMatrixNoExplodeArrayResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetMatrixNoExplodeArrayResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetMatrixNoExplodeArrayResponse) Status ¶
func (r ClientGetMatrixNoExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetMatrixNoExplodeArrayResponse) StatusCode ¶
func (r ClientGetMatrixNoExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetMatrixNoExplodeObjectResponse ¶
func ParseGetMatrixNoExplodeObjectResponse ¶
func ParseGetMatrixNoExplodeObjectResponse(rsp *http.Response) (*ClientGetMatrixNoExplodeObjectResponse, error)
ParseGetMatrixNoExplodeObjectResponse parses an HTTP response from a GetMatrixNoExplodeObjectWithResponse call
func (ClientGetMatrixNoExplodeObjectResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetMatrixNoExplodeObjectResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetMatrixNoExplodeObjectResponse) Status ¶
func (r ClientGetMatrixNoExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetMatrixNoExplodeObjectResponse) StatusCode ¶
func (r ClientGetMatrixNoExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetPassThroughResponse ¶
func ParseGetPassThroughResponse ¶
func ParseGetPassThroughResponse(rsp *http.Response) (*ClientGetPassThroughResponse, error)
ParseGetPassThroughResponse parses an HTTP response from a GetPassThroughWithResponse call
func (ClientGetPassThroughResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetPassThroughResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetPassThroughResponse) Status ¶
func (r ClientGetPassThroughResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetPassThroughResponse) StatusCode ¶
func (r ClientGetPassThroughResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetQueryFormResponse ¶
func ParseGetQueryFormResponse ¶
func ParseGetQueryFormResponse(rsp *http.Response) (*ClientGetQueryFormResponse, error)
ParseGetQueryFormResponse parses an HTTP response from a GetQueryFormWithResponse call
func (ClientGetQueryFormResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetQueryFormResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetQueryFormResponse) Status ¶
func (r ClientGetQueryFormResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetQueryFormResponse) StatusCode ¶
func (r ClientGetQueryFormResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetSimpleExplodeArrayResponse ¶
func ParseGetSimpleExplodeArrayResponse ¶
func ParseGetSimpleExplodeArrayResponse(rsp *http.Response) (*ClientGetSimpleExplodeArrayResponse, error)
ParseGetSimpleExplodeArrayResponse parses an HTTP response from a GetSimpleExplodeArrayWithResponse call
func (ClientGetSimpleExplodeArrayResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetSimpleExplodeArrayResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetSimpleExplodeArrayResponse) Status ¶
func (r ClientGetSimpleExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetSimpleExplodeArrayResponse) StatusCode ¶
func (r ClientGetSimpleExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetSimpleExplodeObjectResponse ¶
func ParseGetSimpleExplodeObjectResponse ¶
func ParseGetSimpleExplodeObjectResponse(rsp *http.Response) (*ClientGetSimpleExplodeObjectResponse, error)
ParseGetSimpleExplodeObjectResponse parses an HTTP response from a GetSimpleExplodeObjectWithResponse call
func (ClientGetSimpleExplodeObjectResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetSimpleExplodeObjectResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetSimpleExplodeObjectResponse) Status ¶
func (r ClientGetSimpleExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetSimpleExplodeObjectResponse) StatusCode ¶
func (r ClientGetSimpleExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetSimpleNoExplodeArrayResponse ¶
func ParseGetSimpleNoExplodeArrayResponse ¶
func ParseGetSimpleNoExplodeArrayResponse(rsp *http.Response) (*ClientGetSimpleNoExplodeArrayResponse, error)
ParseGetSimpleNoExplodeArrayResponse parses an HTTP response from a GetSimpleNoExplodeArrayWithResponse call
func (ClientGetSimpleNoExplodeArrayResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetSimpleNoExplodeArrayResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetSimpleNoExplodeArrayResponse) Status ¶
func (r ClientGetSimpleNoExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetSimpleNoExplodeArrayResponse) StatusCode ¶
func (r ClientGetSimpleNoExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetSimpleNoExplodeObjectResponse ¶
func ParseGetSimpleNoExplodeObjectResponse ¶
func ParseGetSimpleNoExplodeObjectResponse(rsp *http.Response) (*ClientGetSimpleNoExplodeObjectResponse, error)
ParseGetSimpleNoExplodeObjectResponse parses an HTTP response from a GetSimpleNoExplodeObjectWithResponse call
func (ClientGetSimpleNoExplodeObjectResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetSimpleNoExplodeObjectResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetSimpleNoExplodeObjectResponse) Status ¶
func (r ClientGetSimpleNoExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetSimpleNoExplodeObjectResponse) StatusCode ¶
func (r ClientGetSimpleNoExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetSimplePrimitiveResponse ¶
func ParseGetSimplePrimitiveResponse ¶
func ParseGetSimplePrimitiveResponse(rsp *http.Response) (*ClientGetSimplePrimitiveResponse, error)
ParseGetSimplePrimitiveResponse parses an HTTP response from a GetSimplePrimitiveWithResponse call
func (ClientGetSimplePrimitiveResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetSimplePrimitiveResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetSimplePrimitiveResponse) Status ¶
func (r ClientGetSimplePrimitiveResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetSimplePrimitiveResponse) StatusCode ¶
func (r ClientGetSimplePrimitiveResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientGetStartingWithNumberResponse ¶
func ParseGetStartingWithNumberResponse ¶
func ParseGetStartingWithNumberResponse(rsp *http.Response) (*ClientGetStartingWithNumberResponse, error)
ParseGetStartingWithNumberResponse parses an HTTP response from a GetStartingWithNumberWithResponse call
func (ClientGetStartingWithNumberResponse) ResponseBody ¶ added in v2.0.8
func (r ClientGetStartingWithNumberResponse) ResponseBody() []byte
ResponseBody returns HTTPResponse.Body as byte array
func (ClientGetStartingWithNumberResponse) Status ¶
func (r ClientGetStartingWithNumberResponse) Status() string
Status returns HTTPResponse.Status
func (ClientGetStartingWithNumberResponse) StatusCode ¶
func (r ClientGetStartingWithNumberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClientInterface ¶
type ClientInterface interface { // GetContentObject request GetContentObject(ctx context.Context, param ComplexObject, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCookie request GetCookie(ctx context.Context, params GetCookieParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetHeader request GetHeader(ctx context.Context, params GetHeaderParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetLabelExplodeArray request GetLabelExplodeArray(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*http.Response, error) // GetLabelExplodeObject request GetLabelExplodeObject(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*http.Response, error) // GetLabelNoExplodeArray request GetLabelNoExplodeArray(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*http.Response, error) // GetLabelNoExplodeObject request GetLabelNoExplodeObject(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*http.Response, error) // GetMatrixExplodeArray request GetMatrixExplodeArray(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*http.Response, error) // GetMatrixExplodeObject request GetMatrixExplodeObject(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*http.Response, error) // GetMatrixNoExplodeArray request GetMatrixNoExplodeArray(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*http.Response, error) // GetMatrixNoExplodeObject request GetMatrixNoExplodeObject(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*http.Response, error) // GetPassThrough request GetPassThrough(ctx context.Context, param string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetDeepObject request GetDeepObject(ctx context.Context, params GetDeepObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetQueryForm request GetQueryForm(ctx context.Context, params GetQueryFormParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSimpleExplodeArray request GetSimpleExplodeArray(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSimpleExplodeObject request GetSimpleExplodeObject(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSimpleNoExplodeArray request GetSimpleNoExplodeArray(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSimpleNoExplodeObject request GetSimpleNoExplodeObject(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSimplePrimitive request GetSimplePrimitive(ctx context.Context, param int32, reqEditors ...RequestEditorFn) (*http.Response, error) // GetStartingWithNumber request GetStartingWithNumber(ctx context.Context, n1param string, 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) GetContentObjectWithResponse ¶
func (c *ClientWithResponses) GetContentObjectWithResponse(ctx context.Context, param ComplexObject, reqEditors ...RequestEditorFn) (*ClientGetContentObjectResponse, error)
GetContentObjectWithResponse request returning *GetContentObjectResponse
func (*ClientWithResponses) GetCookieWithResponse ¶
func (c *ClientWithResponses) GetCookieWithResponse(ctx context.Context, params GetCookieParams, reqEditors ...RequestEditorFn) (*ClientGetCookieResponse, error)
GetCookieWithResponse request returning *GetCookieResponse
func (*ClientWithResponses) GetDeepObjectWithResponse ¶
func (c *ClientWithResponses) GetDeepObjectWithResponse(ctx context.Context, params GetDeepObjectParams, reqEditors ...RequestEditorFn) (*ClientGetDeepObjectResponse, error)
GetDeepObjectWithResponse request returning *GetDeepObjectResponse
func (*ClientWithResponses) GetHeaderWithResponse ¶
func (c *ClientWithResponses) GetHeaderWithResponse(ctx context.Context, params GetHeaderParams, reqEditors ...RequestEditorFn) (*ClientGetHeaderResponse, error)
GetHeaderWithResponse request returning *GetHeaderResponse
func (*ClientWithResponses) GetLabelExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetLabelExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetLabelExplodeArrayResponse, error)
GetLabelExplodeArrayWithResponse request returning *GetLabelExplodeArrayResponse
func (*ClientWithResponses) GetLabelExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetLabelExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetLabelExplodeObjectResponse, error)
GetLabelExplodeObjectWithResponse request returning *GetLabelExplodeObjectResponse
func (*ClientWithResponses) GetLabelNoExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetLabelNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetLabelNoExplodeArrayResponse, error)
GetLabelNoExplodeArrayWithResponse request returning *GetLabelNoExplodeArrayResponse
func (*ClientWithResponses) GetLabelNoExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetLabelNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetLabelNoExplodeObjectResponse, error)
GetLabelNoExplodeObjectWithResponse request returning *GetLabelNoExplodeObjectResponse
func (*ClientWithResponses) GetMatrixExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetMatrixExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*ClientGetMatrixExplodeArrayResponse, error)
GetMatrixExplodeArrayWithResponse request returning *GetMatrixExplodeArrayResponse
func (*ClientWithResponses) GetMatrixExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetMatrixExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*ClientGetMatrixExplodeObjectResponse, error)
GetMatrixExplodeObjectWithResponse request returning *GetMatrixExplodeObjectResponse
func (*ClientWithResponses) GetMatrixNoExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetMatrixNoExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*ClientGetMatrixNoExplodeArrayResponse, error)
GetMatrixNoExplodeArrayWithResponse request returning *GetMatrixNoExplodeArrayResponse
func (*ClientWithResponses) GetMatrixNoExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetMatrixNoExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*ClientGetMatrixNoExplodeObjectResponse, error)
GetMatrixNoExplodeObjectWithResponse request returning *GetMatrixNoExplodeObjectResponse
func (*ClientWithResponses) GetPassThroughWithResponse ¶
func (c *ClientWithResponses) GetPassThroughWithResponse(ctx context.Context, param string, reqEditors ...RequestEditorFn) (*ClientGetPassThroughResponse, error)
GetPassThroughWithResponse request returning *GetPassThroughResponse
func (*ClientWithResponses) GetQueryFormWithResponse ¶
func (c *ClientWithResponses) GetQueryFormWithResponse(ctx context.Context, params GetQueryFormParams, reqEditors ...RequestEditorFn) (*ClientGetQueryFormResponse, error)
GetQueryFormWithResponse request returning *GetQueryFormResponse
func (*ClientWithResponses) GetSimpleExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetSimpleExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetSimpleExplodeArrayResponse, error)
GetSimpleExplodeArrayWithResponse request returning *GetSimpleExplodeArrayResponse
func (*ClientWithResponses) GetSimpleExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetSimpleExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetSimpleExplodeObjectResponse, error)
GetSimpleExplodeObjectWithResponse request returning *GetSimpleExplodeObjectResponse
func (*ClientWithResponses) GetSimpleNoExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetSimpleNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetSimpleNoExplodeArrayResponse, error)
GetSimpleNoExplodeArrayWithResponse request returning *GetSimpleNoExplodeArrayResponse
func (*ClientWithResponses) GetSimpleNoExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetSimpleNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetSimpleNoExplodeObjectResponse, error)
GetSimpleNoExplodeObjectWithResponse request returning *GetSimpleNoExplodeObjectResponse
func (*ClientWithResponses) GetSimplePrimitiveWithResponse ¶
func (c *ClientWithResponses) GetSimplePrimitiveWithResponse(ctx context.Context, param int32, reqEditors ...RequestEditorFn) (*ClientGetSimplePrimitiveResponse, error)
GetSimplePrimitiveWithResponse request returning *GetSimplePrimitiveResponse
func (*ClientWithResponses) GetStartingWithNumberWithResponse ¶
func (c *ClientWithResponses) GetStartingWithNumberWithResponse(ctx context.Context, n1param string, reqEditors ...RequestEditorFn) (*ClientGetStartingWithNumberResponse, error)
GetStartingWithNumberWithResponse request returning *GetStartingWithNumberResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetContentObject request GetContentObjectWithResponse(ctx context.Context, param ComplexObject, reqEditors ...RequestEditorFn) (*ClientGetContentObjectResponse, error) // GetCookie request GetCookieWithResponse(ctx context.Context, params GetCookieParams, reqEditors ...RequestEditorFn) (*ClientGetCookieResponse, error) // GetHeader request GetHeaderWithResponse(ctx context.Context, params GetHeaderParams, reqEditors ...RequestEditorFn) (*ClientGetHeaderResponse, error) // GetLabelExplodeArray request GetLabelExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetLabelExplodeArrayResponse, error) // GetLabelExplodeObject request GetLabelExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetLabelExplodeObjectResponse, error) // GetLabelNoExplodeArray request GetLabelNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetLabelNoExplodeArrayResponse, error) // GetLabelNoExplodeObject request GetLabelNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetLabelNoExplodeObjectResponse, error) // GetMatrixExplodeArray request GetMatrixExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*ClientGetMatrixExplodeArrayResponse, error) // GetMatrixExplodeObject request GetMatrixExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*ClientGetMatrixExplodeObjectResponse, error) // GetMatrixNoExplodeArray request GetMatrixNoExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*ClientGetMatrixNoExplodeArrayResponse, error) // GetMatrixNoExplodeObject request GetMatrixNoExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*ClientGetMatrixNoExplodeObjectResponse, error) // GetPassThrough request GetPassThroughWithResponse(ctx context.Context, param string, reqEditors ...RequestEditorFn) (*ClientGetPassThroughResponse, error) // GetDeepObject request GetDeepObjectWithResponse(ctx context.Context, params GetDeepObjectParams, reqEditors ...RequestEditorFn) (*ClientGetDeepObjectResponse, error) // GetQueryForm request GetQueryFormWithResponse(ctx context.Context, params GetQueryFormParams, reqEditors ...RequestEditorFn) (*ClientGetQueryFormResponse, error) // GetSimpleExplodeArray request GetSimpleExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetSimpleExplodeArrayResponse, error) // GetSimpleExplodeObject request GetSimpleExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetSimpleExplodeObjectResponse, error) // GetSimpleNoExplodeArray request GetSimpleNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*ClientGetSimpleNoExplodeArrayResponse, error) // GetSimpleNoExplodeObject request GetSimpleNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*ClientGetSimpleNoExplodeObjectResponse, error) // GetSimplePrimitive request GetSimplePrimitiveWithResponse(ctx context.Context, param int32, reqEditors ...RequestEditorFn) (*ClientGetSimplePrimitiveResponse, error) // GetStartingWithNumber request GetStartingWithNumberWithResponse(ctx context.Context, n1param string, reqEditors ...RequestEditorFn) (*ClientGetStartingWithNumberResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ComplexObject ¶
type ComplexObject struct { Id int `json:"Id" validate:"required"` IsAdmin bool `json:"IsAdmin" validate:"required"` Object Object `json:"Object" validate:"required"` }
ComplexObject defines model for ComplexObject.
type EchoRouter ¶
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type GetCookieParams ¶
type GetCookieParams struct { // primitive P *int32 `form:"p,omitempty" json:"p,omitempty"` // primitive Ep *int32 `form:"ep,omitempty" json:"ep,omitempty"` // exploded array Ea []int32 `form:"ea,omitempty" json:"ea,omitempty"` // array A []int32 `form:"a,omitempty" json:"a,omitempty"` // exploded object Eo *Object `form:"eo,omitempty" json:"eo,omitempty"` // object O *Object `form:"o,omitempty" json:"o,omitempty"` // complex object Co *ComplexObject `form:"co,omitempty" json:"co,omitempty"` // name starting with number N1s *string `form:"1s,omitempty" json:"1s,omitempty"` }
GetCookieParams defines parameters for GetCookie.
type GetDeepObjectParams ¶
type GetDeepObjectParams struct { // deep object DeepObj ComplexObject `json:"deepObj" validate:"required"` }
GetDeepObjectParams defines parameters for GetDeepObject.
type GetHeaderParams ¶
type GetHeaderParams struct { // primitive XPrimitive *int32 `json:"X-Primitive,omitempty"` // primitive XPrimitiveExploded *int32 `json:"X-Primitive-Exploded,omitempty"` // exploded array XArrayExploded []int32 `json:"X-Array-Exploded,omitempty"` // array XArray []int32 `json:"X-Array,omitempty"` // exploded object XObjectExploded *Object `json:"X-Object-Exploded,omitempty"` // object XObject *Object `json:"X-Object,omitempty"` // complex object XComplexObject *ComplexObject `json:"X-Complex-Object,omitempty"` // name starting with number N1StartingWithNumber *string `json:"1-Starting-With-Number,omitempty"` }
GetHeaderParams defines parameters for GetHeader.
type GetQueryFormParams ¶
type GetQueryFormParams struct { // exploded array Ea []int32 `form:"ea,omitempty" json:"ea,omitempty"` // array A []int32 `form:"a,omitempty" json:"a,omitempty"` // exploded object Eo *Object `form:"eo,omitempty" json:"eo,omitempty"` // object O *Object `form:"o,omitempty" json:"o,omitempty"` // exploded primitive Ep *int32 `form:"ep,omitempty" json:"ep,omitempty"` // primitive P *int32 `form:"p,omitempty" json:"p,omitempty"` // primitive string Ps *string `form:"ps,omitempty" json:"ps,omitempty"` // complex object Co *ComplexObject `form:"co,omitempty" json:"co,omitempty"` // name starting with number N1s *string `form:"1s,omitempty" json:"1s,omitempty"` }
GetQueryFormParams defines parameters for GetQueryForm.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Object ¶
type Object struct { FirstName string `json:"firstName" validate:"required"` Role string `json:"role" validate:"required"` Tags []string `json:"tags,omitempty"` }
Object defines model for Object.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface { // (GET /contentObject/{param}) GetContentObject(ctx echo.Context, param ComplexObject) (code int, err error) // (GET /cookie) GetCookie(ctx echo.Context, params GetCookieParams) (code int, err error) // (GET /header) GetHeader(ctx echo.Context, params GetHeaderParams) (code int, err error) // (GET /labelExplodeArray/{.param*}) GetLabelExplodeArray(ctx echo.Context, param []int32) (code int, err error) // (GET /labelExplodeObject/{.param*}) GetLabelExplodeObject(ctx echo.Context, param Object) (code int, err error) // (GET /labelNoExplodeArray/{.param}) GetLabelNoExplodeArray(ctx echo.Context, param []int32) (code int, err error) // (GET /labelNoExplodeObject/{.param}) GetLabelNoExplodeObject(ctx echo.Context, param Object) (code int, err error) // (GET /matrixExplodeArray/{.id*}) GetMatrixExplodeArray(ctx echo.Context, id []int32) (code int, err error) // (GET /matrixExplodeObject/{.id*}) GetMatrixExplodeObject(ctx echo.Context, id Object) (code int, err error) // (GET /matrixNoExplodeArray/{.id}) GetMatrixNoExplodeArray(ctx echo.Context, id []int32) (code int, err error) // (GET /matrixNoExplodeObject/{.id}) GetMatrixNoExplodeObject(ctx echo.Context, id Object) (code int, err error) // (GET /passThrough/{param}) GetPassThrough(ctx echo.Context, param string) (code int, err error) // (GET /queryDeepObject) GetDeepObject(ctx echo.Context, params GetDeepObjectParams) (code int, err error) // (GET /queryForm) GetQueryForm(ctx echo.Context, params GetQueryFormParams) (code int, err error) // (GET /simpleExplodeArray/{param*}) GetSimpleExplodeArray(ctx echo.Context, param []int32) (code int, err error) // (GET /simpleExplodeObject/{param*}) GetSimpleExplodeObject(ctx echo.Context, param Object) (code int, err error) // (GET /simpleNoExplodeArray/{param}) GetSimpleNoExplodeArray(ctx echo.Context, param []int32) (code int, err error) // (GET /simpleNoExplodeObject/{param}) GetSimpleNoExplodeObject(ctx echo.Context, param Object) (code int, err error) // (GET /simplePrimitive/{param}) GetSimplePrimitive(ctx echo.Context, param int32) (code int, err error) // (GET /startingWithNumber/{1param}) GetStartingWithNumber(ctx echo.Context, n1param string) (code int, err error) }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) GetContentObject ¶
func (w *ServerInterfaceWrapper) GetContentObject(ctx echo.Context) error
GetContentObject converts echo context to params.
func (*ServerInterfaceWrapper) GetCookie ¶
func (w *ServerInterfaceWrapper) GetCookie(ctx echo.Context) error
GetCookie converts echo context to params.
func (*ServerInterfaceWrapper) GetDeepObject ¶
func (w *ServerInterfaceWrapper) GetDeepObject(ctx echo.Context) error
GetDeepObject converts echo context to params.
func (*ServerInterfaceWrapper) GetHeader ¶
func (w *ServerInterfaceWrapper) GetHeader(ctx echo.Context) error
GetHeader converts echo context to params.
func (*ServerInterfaceWrapper) GetLabelExplodeArray ¶
func (w *ServerInterfaceWrapper) GetLabelExplodeArray(ctx echo.Context) error
GetLabelExplodeArray converts echo context to params.
func (*ServerInterfaceWrapper) GetLabelExplodeObject ¶
func (w *ServerInterfaceWrapper) GetLabelExplodeObject(ctx echo.Context) error
GetLabelExplodeObject converts echo context to params.
func (*ServerInterfaceWrapper) GetLabelNoExplodeArray ¶
func (w *ServerInterfaceWrapper) GetLabelNoExplodeArray(ctx echo.Context) error
GetLabelNoExplodeArray converts echo context to params.
func (*ServerInterfaceWrapper) GetLabelNoExplodeObject ¶
func (w *ServerInterfaceWrapper) GetLabelNoExplodeObject(ctx echo.Context) error
GetLabelNoExplodeObject converts echo context to params.
func (*ServerInterfaceWrapper) GetMatrixExplodeArray ¶
func (w *ServerInterfaceWrapper) GetMatrixExplodeArray(ctx echo.Context) error
GetMatrixExplodeArray converts echo context to params.
func (*ServerInterfaceWrapper) GetMatrixExplodeObject ¶
func (w *ServerInterfaceWrapper) GetMatrixExplodeObject(ctx echo.Context) error
GetMatrixExplodeObject converts echo context to params.
func (*ServerInterfaceWrapper) GetMatrixNoExplodeArray ¶
func (w *ServerInterfaceWrapper) GetMatrixNoExplodeArray(ctx echo.Context) error
GetMatrixNoExplodeArray converts echo context to params.
func (*ServerInterfaceWrapper) GetMatrixNoExplodeObject ¶
func (w *ServerInterfaceWrapper) GetMatrixNoExplodeObject(ctx echo.Context) error
GetMatrixNoExplodeObject converts echo context to params.
func (*ServerInterfaceWrapper) GetPassThrough ¶
func (w *ServerInterfaceWrapper) GetPassThrough(ctx echo.Context) error
GetPassThrough converts echo context to params.
func (*ServerInterfaceWrapper) GetQueryForm ¶
func (w *ServerInterfaceWrapper) GetQueryForm(ctx echo.Context) error
GetQueryForm converts echo context to params.
func (*ServerInterfaceWrapper) GetSimpleExplodeArray ¶
func (w *ServerInterfaceWrapper) GetSimpleExplodeArray(ctx echo.Context) error
GetSimpleExplodeArray converts echo context to params.
func (*ServerInterfaceWrapper) GetSimpleExplodeObject ¶
func (w *ServerInterfaceWrapper) GetSimpleExplodeObject(ctx echo.Context) error
GetSimpleExplodeObject converts echo context to params.
func (*ServerInterfaceWrapper) GetSimpleNoExplodeArray ¶
func (w *ServerInterfaceWrapper) GetSimpleNoExplodeArray(ctx echo.Context) error
GetSimpleNoExplodeArray converts echo context to params.
func (*ServerInterfaceWrapper) GetSimpleNoExplodeObject ¶
func (w *ServerInterfaceWrapper) GetSimpleNoExplodeObject(ctx echo.Context) error
GetSimpleNoExplodeObject converts echo context to params.
func (*ServerInterfaceWrapper) GetSimplePrimitive ¶
func (w *ServerInterfaceWrapper) GetSimplePrimitive(ctx echo.Context) error
GetSimplePrimitive converts echo context to params.
func (*ServerInterfaceWrapper) GetStartingWithNumber ¶
func (w *ServerInterfaceWrapper) GetStartingWithNumber(ctx echo.Context) error
GetStartingWithNumber converts echo context to params.