Documentation ¶
Index ¶
- func DeepLinking(deepLinking bool) func(*Config)
- func DefaultModelsExpandDepth(depth int) func(*Config)
- func DocExpansion(docExpansion string) func(*Config)
- func InstanceName(name string) func(*Config)
- func PersistAuthorization(persistAuthorization bool) func(*Config)
- func URL(url string) func(*Config)
- func WrapHandler(handler *webdav.Handler, options ...func(*Config)) buffalo.Handler
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepLinking ¶ added in v1.3.0
DeepLinking set the swagger deep linking configuration.
func DefaultModelsExpandDepth ¶ added in v1.3.0
DefaultModelsExpandDepth set the default expansion depth for models (set to -1 completely hide the models).
func DocExpansion ¶ added in v1.3.0
DocExpansion list, full, none.
func InstanceName ¶ added in v1.3.0
InstanceName set the instance name that was used to generate the swagger documents Defaults to swag.Name ("swagger").
func PersistAuthorization ¶ added in v1.3.0
PersistAuthorization Persist authorization information over browser close/refresh. Defaults to false.
Types ¶
type Config ¶ added in v1.3.0
type Config struct { // The url pointing to API definition (normally swagger.json or swagger.yaml). Default is `doc.json`. URL string DocExpansion string InstanceName string Title string DefaultModelsExpandDepth int DeepLinking bool PersistAuthorization bool }
Config stores ginSwagger configuration variables.
Click to show internal directories.
Click to hide internal directories.