swagger

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 7 Imported by: 1

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