schemas

package
v1.1.5 Latest Latest
Warning

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

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

Documentation

Overview

Package schemas 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 NewIssue9Request added in v1.1.3

func NewIssue9Request(server string, params *Issue9Params, body *Issue9RequestBody) (*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 RegisterHandlers

func RegisterHandlers(router runtime.EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

Types

type AnyType1

type AnyType1 interface{}

AnyType1 defines component schema for AnyType1.

type AnyType2

type AnyType2 interface{}

AnyType2 defines component schema for AnyType2.

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 *Issue9RequestBody) (*http.Response, error)

Issue9 request with JSON body

type ClientInterface added in v1.1.5

type ClientInterface interface {
	// Issue9 request with JSON body
	Issue9(ctx context.Context, params *Issue9Params, body *Issue9RequestBody) (*http.Response, error)
}

The interface specification for the client above.

type CustomStringType added in v1.1.2

type CustomStringType string

CustomStringType defines component schema for CustomStringType.

type GenericObject

type GenericObject map[string]interface{}

GenericObject defines component schema for GenericObject.

type Issue9Params added in v1.1.3

type Issue9Params struct {
	Foo string `json:"foo"`
}

Issue9Params defines parameters for Issue9.

type Issue9RequestBody added in v1.1.3

type Issue9RequestBody interface{}

Issue9RequestBody defines body for Issue9 for application/json ContentType.

type ServerInterface

type ServerInterface interface {
	//  (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) Issue9 added in v1.1.3

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

Issue9 converts echo context to params.

Jump to

Keyboard shortcuts

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