Documentation
¶
Overview ¶
Package parameters provides primitives to interact with the openapi HTTP API.
Code generated by github.com/discord-gophers/goapi-gen version (devel) DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface, opts ...ServerOption) http.Handler
- 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 PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- 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, ...) (*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 ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetContentObjectWithResponse(ctx context.Context, param ComplexObject, reqEditors ...RequestEditorFn) (*GetContentObjectResponse, error)
- func (c *ClientWithResponses) GetCookieWithResponse(ctx context.Context, params *GetCookieParams, reqEditors ...RequestEditorFn) (*GetCookieResponse, error)
- func (c *ClientWithResponses) GetDeepObjectWithResponse(ctx context.Context, params *GetDeepObjectParams, ...) (*GetDeepObjectResponse, error)
- func (c *ClientWithResponses) GetHeaderWithResponse(ctx context.Context, params *GetHeaderParams, reqEditors ...RequestEditorFn) (*GetHeaderResponse, error)
- func (c *ClientWithResponses) GetLabelExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetLabelExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetLabelExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetLabelExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetLabelNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetLabelNoExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetLabelNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetLabelNoExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetMatrixExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*GetMatrixExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetMatrixExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*GetMatrixExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetMatrixNoExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*GetMatrixNoExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetMatrixNoExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*GetMatrixNoExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetPassThroughWithResponse(ctx context.Context, param string, reqEditors ...RequestEditorFn) (*GetPassThroughResponse, error)
- func (c *ClientWithResponses) GetQueryFormWithResponse(ctx context.Context, params *GetQueryFormParams, reqEditors ...RequestEditorFn) (*GetQueryFormResponse, error)
- func (c *ClientWithResponses) GetSimpleExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetSimpleExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetSimpleExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetSimpleExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetSimpleNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetSimpleNoExplodeArrayResponse, error)
- func (c *ClientWithResponses) GetSimpleNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetSimpleNoExplodeObjectResponse, error)
- func (c *ClientWithResponses) GetSimplePrimitiveWithResponse(ctx context.Context, param int32, reqEditors ...RequestEditorFn) (*GetSimplePrimitiveResponse, error)
- func (c *ClientWithResponses) GetStartingWithNumberWithResponse(ctx context.Context, n1param string, reqEditors ...RequestEditorFn) (*GetStartingWithNumberResponse, error)
- type ClientWithResponsesInterface
- type ComplexObject
- type GetContentObjectResponse
- type GetCookieParams
- type GetCookieResponse
- type GetDeepObjectParams
- type GetDeepObjectResponse
- type GetHeaderParams
- type GetHeaderResponse
- type GetLabelExplodeArrayResponse
- type GetLabelExplodeObjectResponse
- type GetLabelNoExplodeArrayResponse
- type GetLabelNoExplodeObjectResponse
- type GetMatrixExplodeArrayResponse
- type GetMatrixExplodeObjectResponse
- type GetMatrixNoExplodeArrayResponse
- type GetMatrixNoExplodeObjectResponse
- type GetPassThroughResponse
- type GetQueryFormParams
- type GetQueryFormResponse
- type GetSimpleExplodeArrayResponse
- type GetSimpleExplodeObjectResponse
- type GetSimpleNoExplodeArrayResponse
- type GetSimpleNoExplodeObjectResponse
- type GetSimplePrimitiveResponse
- type GetStartingWithNumberResponse
- type HttpRequestDoer
- type InvalidParamFormatError
- type Object
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type Response
- func (resp *Response) ContentType(contentType string) *Response
- func (resp *Response) MarshalJSON() ([]byte, error)
- func (resp *Response) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (resp *Response) Render(w http.ResponseWriter, r *http.Request) error
- func (resp *Response) Status(statusCode int) *Response
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) GetContentObject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCookie(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDeepObject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHeader(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLabelExplodeArray(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLabelExplodeObject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLabelNoExplodeArray(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLabelNoExplodeObject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMatrixExplodeArray(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMatrixExplodeObject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMatrixNoExplodeArray(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMatrixNoExplodeObject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetPassThrough(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetQueryForm(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSimpleExplodeArray(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSimpleExplodeObject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSimpleNoExplodeArray(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSimpleNoExplodeObject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSimplePrimitive(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetStartingWithNumber(w http.ResponseWriter, r *http.Request)
- type ServerOption
- func WithErrorHandler(handler func(w http.ResponseWriter, r *http.Request, err error)) ServerOption
- func WithMiddleware(key string, middleware func(http.Handler) http.Handler) ServerOption
- func WithMiddlewares(middlewares map[string]func(http.Handler) http.Handler) ServerOption
- func WithRouter(r chi.Router) ServerOption
- func WithServerBaseURL(url string) ServerOption
- type ServerOptions
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
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 Handler ¶
func Handler(si ServerInterface, opts ...ServerOption) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
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
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 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 WithClientBaseURL ¶
func WithClientBaseURL(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) GetContentObjectWithResponse ¶
func (c *ClientWithResponses) GetContentObjectWithResponse(ctx context.Context, param ComplexObject, reqEditors ...RequestEditorFn) (*GetContentObjectResponse, error)
GetContentObjectWithResponse request returning *GetContentObjectResponse
func (*ClientWithResponses) GetCookieWithResponse ¶
func (c *ClientWithResponses) GetCookieWithResponse(ctx context.Context, params *GetCookieParams, reqEditors ...RequestEditorFn) (*GetCookieResponse, error)
GetCookieWithResponse request returning *GetCookieResponse
func (*ClientWithResponses) GetDeepObjectWithResponse ¶
func (c *ClientWithResponses) GetDeepObjectWithResponse(ctx context.Context, params *GetDeepObjectParams, reqEditors ...RequestEditorFn) (*GetDeepObjectResponse, error)
GetDeepObjectWithResponse request returning *GetDeepObjectResponse
func (*ClientWithResponses) GetHeaderWithResponse ¶
func (c *ClientWithResponses) GetHeaderWithResponse(ctx context.Context, params *GetHeaderParams, reqEditors ...RequestEditorFn) (*GetHeaderResponse, error)
GetHeaderWithResponse request returning *GetHeaderResponse
func (*ClientWithResponses) GetLabelExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetLabelExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetLabelExplodeArrayResponse, error)
GetLabelExplodeArrayWithResponse request returning *GetLabelExplodeArrayResponse
func (*ClientWithResponses) GetLabelExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetLabelExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetLabelExplodeObjectResponse, error)
GetLabelExplodeObjectWithResponse request returning *GetLabelExplodeObjectResponse
func (*ClientWithResponses) GetLabelNoExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetLabelNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetLabelNoExplodeArrayResponse, error)
GetLabelNoExplodeArrayWithResponse request returning *GetLabelNoExplodeArrayResponse
func (*ClientWithResponses) GetLabelNoExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetLabelNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetLabelNoExplodeObjectResponse, error)
GetLabelNoExplodeObjectWithResponse request returning *GetLabelNoExplodeObjectResponse
func (*ClientWithResponses) GetMatrixExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetMatrixExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*GetMatrixExplodeArrayResponse, error)
GetMatrixExplodeArrayWithResponse request returning *GetMatrixExplodeArrayResponse
func (*ClientWithResponses) GetMatrixExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetMatrixExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*GetMatrixExplodeObjectResponse, error)
GetMatrixExplodeObjectWithResponse request returning *GetMatrixExplodeObjectResponse
func (*ClientWithResponses) GetMatrixNoExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetMatrixNoExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*GetMatrixNoExplodeArrayResponse, error)
GetMatrixNoExplodeArrayWithResponse request returning *GetMatrixNoExplodeArrayResponse
func (*ClientWithResponses) GetMatrixNoExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetMatrixNoExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*GetMatrixNoExplodeObjectResponse, error)
GetMatrixNoExplodeObjectWithResponse request returning *GetMatrixNoExplodeObjectResponse
func (*ClientWithResponses) GetPassThroughWithResponse ¶
func (c *ClientWithResponses) GetPassThroughWithResponse(ctx context.Context, param string, reqEditors ...RequestEditorFn) (*GetPassThroughResponse, error)
GetPassThroughWithResponse request returning *GetPassThroughResponse
func (*ClientWithResponses) GetQueryFormWithResponse ¶
func (c *ClientWithResponses) GetQueryFormWithResponse(ctx context.Context, params *GetQueryFormParams, reqEditors ...RequestEditorFn) (*GetQueryFormResponse, error)
GetQueryFormWithResponse request returning *GetQueryFormResponse
func (*ClientWithResponses) GetSimpleExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetSimpleExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetSimpleExplodeArrayResponse, error)
GetSimpleExplodeArrayWithResponse request returning *GetSimpleExplodeArrayResponse
func (*ClientWithResponses) GetSimpleExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetSimpleExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetSimpleExplodeObjectResponse, error)
GetSimpleExplodeObjectWithResponse request returning *GetSimpleExplodeObjectResponse
func (*ClientWithResponses) GetSimpleNoExplodeArrayWithResponse ¶
func (c *ClientWithResponses) GetSimpleNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetSimpleNoExplodeArrayResponse, error)
GetSimpleNoExplodeArrayWithResponse request returning *GetSimpleNoExplodeArrayResponse
func (*ClientWithResponses) GetSimpleNoExplodeObjectWithResponse ¶
func (c *ClientWithResponses) GetSimpleNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetSimpleNoExplodeObjectResponse, error)
GetSimpleNoExplodeObjectWithResponse request returning *GetSimpleNoExplodeObjectResponse
func (*ClientWithResponses) GetSimplePrimitiveWithResponse ¶
func (c *ClientWithResponses) GetSimplePrimitiveWithResponse(ctx context.Context, param int32, reqEditors ...RequestEditorFn) (*GetSimplePrimitiveResponse, error)
GetSimplePrimitiveWithResponse request returning *GetSimplePrimitiveResponse
func (*ClientWithResponses) GetStartingWithNumberWithResponse ¶
func (c *ClientWithResponses) GetStartingWithNumberWithResponse(ctx context.Context, n1param string, reqEditors ...RequestEditorFn) (*GetStartingWithNumberResponse, error)
GetStartingWithNumberWithResponse request returning *GetStartingWithNumberResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetContentObject request
GetContentObjectWithResponse(ctx context.Context, param ComplexObject, reqEditors ...RequestEditorFn) (*GetContentObjectResponse, error)
// GetCookie request
GetCookieWithResponse(ctx context.Context, params *GetCookieParams, reqEditors ...RequestEditorFn) (*GetCookieResponse, error)
// GetHeader request
GetHeaderWithResponse(ctx context.Context, params *GetHeaderParams, reqEditors ...RequestEditorFn) (*GetHeaderResponse, error)
// GetLabelExplodeArray request
GetLabelExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetLabelExplodeArrayResponse, error)
// GetLabelExplodeObject request
GetLabelExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetLabelExplodeObjectResponse, error)
// GetLabelNoExplodeArray request
GetLabelNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetLabelNoExplodeArrayResponse, error)
// GetLabelNoExplodeObject request
GetLabelNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetLabelNoExplodeObjectResponse, error)
// GetMatrixExplodeArray request
GetMatrixExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*GetMatrixExplodeArrayResponse, error)
// GetMatrixExplodeObject request
GetMatrixExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*GetMatrixExplodeObjectResponse, error)
// GetMatrixNoExplodeArray request
GetMatrixNoExplodeArrayWithResponse(ctx context.Context, id []int32, reqEditors ...RequestEditorFn) (*GetMatrixNoExplodeArrayResponse, error)
// GetMatrixNoExplodeObject request
GetMatrixNoExplodeObjectWithResponse(ctx context.Context, id Object, reqEditors ...RequestEditorFn) (*GetMatrixNoExplodeObjectResponse, error)
// GetPassThrough request
GetPassThroughWithResponse(ctx context.Context, param string, reqEditors ...RequestEditorFn) (*GetPassThroughResponse, error)
// GetDeepObject request
GetDeepObjectWithResponse(ctx context.Context, params *GetDeepObjectParams, reqEditors ...RequestEditorFn) (*GetDeepObjectResponse, error)
// GetQueryForm request
GetQueryFormWithResponse(ctx context.Context, params *GetQueryFormParams, reqEditors ...RequestEditorFn) (*GetQueryFormResponse, error)
// GetSimpleExplodeArray request
GetSimpleExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetSimpleExplodeArrayResponse, error)
// GetSimpleExplodeObject request
GetSimpleExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetSimpleExplodeObjectResponse, error)
// GetSimpleNoExplodeArray request
GetSimpleNoExplodeArrayWithResponse(ctx context.Context, param []int32, reqEditors ...RequestEditorFn) (*GetSimpleNoExplodeArrayResponse, error)
// GetSimpleNoExplodeObject request
GetSimpleNoExplodeObjectWithResponse(ctx context.Context, param Object, reqEditors ...RequestEditorFn) (*GetSimpleNoExplodeObjectResponse, error)
// GetSimplePrimitive request
GetSimplePrimitiveWithResponse(ctx context.Context, param int32, reqEditors ...RequestEditorFn) (*GetSimplePrimitiveResponse, error)
// GetStartingWithNumber request
GetStartingWithNumberWithResponse(ctx context.Context, n1param string, reqEditors ...RequestEditorFn) (*GetStartingWithNumberResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ComplexObject ¶
type ComplexObject struct {
ID int `json:"Id"`
IsAdmin bool `json:"IsAdmin"`
Object Object `json:"Object"`
}
ComplexObject defines model for ComplexObject.
type GetContentObjectResponse ¶
func ParseGetContentObjectResponse ¶
func ParseGetContentObjectResponse(rsp *http.Response) (*GetContentObjectResponse, error)
ParseGetContentObjectResponse parses an HTTP response from a GetContentObjectWithResponse call
func (GetContentObjectResponse) Status ¶
func (r GetContentObjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetContentObjectResponse) StatusCode ¶
func (r GetContentObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCookieParams ¶
type GetCookieParams struct {
// primitive
P *int32 `json:"p,omitempty"`
// primitive
Ep *int32 `json:"ep,omitempty"`
// exploded array
Ea []int32 `json:"ea,omitempty"`
// array
A []int32 `json:"a,omitempty"`
// exploded object
Eo *Object `json:"eo,omitempty"`
// object
O *Object `json:"o,omitempty"`
// complex object
Co *ComplexObject `json:"co,omitempty"`
// name starting with number
N1s *string `json:"1s,omitempty"`
}
GetCookieParams defines parameters for GetCookie.
type GetCookieResponse ¶
func ParseGetCookieResponse ¶
func ParseGetCookieResponse(rsp *http.Response) (*GetCookieResponse, error)
ParseGetCookieResponse parses an HTTP response from a GetCookieWithResponse call
func (GetCookieResponse) Status ¶
func (r GetCookieResponse) Status() string
Status returns HTTPResponse.Status
func (GetCookieResponse) StatusCode ¶
func (r GetCookieResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDeepObjectParams ¶
type GetDeepObjectParams struct {
// deep object
DeepObj ComplexObject `json:"deepObj"`
}
GetDeepObjectParams defines parameters for GetDeepObject.
type GetDeepObjectResponse ¶
func ParseGetDeepObjectResponse ¶
func ParseGetDeepObjectResponse(rsp *http.Response) (*GetDeepObjectResponse, error)
ParseGetDeepObjectResponse parses an HTTP response from a GetDeepObjectWithResponse call
func (GetDeepObjectResponse) Status ¶
func (r GetDeepObjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetDeepObjectResponse) StatusCode ¶
func (r GetDeepObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 GetHeaderResponse ¶
func ParseGetHeaderResponse ¶
func ParseGetHeaderResponse(rsp *http.Response) (*GetHeaderResponse, error)
ParseGetHeaderResponse parses an HTTP response from a GetHeaderWithResponse call
func (GetHeaderResponse) Status ¶
func (r GetHeaderResponse) Status() string
Status returns HTTPResponse.Status
func (GetHeaderResponse) StatusCode ¶
func (r GetHeaderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLabelExplodeArrayResponse ¶
func ParseGetLabelExplodeArrayResponse ¶
func ParseGetLabelExplodeArrayResponse(rsp *http.Response) (*GetLabelExplodeArrayResponse, error)
ParseGetLabelExplodeArrayResponse parses an HTTP response from a GetLabelExplodeArrayWithResponse call
func (GetLabelExplodeArrayResponse) Status ¶
func (r GetLabelExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (GetLabelExplodeArrayResponse) StatusCode ¶
func (r GetLabelExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLabelExplodeObjectResponse ¶
func ParseGetLabelExplodeObjectResponse ¶
func ParseGetLabelExplodeObjectResponse(rsp *http.Response) (*GetLabelExplodeObjectResponse, error)
ParseGetLabelExplodeObjectResponse parses an HTTP response from a GetLabelExplodeObjectWithResponse call
func (GetLabelExplodeObjectResponse) Status ¶
func (r GetLabelExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetLabelExplodeObjectResponse) StatusCode ¶
func (r GetLabelExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLabelNoExplodeArrayResponse ¶
func ParseGetLabelNoExplodeArrayResponse ¶
func ParseGetLabelNoExplodeArrayResponse(rsp *http.Response) (*GetLabelNoExplodeArrayResponse, error)
ParseGetLabelNoExplodeArrayResponse parses an HTTP response from a GetLabelNoExplodeArrayWithResponse call
func (GetLabelNoExplodeArrayResponse) Status ¶
func (r GetLabelNoExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (GetLabelNoExplodeArrayResponse) StatusCode ¶
func (r GetLabelNoExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLabelNoExplodeObjectResponse ¶
func ParseGetLabelNoExplodeObjectResponse ¶
func ParseGetLabelNoExplodeObjectResponse(rsp *http.Response) (*GetLabelNoExplodeObjectResponse, error)
ParseGetLabelNoExplodeObjectResponse parses an HTTP response from a GetLabelNoExplodeObjectWithResponse call
func (GetLabelNoExplodeObjectResponse) Status ¶
func (r GetLabelNoExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetLabelNoExplodeObjectResponse) StatusCode ¶
func (r GetLabelNoExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMatrixExplodeArrayResponse ¶
func ParseGetMatrixExplodeArrayResponse ¶
func ParseGetMatrixExplodeArrayResponse(rsp *http.Response) (*GetMatrixExplodeArrayResponse, error)
ParseGetMatrixExplodeArrayResponse parses an HTTP response from a GetMatrixExplodeArrayWithResponse call
func (GetMatrixExplodeArrayResponse) Status ¶
func (r GetMatrixExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (GetMatrixExplodeArrayResponse) StatusCode ¶
func (r GetMatrixExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMatrixExplodeObjectResponse ¶
func ParseGetMatrixExplodeObjectResponse ¶
func ParseGetMatrixExplodeObjectResponse(rsp *http.Response) (*GetMatrixExplodeObjectResponse, error)
ParseGetMatrixExplodeObjectResponse parses an HTTP response from a GetMatrixExplodeObjectWithResponse call
func (GetMatrixExplodeObjectResponse) Status ¶
func (r GetMatrixExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetMatrixExplodeObjectResponse) StatusCode ¶
func (r GetMatrixExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMatrixNoExplodeArrayResponse ¶
func ParseGetMatrixNoExplodeArrayResponse ¶
func ParseGetMatrixNoExplodeArrayResponse(rsp *http.Response) (*GetMatrixNoExplodeArrayResponse, error)
ParseGetMatrixNoExplodeArrayResponse parses an HTTP response from a GetMatrixNoExplodeArrayWithResponse call
func (GetMatrixNoExplodeArrayResponse) Status ¶
func (r GetMatrixNoExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (GetMatrixNoExplodeArrayResponse) StatusCode ¶
func (r GetMatrixNoExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMatrixNoExplodeObjectResponse ¶
func ParseGetMatrixNoExplodeObjectResponse ¶
func ParseGetMatrixNoExplodeObjectResponse(rsp *http.Response) (*GetMatrixNoExplodeObjectResponse, error)
ParseGetMatrixNoExplodeObjectResponse parses an HTTP response from a GetMatrixNoExplodeObjectWithResponse call
func (GetMatrixNoExplodeObjectResponse) Status ¶
func (r GetMatrixNoExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetMatrixNoExplodeObjectResponse) StatusCode ¶
func (r GetMatrixNoExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPassThroughResponse ¶
func ParseGetPassThroughResponse ¶
func ParseGetPassThroughResponse(rsp *http.Response) (*GetPassThroughResponse, error)
ParseGetPassThroughResponse parses an HTTP response from a GetPassThroughWithResponse call
func (GetPassThroughResponse) Status ¶
func (r GetPassThroughResponse) Status() string
Status returns HTTPResponse.Status
func (GetPassThroughResponse) StatusCode ¶
func (r GetPassThroughResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetQueryFormParams ¶
type GetQueryFormParams struct {
// exploded array
Ea []int32 `json:"ea,omitempty"`
// array
A []int32 `json:"a,omitempty"`
// exploded object
Eo *Object `json:"eo,omitempty"`
// object
O *Object `json:"o,omitempty"`
// exploded primitive
Ep *int32 `json:"ep,omitempty"`
// primitive
P *int32 `json:"p,omitempty"`
// primitive string
Ps *string `json:"ps,omitempty"`
// complex object
Co *ComplexObject `json:"co,omitempty"`
// name starting with number
N1s *string `json:"1s,omitempty"`
}
GetQueryFormParams defines parameters for GetQueryForm.
type GetQueryFormResponse ¶
func ParseGetQueryFormResponse ¶
func ParseGetQueryFormResponse(rsp *http.Response) (*GetQueryFormResponse, error)
ParseGetQueryFormResponse parses an HTTP response from a GetQueryFormWithResponse call
func (GetQueryFormResponse) Status ¶
func (r GetQueryFormResponse) Status() string
Status returns HTTPResponse.Status
func (GetQueryFormResponse) StatusCode ¶
func (r GetQueryFormResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSimpleExplodeArrayResponse ¶
func ParseGetSimpleExplodeArrayResponse ¶
func ParseGetSimpleExplodeArrayResponse(rsp *http.Response) (*GetSimpleExplodeArrayResponse, error)
ParseGetSimpleExplodeArrayResponse parses an HTTP response from a GetSimpleExplodeArrayWithResponse call
func (GetSimpleExplodeArrayResponse) Status ¶
func (r GetSimpleExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (GetSimpleExplodeArrayResponse) StatusCode ¶
func (r GetSimpleExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSimpleExplodeObjectResponse ¶
func ParseGetSimpleExplodeObjectResponse ¶
func ParseGetSimpleExplodeObjectResponse(rsp *http.Response) (*GetSimpleExplodeObjectResponse, error)
ParseGetSimpleExplodeObjectResponse parses an HTTP response from a GetSimpleExplodeObjectWithResponse call
func (GetSimpleExplodeObjectResponse) Status ¶
func (r GetSimpleExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetSimpleExplodeObjectResponse) StatusCode ¶
func (r GetSimpleExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSimpleNoExplodeArrayResponse ¶
func ParseGetSimpleNoExplodeArrayResponse ¶
func ParseGetSimpleNoExplodeArrayResponse(rsp *http.Response) (*GetSimpleNoExplodeArrayResponse, error)
ParseGetSimpleNoExplodeArrayResponse parses an HTTP response from a GetSimpleNoExplodeArrayWithResponse call
func (GetSimpleNoExplodeArrayResponse) Status ¶
func (r GetSimpleNoExplodeArrayResponse) Status() string
Status returns HTTPResponse.Status
func (GetSimpleNoExplodeArrayResponse) StatusCode ¶
func (r GetSimpleNoExplodeArrayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSimpleNoExplodeObjectResponse ¶
func ParseGetSimpleNoExplodeObjectResponse ¶
func ParseGetSimpleNoExplodeObjectResponse(rsp *http.Response) (*GetSimpleNoExplodeObjectResponse, error)
ParseGetSimpleNoExplodeObjectResponse parses an HTTP response from a GetSimpleNoExplodeObjectWithResponse call
func (GetSimpleNoExplodeObjectResponse) Status ¶
func (r GetSimpleNoExplodeObjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetSimpleNoExplodeObjectResponse) StatusCode ¶
func (r GetSimpleNoExplodeObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSimplePrimitiveResponse ¶
func ParseGetSimplePrimitiveResponse ¶
func ParseGetSimplePrimitiveResponse(rsp *http.Response) (*GetSimplePrimitiveResponse, error)
ParseGetSimplePrimitiveResponse parses an HTTP response from a GetSimplePrimitiveWithResponse call
func (GetSimplePrimitiveResponse) Status ¶
func (r GetSimplePrimitiveResponse) Status() string
Status returns HTTPResponse.Status
func (GetSimplePrimitiveResponse) StatusCode ¶
func (r GetSimplePrimitiveResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStartingWithNumberResponse ¶
func ParseGetStartingWithNumberResponse ¶
func ParseGetStartingWithNumberResponse(rsp *http.Response) (*GetStartingWithNumberResponse, error)
ParseGetStartingWithNumberResponse parses an HTTP response from a GetStartingWithNumberWithResponse call
func (GetStartingWithNumberResponse) Status ¶
func (r GetStartingWithNumberResponse) Status() string
Status returns HTTPResponse.Status
func (GetStartingWithNumberResponse) StatusCode ¶
func (r GetStartingWithNumberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InvalidParamFormatError ¶
type InvalidParamFormatError struct {
// contains filtered or unexported fields
}
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
type RequiredHeaderError struct {
// contains filtered or unexported fields
}
type RequiredParamError ¶
type RequiredParamError struct {
// contains filtered or unexported fields
}
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response is a common response struct for all the API calls. A Response object may be instantiated via functions for specific operation responses.
func (*Response) ContentType ¶
ContentType is a builder method to override the default content type for a response.
func (*Response) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. This is used to only marshal the body of the response.
func (*Response) MarshalXML ¶
MarshalXML implements the xml.Marshaler interface. This is used to only marshal the body of the response.
type ServerInterface ¶
type ServerInterface interface {
// (GET /contentObject/{param})
GetContentObject(w http.ResponseWriter, r *http.Request, param ComplexObject)
// (GET /cookie)
GetCookie(w http.ResponseWriter, r *http.Request, params GetCookieParams)
// (GET /header)
GetHeader(w http.ResponseWriter, r *http.Request, params GetHeaderParams)
// (GET /labelExplodeArray/{.param*})
GetLabelExplodeArray(w http.ResponseWriter, r *http.Request, param []int32)
// (GET /labelExplodeObject/{.param*})
GetLabelExplodeObject(w http.ResponseWriter, r *http.Request, param Object)
// (GET /labelNoExplodeArray/{.param})
GetLabelNoExplodeArray(w http.ResponseWriter, r *http.Request, param []int32)
// (GET /labelNoExplodeObject/{.param})
GetLabelNoExplodeObject(w http.ResponseWriter, r *http.Request, param Object)
// (GET /matrixExplodeArray/{.id*})
GetMatrixExplodeArray(w http.ResponseWriter, r *http.Request, id []int32)
// (GET /matrixExplodeObject/{.id*})
GetMatrixExplodeObject(w http.ResponseWriter, r *http.Request, id Object)
// (GET /matrixNoExplodeArray/{.id})
GetMatrixNoExplodeArray(w http.ResponseWriter, r *http.Request, id []int32)
// (GET /matrixNoExplodeObject/{.id})
GetMatrixNoExplodeObject(w http.ResponseWriter, r *http.Request, id Object)
// (GET /passThrough/{param})
GetPassThrough(w http.ResponseWriter, r *http.Request, param string)
// (GET /queryDeepObject)
GetDeepObject(w http.ResponseWriter, r *http.Request, params GetDeepObjectParams)
// (GET /queryForm)
GetQueryForm(w http.ResponseWriter, r *http.Request, params GetQueryFormParams)
// (GET /simpleExplodeArray/{param*})
GetSimpleExplodeArray(w http.ResponseWriter, r *http.Request, param []int32)
// (GET /simpleExplodeObject/{param*})
GetSimpleExplodeObject(w http.ResponseWriter, r *http.Request, param Object)
// (GET /simpleNoExplodeArray/{param})
GetSimpleNoExplodeArray(w http.ResponseWriter, r *http.Request, param []int32)
// (GET /simpleNoExplodeObject/{param})
GetSimpleNoExplodeObject(w http.ResponseWriter, r *http.Request, param Object)
// (GET /simplePrimitive/{param})
GetSimplePrimitive(w http.ResponseWriter, r *http.Request, param int32)
// (GET /startingWithNumber/{1param})
GetStartingWithNumber(w http.ResponseWriter, r *http.Request, n1param string)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
Middlewares map[string]func(http.Handler) http.Handler
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) GetContentObject ¶
func (siw *ServerInterfaceWrapper) GetContentObject(w http.ResponseWriter, r *http.Request)
GetContentObject operation middleware
func (*ServerInterfaceWrapper) GetCookie ¶
func (siw *ServerInterfaceWrapper) GetCookie(w http.ResponseWriter, r *http.Request)
GetCookie operation middleware
func (*ServerInterfaceWrapper) GetDeepObject ¶
func (siw *ServerInterfaceWrapper) GetDeepObject(w http.ResponseWriter, r *http.Request)
GetDeepObject operation middleware
func (*ServerInterfaceWrapper) GetHeader ¶
func (siw *ServerInterfaceWrapper) GetHeader(w http.ResponseWriter, r *http.Request)
GetHeader operation middleware
func (*ServerInterfaceWrapper) GetLabelExplodeArray ¶
func (siw *ServerInterfaceWrapper) GetLabelExplodeArray(w http.ResponseWriter, r *http.Request)
GetLabelExplodeArray operation middleware
func (*ServerInterfaceWrapper) GetLabelExplodeObject ¶
func (siw *ServerInterfaceWrapper) GetLabelExplodeObject(w http.ResponseWriter, r *http.Request)
GetLabelExplodeObject operation middleware
func (*ServerInterfaceWrapper) GetLabelNoExplodeArray ¶
func (siw *ServerInterfaceWrapper) GetLabelNoExplodeArray(w http.ResponseWriter, r *http.Request)
GetLabelNoExplodeArray operation middleware
func (*ServerInterfaceWrapper) GetLabelNoExplodeObject ¶
func (siw *ServerInterfaceWrapper) GetLabelNoExplodeObject(w http.ResponseWriter, r *http.Request)
GetLabelNoExplodeObject operation middleware
func (*ServerInterfaceWrapper) GetMatrixExplodeArray ¶
func (siw *ServerInterfaceWrapper) GetMatrixExplodeArray(w http.ResponseWriter, r *http.Request)
GetMatrixExplodeArray operation middleware
func (*ServerInterfaceWrapper) GetMatrixExplodeObject ¶
func (siw *ServerInterfaceWrapper) GetMatrixExplodeObject(w http.ResponseWriter, r *http.Request)
GetMatrixExplodeObject operation middleware
func (*ServerInterfaceWrapper) GetMatrixNoExplodeArray ¶
func (siw *ServerInterfaceWrapper) GetMatrixNoExplodeArray(w http.ResponseWriter, r *http.Request)
GetMatrixNoExplodeArray operation middleware
func (*ServerInterfaceWrapper) GetMatrixNoExplodeObject ¶
func (siw *ServerInterfaceWrapper) GetMatrixNoExplodeObject(w http.ResponseWriter, r *http.Request)
GetMatrixNoExplodeObject operation middleware
func (*ServerInterfaceWrapper) GetPassThrough ¶
func (siw *ServerInterfaceWrapper) GetPassThrough(w http.ResponseWriter, r *http.Request)
GetPassThrough operation middleware
func (*ServerInterfaceWrapper) GetQueryForm ¶
func (siw *ServerInterfaceWrapper) GetQueryForm(w http.ResponseWriter, r *http.Request)
GetQueryForm operation middleware
func (*ServerInterfaceWrapper) GetSimpleExplodeArray ¶
func (siw *ServerInterfaceWrapper) GetSimpleExplodeArray(w http.ResponseWriter, r *http.Request)
GetSimpleExplodeArray operation middleware
func (*ServerInterfaceWrapper) GetSimpleExplodeObject ¶
func (siw *ServerInterfaceWrapper) GetSimpleExplodeObject(w http.ResponseWriter, r *http.Request)
GetSimpleExplodeObject operation middleware
func (*ServerInterfaceWrapper) GetSimpleNoExplodeArray ¶
func (siw *ServerInterfaceWrapper) GetSimpleNoExplodeArray(w http.ResponseWriter, r *http.Request)
GetSimpleNoExplodeArray operation middleware
func (*ServerInterfaceWrapper) GetSimpleNoExplodeObject ¶
func (siw *ServerInterfaceWrapper) GetSimpleNoExplodeObject(w http.ResponseWriter, r *http.Request)
GetSimpleNoExplodeObject operation middleware
func (*ServerInterfaceWrapper) GetSimplePrimitive ¶
func (siw *ServerInterfaceWrapper) GetSimplePrimitive(w http.ResponseWriter, r *http.Request)
GetSimplePrimitive operation middleware
func (*ServerInterfaceWrapper) GetStartingWithNumber ¶
func (siw *ServerInterfaceWrapper) GetStartingWithNumber(w http.ResponseWriter, r *http.Request)
GetStartingWithNumber operation middleware
type ServerOption ¶
type ServerOption func(*ServerOptions)
func WithErrorHandler ¶
func WithErrorHandler(handler func(w http.ResponseWriter, r *http.Request, err error)) ServerOption
func WithMiddleware ¶
func WithMiddlewares ¶
func WithRouter ¶
func WithRouter(r chi.Router) ServerOption
func WithServerBaseURL ¶
func WithServerBaseURL(url string) ServerOption
type ServerOptions ¶
type TooManyValuesForParamError ¶
type TooManyValuesForParamError struct {
// contains filtered or unexported fields
}
type UnescapedCookieParamError ¶
type UnescapedCookieParamError struct {
// contains filtered or unexported fields
}
type UnmarshalingParamError ¶
type UnmarshalingParamError struct {
// contains filtered or unexported fields
}