parameters

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package parameters provides primitives to interact the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (*openapi3.Swagger, error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file.

func NewGetContentObjectRequest added in v1.1.0

func NewGetContentObjectRequest(server string, param ComplexObject) (*http.Request, error)

NewGetContentObjectRequest generates requests for GetContentObject

func NewGetCookieRequest added in v1.1.0

func NewGetCookieRequest(server string, params *GetCookieParams) (*http.Request, error)

NewGetCookieRequest generates requests for GetCookie

func NewGetHeaderRequest added in v1.1.0

func NewGetHeaderRequest(server string, params *GetHeaderParams) (*http.Request, error)

NewGetHeaderRequest generates requests for GetHeader

func NewGetLabelExplodeArrayRequest added in v1.1.0

func NewGetLabelExplodeArrayRequest(server string, param []int32) (*http.Request, error)

NewGetLabelExplodeArrayRequest generates requests for GetLabelExplodeArray

func NewGetLabelExplodeObjectRequest added in v1.1.0

func NewGetLabelExplodeObjectRequest(server string, param Object) (*http.Request, error)

NewGetLabelExplodeObjectRequest generates requests for GetLabelExplodeObject

func NewGetLabelNoExplodeArrayRequest added in v1.1.0

func NewGetLabelNoExplodeArrayRequest(server string, param []int32) (*http.Request, error)

NewGetLabelNoExplodeArrayRequest generates requests for GetLabelNoExplodeArray

func NewGetLabelNoExplodeObjectRequest added in v1.1.0

func NewGetLabelNoExplodeObjectRequest(server string, param Object) (*http.Request, error)

NewGetLabelNoExplodeObjectRequest generates requests for GetLabelNoExplodeObject

func NewGetMatrixExplodeArrayRequest added in v1.1.0

func NewGetMatrixExplodeArrayRequest(server string, id []int32) (*http.Request, error)

NewGetMatrixExplodeArrayRequest generates requests for GetMatrixExplodeArray

func NewGetMatrixExplodeObjectRequest added in v1.1.0

func NewGetMatrixExplodeObjectRequest(server string, id Object) (*http.Request, error)

NewGetMatrixExplodeObjectRequest generates requests for GetMatrixExplodeObject

func NewGetMatrixNoExplodeArrayRequest added in v1.1.0

func NewGetMatrixNoExplodeArrayRequest(server string, id []int32) (*http.Request, error)

NewGetMatrixNoExplodeArrayRequest generates requests for GetMatrixNoExplodeArray

func NewGetMatrixNoExplodeObjectRequest added in v1.1.0

func NewGetMatrixNoExplodeObjectRequest(server string, id Object) (*http.Request, error)

NewGetMatrixNoExplodeObjectRequest generates requests for GetMatrixNoExplodeObject

func NewGetPassThroughRequest added in v1.1.0

func NewGetPassThroughRequest(server string, param string) (*http.Request, error)

NewGetPassThroughRequest generates requests for GetPassThrough

func NewGetQueryFormRequest added in v1.1.0

func NewGetQueryFormRequest(server string, params *GetQueryFormParams) (*http.Request, error)

NewGetQueryFormRequest generates requests for GetQueryForm

func NewGetSimpleExplodeArrayRequest added in v1.1.0

func NewGetSimpleExplodeArrayRequest(server string, param []int32) (*http.Request, error)

NewGetSimpleExplodeArrayRequest generates requests for GetSimpleExplodeArray

func NewGetSimpleExplodeObjectRequest added in v1.1.0

func NewGetSimpleExplodeObjectRequest(server string, param Object) (*http.Request, error)

NewGetSimpleExplodeObjectRequest generates requests for GetSimpleExplodeObject

func NewGetSimpleNoExplodeArrayRequest added in v1.1.0

func NewGetSimpleNoExplodeArrayRequest(server string, param []int32) (*http.Request, error)

NewGetSimpleNoExplodeArrayRequest generates requests for GetSimpleNoExplodeArray

func NewGetSimpleNoExplodeObjectRequest added in v1.1.0

func NewGetSimpleNoExplodeObjectRequest(server string, param Object) (*http.Request, error)

NewGetSimpleNoExplodeObjectRequest generates requests for GetSimpleNoExplodeObject

func NewGetSimplePrimitiveRequest added in v1.1.0

func NewGetSimplePrimitiveRequest(server string, param int32) (*http.Request, error)

NewGetSimplePrimitiveRequest generates requests for GetSimplePrimitive

func ParseGetContentObjectResponse added in v1.3.4

func ParseGetContentObjectResponse(rsp *http.Response) (*getContentObjectResponse, error)

ParseGetContentObjectResponse parses an HTTP response from a GetContentObjectWithResponse call

func ParseGetCookieResponse added in v1.3.4

func ParseGetCookieResponse(rsp *http.Response) (*getCookieResponse, error)

ParseGetCookieResponse parses an HTTP response from a GetCookieWithResponse call

func ParseGetHeaderResponse added in v1.3.4

func ParseGetHeaderResponse(rsp *http.Response) (*getHeaderResponse, error)

ParseGetHeaderResponse parses an HTTP response from a GetHeaderWithResponse call

func ParseGetLabelExplodeArrayResponse added in v1.3.4

func ParseGetLabelExplodeArrayResponse(rsp *http.Response) (*getLabelExplodeArrayResponse, error)

ParseGetLabelExplodeArrayResponse parses an HTTP response from a GetLabelExplodeArrayWithResponse call

func ParseGetLabelExplodeObjectResponse added in v1.3.4

func ParseGetLabelExplodeObjectResponse(rsp *http.Response) (*getLabelExplodeObjectResponse, error)

ParseGetLabelExplodeObjectResponse parses an HTTP response from a GetLabelExplodeObjectWithResponse call

func ParseGetLabelNoExplodeArrayResponse added in v1.3.4

func ParseGetLabelNoExplodeArrayResponse(rsp *http.Response) (*getLabelNoExplodeArrayResponse, error)

ParseGetLabelNoExplodeArrayResponse parses an HTTP response from a GetLabelNoExplodeArrayWithResponse call

func ParseGetLabelNoExplodeObjectResponse added in v1.3.4

func ParseGetLabelNoExplodeObjectResponse(rsp *http.Response) (*getLabelNoExplodeObjectResponse, error)

ParseGetLabelNoExplodeObjectResponse parses an HTTP response from a GetLabelNoExplodeObjectWithResponse call

func ParseGetMatrixExplodeArrayResponse added in v1.3.4

func ParseGetMatrixExplodeArrayResponse(rsp *http.Response) (*getMatrixExplodeArrayResponse, error)

ParseGetMatrixExplodeArrayResponse parses an HTTP response from a GetMatrixExplodeArrayWithResponse call

func ParseGetMatrixExplodeObjectResponse added in v1.3.4

func ParseGetMatrixExplodeObjectResponse(rsp *http.Response) (*getMatrixExplodeObjectResponse, error)

ParseGetMatrixExplodeObjectResponse parses an HTTP response from a GetMatrixExplodeObjectWithResponse call

func ParseGetMatrixNoExplodeArrayResponse added in v1.3.4

func ParseGetMatrixNoExplodeArrayResponse(rsp *http.Response) (*getMatrixNoExplodeArrayResponse, error)

ParseGetMatrixNoExplodeArrayResponse parses an HTTP response from a GetMatrixNoExplodeArrayWithResponse call

func ParseGetMatrixNoExplodeObjectResponse added in v1.3.4

func ParseGetMatrixNoExplodeObjectResponse(rsp *http.Response) (*getMatrixNoExplodeObjectResponse, error)

ParseGetMatrixNoExplodeObjectResponse parses an HTTP response from a GetMatrixNoExplodeObjectWithResponse call

func ParseGetPassThroughResponse added in v1.3.4

func ParseGetPassThroughResponse(rsp *http.Response) (*getPassThroughResponse, error)

ParseGetPassThroughResponse parses an HTTP response from a GetPassThroughWithResponse call

func ParseGetQueryFormResponse added in v1.3.4

func ParseGetQueryFormResponse(rsp *http.Response) (*getQueryFormResponse, error)

ParseGetQueryFormResponse parses an HTTP response from a GetQueryFormWithResponse call

func ParseGetSimpleExplodeArrayResponse added in v1.3.4

func ParseGetSimpleExplodeArrayResponse(rsp *http.Response) (*getSimpleExplodeArrayResponse, error)

ParseGetSimpleExplodeArrayResponse parses an HTTP response from a GetSimpleExplodeArrayWithResponse call

func ParseGetSimpleExplodeObjectResponse added in v1.3.4

func ParseGetSimpleExplodeObjectResponse(rsp *http.Response) (*getSimpleExplodeObjectResponse, error)

ParseGetSimpleExplodeObjectResponse parses an HTTP response from a GetSimpleExplodeObjectWithResponse call

func ParseGetSimpleNoExplodeArrayResponse added in v1.3.4

func ParseGetSimpleNoExplodeArrayResponse(rsp *http.Response) (*getSimpleNoExplodeArrayResponse, error)

ParseGetSimpleNoExplodeArrayResponse parses an HTTP response from a GetSimpleNoExplodeArrayWithResponse call

func ParseGetSimpleNoExplodeObjectResponse added in v1.3.4

func ParseGetSimpleNoExplodeObjectResponse(rsp *http.Response) (*getSimpleNoExplodeObjectResponse, error)

ParseGetSimpleNoExplodeObjectResponse parses an HTTP response from a GetSimpleNoExplodeObjectWithResponse call

func ParseGetSimplePrimitiveResponse added in v1.3.4

func ParseGetSimplePrimitiveResponse(rsp *http.Response) (*getSimplePrimitiveResponse, error)

ParseGetSimplePrimitiveResponse parses an HTTP response from a GetSimplePrimitiveWithResponse call

func RegisterHandlers

func RegisterHandlers(router 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
}, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

Types

type Client added in v1.1.0

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A callback for modifying requests which are generated before sending over
	// the network.
	RequestEditor RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient added in v1.3.1

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) GetContentObject added in v1.1.0

