Documentation
¶
Index ¶
- func RegisterRoutes(server *rest.Server, op ...opts.Opt[Swaggerv2Opts])
- func SwaggerHandler(config Swaggerv2Opts, w http.ResponseWriter, r *http.Request)
- func SwaggerHandlerFunc(config Swaggerv2Opts) http.HandlerFunc
- func WithSwaggerHost(swaggerHost string) opts.Opt[Swaggerv2Opts]
- func WithSwaggerPath(swaggerPath string) opts.Opt[Swaggerv2Opts]
- func WithSwaggerTemplate(swaggerTemplate string) opts.Opt[Swaggerv2Opts]
- type Swaggerv2Opts
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
func (Swaggerv2Opts) DefaultOptions ¶ added in v0.50.3
func (opts Swaggerv2Opts) DefaultOptions() Swaggerv2Opts
Click to show internal directories.
Click to hide internal directories.