components

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: 9 Imported by: 0

Documentation

Overview

Package components 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 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.

type ClientInterface added in v1.1.5

type ClientInterface interface {
}

The interface specification for the client above.

type ParameterObject

type ParameterObject string

ParameterObject defines component parameter for "ParameterObject"

type RequestBody

type RequestBody struct {
	Field SchemaObject `json:"Field"`
}

RequestBody defines component requestBodies for RequestBody.

type ResponseObject

type ResponseObject struct {
	Field SchemaObject `json:"Field"`
}

ResponseObject defines component response for ResponseObject.

type SchemaObject

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

SchemaObject defines component schema for SchemaObject.

type ServerInterface

type ServerInterface interface {
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

Jump to

Keyboard shortcuts

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