Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheOptions ¶
type CacheOptions struct { Cookie *CookieOptions `mapstructure:"cookie,omitempty"` Redis *RedisOptions `mapstructure:"redis,omitempty"` }
type CertOptions ¶
type CertOptions struct {
Path string `mapstructure:"path"`
}
type CookieOptions ¶
type CookieOptions struct { }
type CorsOptions ¶
type CorsOptions struct { AllowedOrigins []string `mapstructure:"allowed_origins"` AllowedMethods []string `mapstructure:"allowed_methods"` AllowedHeaders []string `mapstructure:"allowed_headers"` ExposedHeaders []string `mapstructure:"exposed_headers"` AllowCredentials bool `mapstructure:"allow_credentials"` OptionsPassthrough bool `mapstructure:"options_passthrough"` MaxAge int `mapstructure:"max_age"` Debug bool `mapstructure:"debug"` Enabled bool `mapstructure:"enabled"` }
type HydraEndpoint ¶
type HydraEndpoint struct { Schemes []string `mapstructure:"schemes"` Host string `mapstructure:"host"` BasePath string `mapstructure:"base_path"` }
func (HydraEndpoint) AdminClient ¶
func (h HydraEndpoint) AdminClient() admin.ClientService
func (HydraEndpoint) PublicClient ¶
func (h HydraEndpoint) PublicClient() public.ClientService
type HydraOptions ¶
type HydraOptions struct { Admin HydraEndpoint `mapstructure:"admin"` Public HydraEndpoint `mapstructure:"public"` }
type LogOptions ¶
type LogOptions struct {
Level string `mapstructure:"level"`
}
type Options ¶
type Options struct { Serve ServeOptions `mapstructure:"serve"` DSN string `mapstructure:"dsn"` Log LogOptions `mapstructure:"log"` Hydra HydraOptions `mapstructure:"hydra"` }
type RedisOptions ¶
type SecretOptions ¶
type ServeOptions ¶
type ServeOptions struct { FormsApi ServerOptions `mapstructure:"forms_api"` AuthnzApi ServerOptions `mapstructure:"authnz_api"` Login ServerOptions `mapstructure:"login"` AuthnzBouncer ServerOptions `mapstructure:"authnz_bouncer"` }
type ServerOptions ¶
type ServerOptions struct { Host string `mapstructure:"address"` Port int `mapstructure:"port"` Cors CorsOptions `mapstructure:"cors"` Secrets SecretOptions `mapstructure:"secrets"` Cache CacheOptions `mapstructure:"cache"` TLS TLSOptions `mapstructure:"tls"` }
type TLSOptions ¶
type TLSOptions struct { Enabled bool `mapstructure:"enabled"` Cert CertOptions `mapstructure:"cert"` Key CertOptions `mapstructure:"key"` }
Click to show internal directories.
Click to hide internal directories.