openapi3

package
v0.0.0-...-b4b6aaa Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler() *Handler

func (*Handler) Get

func (h *Handler) Get() http.Handler

func (*Handler) Use

func (h *Handler) Use(middlewares ...func(http.Handler) http.Handler)

func (*Handler) WithOptions

func (h *Handler) WithOptions(options *HandlerOptions) *Handler

func (*Handler) WithSpec

func (r *Handler) WithSpec(spec *openapi3.Swagger) *Handler

type HandlerOptions

type HandlerOptions struct {
	ResponseStatus  int
	ResponseContent string
}

func NewHandlerOptions

func NewHandlerOptions(status int, content string) *HandlerOptions

Jump to

Keyboard shortcuts

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