func (c *Client) GetContentObject(ctx context.Context, param ComplexObject) (*http.Response, error)

func (*Client) GetCookie added in v1.1.0

func (c *Client) GetCookie(ctx context.Context, params *GetCookieParams) (*http.Response, error)

func (*Client) GetHeader added in v1.1.0

func (c *Client) GetHeader(ctx context.Context, params *GetHeaderParams) (*http.Response, error)

func (*Client) GetLabelExplodeArray added in v1.1.0

func (c *Client) GetLabelExplodeArray(ctx context.Context, param []int32) (*http.Response, error)

func (*Client) GetLabelExplodeObject added in v1.1.0

func (c *Client) GetLabelExplodeObject(ctx context.Context, param Object) (*http.Response, error)

func (*Client) GetLabelNoExplodeArray added in v1.1.0

func (c *Client) GetLabelNoExplodeArray(ctx context.Context, param []int32) (*http.Response, error)

func (*Client) GetLabelNoExplodeObject added in v1.1.0

func (c *Client) GetLabelNoExplodeObject(ctx context.Context, param Object) (*http.Response, error)

func (*Client) GetMatrixExplodeArray added in v1.1.0

func (c *Client) GetMatrixExplodeArray(ctx context.Context, id []int32) (*http.Response, error)

func (*Client) GetMatrixExplodeObject added in v1.1.0

