Documentation ¶
Overview ¶
Package schemas provides primitives to interact the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Index ¶
- func GetSwagger() (*openapi3.Swagger, error)
- func NewIssue30Request(server string, pFallthrough string) (*http.Request, error)
- func NewIssue9Request(server string, params *Issue9Params, body *Issue9JSONBody) (*http.Request, error)
- func NewIssue9RequestWithBody(server string, params *Issue9Params, contentType string, body io.Reader) (*http.Request, error)
- func Parseissue30Response(rsp *http.Response) (*issue30Response, error)
- func Parseissue9Response(rsp *http.Response) (*issue9Response, error)
- func RegisterHandlers(router runtime.EchoRouter, si ServerInterface)
- type AnyType1
- type AnyType2
- type Client
- type ClientInterface
- type ClientWithResponses
- type CustomStringType
- type GenericObject
- type Issue9JSONBody
- type Issue9Params
- type ServerInterface
- type ServerInterfaceWrapper
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.
func NewIssue30Request ¶ added in v1.1.7
NewIssue30Request generates requests for Issue30
func NewIssue9Request ¶ added in v1.1.3
func NewIssue9Request(server string, params *Issue9Params, body *Issue9JSONBody) (*http.Request, error)
NewIssue9Request generates requests for Issue9 with JSON body
func NewIssue9RequestWithBody ¶ added in v1.1.3
func NewIssue9RequestWithBody(server string, params *Issue9Params, contentType string, body io.Reader) (*http.Request, error)
NewIssue9RequestWithBody generates requests for Issue9 with non-JSON body
func Parseissue30Response ¶ added in v1.1.7
Parseissue30Response parses an HTTP response from a Issue30WithResponse call
func Parseissue9Response ¶ added in v1.1.6
Parseissue9Response parses an HTTP response from a Issue9WithResponse call
func RegisterHandlers ¶
func RegisterHandlers(router runtime.EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
Types ¶
type Client ¶
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) Issue9 ¶ added in v1.1.3
func (c *Client) Issue9(ctx context.Context, params *Issue9Params, body *Issue9JSONBody) (*http.Response, error)
Issue9 request with JSON body
type ClientInterface ¶ added in v1.1.5
type ClientInterface interface { // Issue30 request Issue30(ctx context.Context, pFallthrough string) (*http.Response, error) // Issue9 request with JSON body Issue9(ctx context.Context, params *Issue9Params, body *Issue9JSONBody) (*http.Response, error) }
The interface specification for the client above.
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) *ClientWithResponses
NewClientWithResponses returns a ClientWithResponses with a default Client:
func (*ClientWithResponses) Issue30WithResponse ¶ added in v1.1.7
func (c *ClientWithResponses) Issue30WithResponse(ctx context.Context, pFallthrough string) (*issue30Response, error)
Issue30 request returning *Issue30Response
func (*ClientWithResponses) Issue9WithResponse ¶ added in v1.1.6
func (c *ClientWithResponses) Issue9WithResponse(ctx context.Context, params *Issue9Params, body *Issue9JSONBody) (*issue9Response, error)
Issue9 request with JSON body returning *Issue9Response
type CustomStringType ¶ added in v1.1.2
type CustomStringType string
CustomStringType defines model for CustomStringType.
type GenericObject ¶
type GenericObject map[string]interface{}
GenericObject defines model for GenericObject.
type Issue9JSONBody ¶ added in v1.2.0
type Issue9JSONBody interface{}
Issue9JSONBody defines parameters for Issue9.
type Issue9Params ¶ added in v1.1.3
type Issue9Params struct {
Foo string `json:"foo"`
}
Issue9Params defines parameters for Issue9.
type ServerInterface ¶
type ServerInterface interface { // (GET /issues/30/{fallthrough}) Issue30(ctx echo.Context, pFallthrough string) error // (GET /issues/9) Issue9(ctx echo.Context, params Issue9Params) error }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) Issue30 ¶ added in v1.1.7
func (w *ServerInterfaceWrapper) Issue30(ctx echo.Context) error
Issue30 converts echo context to params.
func (*ServerInterfaceWrapper) Issue9 ¶ added in v1.1.3
func (w *ServerInterfaceWrapper) Issue9(ctx echo.Context) error
Issue9 converts echo context to params.