parameters

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package parameters provides primitives to interact the openapi HTTP API.

This is an autogenerated file, any edits which you make here will be lost!

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 RegisterHandlers

func RegisterHandlers(router runtime.EchoRouter, 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

	// HTTP client with any customized settings, such as certificate chains.
	Client http.Client

	// A callback for modifying requests which are generated before sending over
	// the network.
	RequestEditor func(req *http.Request, ctx context.Context) error
}

Client which conforms to the OpenAPI3 specification for this service.

func (*Client) GetContentObject added in v1.1.0

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

GetContentObject request

func (*Client) GetCookie added in v1.1.0

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

GetCookie request

func (*Client) GetHeader added in v1.1.0

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

GetHeader request

func (*Client) GetLabelExplodeArray added in v1.1.0

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

GetLabelExplodeArray request

func (*Client) GetLabelExplodeObject added in v1.1.0

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

GetLabelExplodeObject request

func (*Client) GetLabelNoExplodeArray added in v1.1.0

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

GetLabelNoExplodeArray request

func (*Client) GetLabelNoExplodeObject added in v1.1.0

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

GetLabelNoExplodeObject request

func (*Client) GetMatrixExplodeArray added in v1.1.0

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

GetMatrixExplodeArray request

func (*Client) GetMatrixExplodeObject added in v1.1.0

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

GetMatrixExplodeObject request

func (*Client) GetMatrixNoExplodeArray added in v1.1.0

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

GetMatrixNoExplodeArray request

func (*Client) GetMatrixNoExplodeObject added in v1.1.0

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

GetMatrixNoExplodeObject request

func (*Client) GetPassThrough added in v1.1.0

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

GetPassThrough request

func (*Client) GetQueryForm added in v1.1.0

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

GetQueryForm request

func (*Client) GetSimpleExplodeArray added in v1.1.0

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

GetSimpleExplodeArray request

func (*Client) GetSimpleExplodeObject added in v1.1.0

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

GetSimpleExplodeObject request

func (*Client) GetSimpleNoExplodeArray added in v1.1.0

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

GetSimpleNoExplodeArray request

func (*Client) GetSimpleNoExplodeObject added in v1.1.0

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

GetSimpleNoExplodeObject request

func (*Client) GetSimplePrimitive added in v1.1.0

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

GetSimplePrimitive request

type ComplexObject

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

ComplexObject defines component schema for ComplexObject.

type GetCookieParams added in v1.1.0

type GetCookieParams struct {
	P  *int32         `json:"p,omitempty"`
	Ep *int32         `json:"ep,omitempty"`
	Ea *[]int32       `json:"ea,omitempty"`
	A  *[]int32       `json:"a,omitempty"`
	Eo *Object        `json:"eo,omitempty"`
	O  *Object        `json:"o,omitempty"`
	Co *ComplexObject `json:"co,omitempty"`
}

GetCookieParams defines parameters for GetCookie.

type GetHeaderParams

type GetHeaderParams struct {
	XPrimitive         *int32         `json:"X-Primitive,omitempty"`
	XPrimitiveExploded *int32         `json:"X-Primitive-Exploded,omitempty"`
	XArrayExploded     *[]int32       `json:"X-Array-Exploded,omitempty"`
	XArray             *[]int32       `json:"X-Array,omitempty"`
	XObjectExploded    *Object        `json:"X-Object-Exploded,omitempty"`
	XObject            *Object        `json:"X-Object,omitempty"`
	XComplexObject     *ComplexObject `json:"X-Complex-Object,omitempty"`
}

GetHeaderParams defines parameters for GetHeader.

type GetQueryFormParams

type GetQueryFormParams struct {
	Ea *[]int32       `json:"ea,omitempty"`
	A  *[]int32       `json:"a,omitempty"`
	Eo *Object        `json:"eo,omitempty"`
	O  *Object        `json:"o,omitempty"`
	Ep *int32         `json:"ep,omitempty"`
	P  *int32         `json:"p,omitempty"`
	Co *ComplexObject `json:"co,omitempty"`
}

GetQueryFormParams defines parameters for GetQueryForm.

type Object

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

Object defines component schema for Object.

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