func (c *Client) GetMatrixExplodeObject(ctx context.Context, id Object) (*http.Response, error)

func (*Client) GetMatrixNoExplodeArray added in v1.1.0

func (c *Client) GetMatrixNoExplodeArray(ctx context.Context, id []int32) (*http.Response, error)

func (*Client) GetMatrixNoExplodeObject added in v1.1.0

func (c *Client) GetMatrixNoExplodeObject(ctx context.Context, id Object) (*http.Response, error)

func (*Client) GetPassThrough added in v1.1.0

func (c *Client) GetPassThrough(ctx context.Context, param string) (*http.Response, error)

func (*Client) GetQueryForm added in v1.1.0

func (c *Client) GetQueryForm(ctx context.Context, params *GetQueryFormParams) (*http.Response, error)

func (*Client) GetSimpleExplodeArray added in v1.1.0

func (c *Client) GetSimpleExplodeArray(ctx context.Context, param []int32) (*http.Response, error)

func (*Client) GetSimpleExplodeObject added in v1.1.0

func (c *Client) GetSimpleExplodeObject(ctx context.Context, param Object) (*http.Response, error)

func (*Client) GetSimpleNoExplodeArray added in v1.1.0

func (c *Client) GetSimpleNoExplodeArray(ctx context.Context, param []int32) (*http.Response, error)

