handler

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TEMPLATE = `` /* 797-byte string literal not displayed */

Variables

This section is empty.

Functions

func ListEndpointHandler

func ListEndpointHandler(doc *openapi3.Swagger, extras ...Endpoint) http.HandlerFunc

func NewHandler

func NewHandler(doc *openapi3.Swagger, basePath string) http.Handler

func OpenAPIDocHandler

func OpenAPIDocHandler(doc *openapi3.Swagger) http.HandlerFunc

func SwaggerUIHandler

func SwaggerUIHandler(doc *openapi3.Swagger, basePath string) http.HandlerFunc

Types

type Endpoint

type Endpoint struct {
	Method      string `json:"method"`
	Path        string `json:"path"`
	OperationID string `json:"operationId"`
	Summary     string `json:"summary"`
}

func (*Endpoint) String

func (r *Endpoint) String() string

Jump to

Keyboard shortcuts

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