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

swaggerv2

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(server *rest.Server, op ...opts.Opt[Swaggerv2Opts])

func SwaggerHandler added in v0.61.0

func SwaggerHandler(config Swaggerv2Opts, w http.ResponseWriter, r *http.Request)

func SwaggerHandlerFunc added in v0.61.0

func SwaggerHandlerFunc(config Swaggerv2Opts) http.HandlerFunc

func WithSwaggerHost

func WithSwaggerHost(swaggerHost string) opts.Opt[Swaggerv2Opts]

func WithSwaggerPath

func WithSwaggerPath(swaggerPath string) opts.Opt[Swaggerv2Opts]

func WithSwaggerTemplate added in v0.50.3

func WithSwaggerTemplate(swaggerTemplate string) opts.Opt[Swaggerv2Opts]

Types

type Swaggerv2Opts added in v0.50.3

type Swaggerv2Opts struct {
	SwaggerPath     string
	SwaggerHost     string
	SwaggerTemplate string
}

func (Swaggerv2Opts) DefaultOptions added in v0.50.3

func (opts Swaggerv2Opts) DefaultOptions() Swaggerv2Opts

Jump to

Keyboard shortcuts

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