Versions in this module Expand all Collapse all v4 v4.27.1 May 31, 2024 v4.27.0 May 31, 2024 Changes in this version + func BasicAuthFieldSpec() docs.FieldSpec + func ServerCORSFieldSpec() docs.FieldSpec + type BasicAuthConfig struct + Algorithm string + Enabled bool + PasswordHash string + Realm string + Salt string + Username string + func BasicAuthConfigFromParsed(pConf *docs.ParsedConfig) (conf BasicAuthConfig, err error) + func NewBasicAuthConfig() BasicAuthConfig + func (b BasicAuthConfig) Validate() error + func (b BasicAuthConfig) WrapHandler(next http.HandlerFunc) http.HandlerFunc + type CORSConfig struct + AllowedOrigins []string + Enabled bool + func CORSConfigFromParsed(pConf *docs.ParsedConfig) (conf CORSConfig, err error) + func NewServerCORSConfig() CORSConfig + func (conf CORSConfig) WrapHandler(handler http.Handler) (http.Handler, error)