Documentation
¶
Index ¶
- Variables
- func CSPConnectSrc(urls ...string) func(*Config)
- func DeepLinking(deepLinking bool) func(*Config)
- func DocExpansion(docExpansion string) func(*Config)
- func DomID(domID string) func(*Config)
- func GinWrapHandler(options ...func(*Config)) gin.HandlerFunc
- func InstanceName(instanceName string) func(*Config)
- func OAuth(config *OAuthConfig) func(*Config)
- func PersistAuthorization(persistAuthorization bool) func(*Config)
- func SyntaxHighlight(syntaxHighlight bool) func(*Config)
- func URL(url string) func(*Config)
- type Config
- type OAuthConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var WrapHandler = GinWrapHandler()
Functions ¶
func CSPConnectSrc ¶ added in v1.32.0
CSPConnectSrc adds URLs to the Content Security Policy's connect-src directive. This is necessary to allow the Swagger UI to communicate with Keycloak for authentication. Note: The connect-src directive expects only scheme://host:port without paths
func DeepLinking ¶
func DocExpansion ¶
func GinWrapHandler ¶
func GinWrapHandler(options ...func(*Config)) gin.HandlerFunc
func InstanceName ¶
func OAuth ¶
func OAuth(config *OAuthConfig) func(*Config)
func PersistAuthorization ¶
func SyntaxHighlight ¶
Types ¶
type Config ¶
type Config struct {
URLs []string
DocExpansion string
DomID string
InstanceName string
DeepLinking bool
PersistAuthorization bool
SyntaxHighlight bool
OAuth *OAuthConfig
CSPConnectSrc []string
}
Config stores ginSwagger configuration variables.
type OAuthConfig ¶
Click to show internal directories.
Click to hide internal directories.