func (*Client) GetSimpleNoExplodeObject added in v1.1.0

func (c *Client) GetSimpleNoExplodeObject(ctx context.Context, param Object) (*http.Response, error)

func (*Client) GetSimplePrimitive added in v1.1.0

func (c *Client) GetSimplePrimitive(ctx context.Context, param int32) (*http.Response, error)

type ClientInterface added in v1.1.5

type ClientInterface interface {
	// GetContentObject request
	GetContentObject(ctx context.Context, param ComplexObject) (*http.Response, error)

	// GetCookie request
	GetCookie(ctx context.Context, params *GetCookieParams) (*http.Response, error)

	// GetHeader request
	GetHeader(ctx context.Context, params *GetHeaderParams) (*http.Response, error)

	// GetLabelExplodeArray request
	GetLabelExplodeArray(ctx context.Context, param []int32) (*http.Response, error)

	// GetLabelExplodeObject request
	GetLabelExplodeObject(ctx context.Context, param Object) (*http.Response, error)

	// GetLabelNoExplodeArray request
	GetLabelNoExplodeArray(ctx context.Context, param []int32) (*http.Response, error)

	// GetLabelNoExplodeObject request
	GetLabelNoExplodeObject(ctx context.Context, param Object) (*http.Response, error)

	// GetMatrixExplodeArray request
	GetMatrixExplodeArray(ctx context.Context, id []int32) (*http.Response, error)

	// GetMatrixExplodeObject request
	GetMatrixExplodeObject(ctx context.Context, id Object) (*http.Response, error)

	// GetMatrixNoExplodeArray request
	GetMatrixNoExplodeArray(ctx context.Context, id []int32) (*http.Response, error)

	// GetMatrixNoExplodeObject request
	GetMatrixNoExplodeObject(ctx context.Context, id Object) (*http.Response, error)

	// GetPassThrough request
	GetPassThrough(ctx context.Context, param string) (*http.Response, error)

	// GetQueryForm request
	GetQueryForm(ctx context.Context, params *GetQueryFormParams) (*http.Response, error)

	// GetSimpleExplodeArray request
	GetSimpleExplodeArray(ctx context.Context, param []int32) (*http.Response, error)

	// GetSimpleExplodeObject request
	GetSimpleExplodeObject(ctx context.Context, param Object) (*http.Response, error)

	// GetSimpleNoExplodeArray request
	GetSimpleNoExplodeArray(ctx context.Context, param []int32) (*http.Response, error)

	// GetSimpleNoExplodeObject request
	GetSimpleNoExplodeObject(ctx context.Context, param Object) (*http.Response, error)

	// GetSimplePrimitive request
	GetSimplePrimitive(ctx context.Context, param int32) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption added in v1.3.1

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL added in v1.3.1

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient added in v1.3.1

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 added in v1.3.1

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 added in v1.1.6

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses added in v1.1.6

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) GetContentObjectWithResponse added in v1.1.6

func (c *ClientWithResponses) GetContentObjectWithResponse(ctx context.Context, param ComplexObject) (*getContentObjectResponse, error)

GetContentObjectWithResponse request returning *GetContentObjectResponse

func (*ClientWithResponses) GetCookieWithResponse added in v1.1.6

func (c *ClientWithResponses) GetCookieWithResponse(ctx context.Context, params *GetCookieParams) (*getCookieResponse, error)

GetCookieWithResponse request returning *GetCookieResponse

func (*ClientWithResponses) GetHeaderWithResponse added in v1.1.6

func (c *ClientWithResponses) GetHeaderWithResponse(ctx context.Context, params *GetHeaderParams) (*getHeaderResponse, error)

GetHeaderWithResponse request returning *GetHeaderResponse

func (*ClientWithResponses) GetLabelExplodeArrayWithResponse added in v1.1.6

