options

package
v0.0.0-...-b9b5e9f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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 Claims

type Claims struct {
	Subject string
}

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 RedisOptions struct {
	MaxIdleConnections int    `mapstructure:"max_idle_connections"`
	Address            string `mapstructure:"address"`
	Password           string `mapstructure:"password"`
	MaxLength          int    `mapstructure:"max_length"`
}

type SecretOptions

type SecretOptions struct {
	Hash  []string `mapstructure:"hash"`
	Block []string `mapstructure:"block"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL