Documentation
¶
Index ¶
- Variables
- func Handler(opts ...Option) func(w http.ResponseWriter, r *http.Request)
- type Option
- func WithBasePath(basePath string) Option
- func WithConfigFns(fns ...func(*httpSwagger.Config)) Option
- func WithDescription(description string) Option
- func WithHost(host string) Option
- func WithInfoInstanceName(infoInstanceName string) Option
- func WithSchemes(schemes ...string) Option
- func WithTitle(title string) Option
- func WithVersion(version string) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultInfoInstanceName = "swagger"
Functions ¶
Types ¶
type Option ¶
type Option func(*option)
func WithBasePath ¶
WithBasePath sets the base path of the API.
func WithConfigFns ¶
func WithConfigFns(fns ...func(*httpSwagger.Config)) Option
func WithDescription ¶
WithDescription sets the description of the API.
func WithInfoInstanceName ¶
WithInfoInstanceName sets the name of the swagger instance to be used.
The default name is "swagger".
func WithSchemes ¶
WithSchemes sets the schemes of the API.
Click to show internal directories.
Click to hide internal directories.