func (c *ClientWithResponses) GetLabelExplodeArrayWithResponse(ctx context.Context, param []int32) (*getLabelExplodeArrayResponse, error)

GetLabelExplodeArrayWithResponse request returning *GetLabelExplodeArrayResponse

func (*ClientWithResponses) GetLabelExplodeObjectWithResponse added in v1.1.6

func (c *ClientWithResponses) GetLabelExplodeObjectWithResponse(ctx context.Context, param Object) (*getLabelExplodeObjectResponse, error)

GetLabelExplodeObjectWithResponse request returning *GetLabelExplodeObjectResponse

func (*ClientWithResponses) GetLabelNoExplodeArrayWithResponse added in v1.1.6

func (c *ClientWithResponses) GetLabelNoExplodeArrayWithResponse(ctx context.Context, param []int32) (*getLabelNoExplodeArrayResponse, error)

GetLabelNoExplodeArrayWithResponse request returning *GetLabelNoExplodeArrayResponse

func (*ClientWithResponses) GetLabelNoExplodeObjectWithResponse added in v1.1.6

func (c *ClientWithResponses) GetLabelNoExplodeObjectWithResponse(ctx context.Context, param Object) (*getLabelNoExplodeObjectResponse, error)

GetLabelNoExplodeObjectWithResponse request returning *GetLabelNoExplodeObjectResponse

func (*ClientWithResponses) GetMatrixExplodeArrayWithResponse added in v1.1.6

func (c *ClientWithResponses) GetMatrixExplodeArrayWithResponse(ctx context.Context, id []int32) (*getMatrixExplodeArrayResponse, error)

GetMatrixExplodeArrayWithResponse request returning *GetMatrixExplodeArrayResponse

func (*ClientWithResponses) GetMatrixExplodeObjectWithResponse added in v1.1.6

func (c *ClientWithResponses) GetMatrixExplodeObjectWithResponse(ctx context.Context, id Object) (*getMatrixExplodeObjectResponse, error)

GetMatrixExplodeObjectWithResponse request returning *GetMatrixExplodeObjectResponse

func (*ClientWithResponses) GetMatrixNoExplodeArrayWithResponse added in v1.1.6

func (c *ClientWithResponses) GetMatrixNoExplodeArrayWithResponse(ctx context.Context, id []int32) (*getMatrixNoExplodeArrayResponse, error)

GetMatrixNoExplodeArrayWithResponse request returning *GetMatrixNoExplodeArrayResponse

func (*ClientWithResponses) GetMatrixNoExplodeObjectWithResponse added in v1.1.6

func (c *ClientWithResponses) GetMatrixNoExplodeObjectWithResponse(ctx context.Context, id Object) (*getMatrixNoExplodeObjectResponse, error)

GetMatrixNoExplodeObjectWithResponse request returning *GetMatrixNoExplodeObjectResponse

func (*ClientWithResponses) GetPassThroughWithResponse added in v1.1.6

func (c *ClientWithResponses) GetPassThroughWithResponse(ctx context.Context, param string) (*getPassThroughResponse, error)

GetPassThroughWithResponse request returning *GetPassThroughResponse

func (*ClientWithResponses) GetQueryFormWithResponse added in v1.1.6

func (c *ClientWithResponses) GetQueryFormWithResponse(ctx context.Context, params *GetQueryFormParams) (*getQueryFormResponse, error)

GetQueryFormWithResponse request returning *GetQueryFormResponse

func (*ClientWithResponses) GetSimpleExplodeArrayWithResponse added in v1.1.6

func (c *ClientWithResponses) GetSimpleExplodeArrayWithResponse(ctx context.Context, param []int32) (*getSimpleExplodeArrayResponse, error)

GetSimpleExplodeArrayWithResponse request returning *GetSimpleExplodeArrayResponse

func (*ClientWithResponses) GetSimpleExplodeObjectWithResponse added in v1.1.6

func (c *ClientWithResponses) GetSimpleExplodeObjectWithResponse(ctx context.Context, param Object) (*getSimpleExplodeObjectResponse, error)

GetSimpleExplodeObjectWithResponse request returning *GetSimpleExplodeObjectResponse

