package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Feb 4, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Auth struct {
RemoteServer string `mapstructure:"remote_server"`
RemotePublicKey string `mapstructure:"remote_public_key"`
PrivateKey string `mapstructure:"private_key"`
UrlPrefix string `mapstructure:"url_prefix"`
Provider Provider `mapstructure:"provider"`
}
type Cache struct {
Type string `mapstructure:"type"`
RedisAddr string `mapstructure:"redis_addr"`
RedisDB int `mapstructure:"redis_db"`
RedisPassword string `mapstructure:"redis_password"`
}
type Config struct {
ListenAddr string `mapstructure:"listen_addr"`
Tls Tls `mapstructure:"tls"`
Cache Cache `mapstructure:"cache"`
Auth Auth `mapstructure:"auth"`
Proxy Proxy `mapstructure:"proxy"`
}
type Policy struct {
Subs []string `mapstructure:"subs"`
Emails []string `mapstructure:"emails"`
Filters []string `mapstructure:"filters"`
Targets []string `mapstructure:"targets"`
}
type Provider struct {
Type string `mapstructure:"type"`
Issuer string `mapstructure:"issuer"`
ClientID string `mapstructure:"client_id"`
ClientSecret string `mapstructure:"client_secret"`
Scopes []string `mapstructure:"additional_scopes"`
}
type Proxy struct {
Policies map[string]Policy `mapstructure:"policies"`
}
type Tls struct {
Disable bool `mapstructure:"disable"`
CertFile string `mapstructure:"cert_file"`
KeyFile string `mapstructure:"key_file"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.