echoswagger

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WrapHandler = Handler()

WrapHandler wraps swaggerFiles.Handler and returns echo.HandlerFunc

Functions

func AddToSwagger

func AddToSwagger(ec echo.Context) (method swagger.IMethod)

AddToSwagger - add endpoint description to the OpenAPI Specification

func BuildSwagger

func BuildSwagger(srv *echo.Echo, swaggerPath, address string, sw swagger.ISwaggerAPI, logger *zerolog.Logger) (err error)

BuildSwagger - build the OpenAPI Specification in JSON format

func ExcludeFromSwagger

func ExcludeFromSwagger(next echo.HandlerFunc) echo.HandlerFunc

ExcludeFromSwagger - middleware for exclude swagger description for selected endpoint.

func Handler

func Handler(confs ...func(c *swagger.Config)) echo.HandlerFunc

Handler wraps `http.Handler` into `echo.HandlerFunc`.

func IsBuildingSwagger

func IsBuildingSwagger(ec echo.Context) bool

IsBuildingSwagger - mark that we build swagger description for endpoint

Types

This section is empty.

Jump to

Keyboard shortcuts

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