Help us shape the future of Go! Take the 2026 Go Developer Survey

swagger

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SwaggerDoc

func SwaggerDoc(basePath string, swaggerJson []byte, opts ...Opts) echo.MiddlewareFunc

SwaggerDoc creates a middleware to serve a documentation site for a swagger spec. This allows for altering the spec before starting the http listener.

Types

type Opts

type Opts func(*swaggerConfig)

func SetSwaggerAuthorizer

func SetSwaggerAuthorizer(f func(*http.Request) bool) Opts

func SetSwaggerHost

func SetSwaggerHost(host string) Opts

func SetSwaggerIsHTTPS

func SetSwaggerIsHTTPS(b bool) Opts

Jump to

Keyboard shortcuts

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