func (*ClientWithResponses) GetSimpleNoExplodeArrayWithResponse added in v1.1.6

func (c *ClientWithResponses) GetSimpleNoExplodeArrayWithResponse(ctx context.Context, param []int32) (*getSimpleNoExplodeArrayResponse, error)

GetSimpleNoExplodeArrayWithResponse request returning *GetSimpleNoExplodeArrayResponse

func (*ClientWithResponses) GetSimpleNoExplodeObjectWithResponse added in v1.1.6

func (c *ClientWithResponses) GetSimpleNoExplodeObjectWithResponse(ctx context.Context, param Object) (*getSimpleNoExplodeObjectResponse, error)

GetSimpleNoExplodeObjectWithResponse request returning *GetSimpleNoExplodeObjectResponse

func (*ClientWithResponses) GetSimplePrimitiveWithResponse added in v1.1.6

func (c *ClientWithResponses) GetSimplePrimitiveWithResponse(ctx context.Context, param int32) (*getSimplePrimitiveResponse, error)

GetSimplePrimitiveWithResponse request returning *GetSimplePrimitiveResponse

type ComplexObject

type ComplexObject struct {
	Id     string `json:"Id"`
	Object Object `json:"Object"`
}

ComplexObject defines model for ComplexObject.

type GetCookieParams added in v1.1.0

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"`
}

GetCookieParams defines parameters for GetCookie.

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"`
}

GetHeaderParams defines parameters for GetHeader.

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"`

	// complex object
	Co *ComplexObject `json:"co,omitempty"`
}

GetQueryFormParams defines parameters for GetQueryForm.

type HttpRequestDoer added in v1.3.2

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Object

type Object struct {
	FirstName string `json:"firstName"`
	Role      string `json:"role"`
}

Object defines model for Object.

type RequestEditorFn added in v1.2.4

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ServerInterface

type ServerInterface interface {
	// (GET /contentObject/{param})
	GetContentObject(ctx echo.Context, param ComplexObject) error
	// (GET /cookie)
	GetCookie(ctx echo.Context, params GetCookieParams) error
	// (GET /header)
	GetHeader(ctx echo.Context, params GetHeaderParams) error
	// (GET /labelExplodeArray/{.param*})
	GetLabelExplodeArray(ctx echo.Context, param []int32) error
	// (GET /labelExplodeObject/{.param*})
	GetLabelExplodeObject(ctx echo.Context, param Object) error
	// (GET /labelNoExplodeArray/{.param})
	GetLabelNoExplodeArray(ctx echo.Context, param []int32) error
	// (GET /labelNoExplodeObject/{.param})
	GetLabelNoExplodeObject(ctx echo.Context, param Object) error
	// (GET /matrixExplodeArray/{.id*})
	GetMatrixExplodeArray(ctx echo.Context, id []int32) error
	// (GET /matrixExplodeObject/{.id*})
	GetMatrixExplodeObject(ctx echo.Context, id Object) error
	// (GET /matrixNoExplodeArray/{.id})
	GetMatrixNoExplodeArray(ctx echo.Context, id []int32) error
	// (GET /matrixNoExplodeObject/{.id})
	GetMatrixNoExplodeObject(ctx echo.Context, id Object) error
	// (GET /passThrough/{param})
	GetPassThrough(ctx echo.Context, param string) error
	// (GET /queryForm)
	GetQueryForm(ctx echo.Context, params GetQueryFormParams) error
	// (GET /simpleExplodeArray/{param*})
	GetSimpleExplodeArray(ctx echo.Context, param []int32) error
	// (GET /simpleExplodeObject/{param*})
	GetSimpleExplodeObject(ctx echo.Context, param Object) error
	// (GET /simpleNoExplodeArray/{param})
	GetSimpleNoExplodeArray(ctx echo.Context, param []int32) error
	// (GET /simpleNoExplodeObject/{param})
	GetSimpleNoExplodeObject(ctx echo.Context, param Object) error
	// (GET /simplePrimitive/{param})
	GetSimplePrimitive(ctx echo.Context, param int32) 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 added in v1.1.0

func (w *ServerInterfaceWrapper) GetCookie(ctx echo.Context) error

GetCookie 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.

Jump to

Keyboard shortcuts

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