package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Mar 7, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
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 `yaml:"remote_server"`
RemotePublicKey string `yaml:"remote_public_key"`
PrivateKey string `yaml:"private_key"`
UrlPrefix string `yaml:"url_prefix"`
Provider Provider `yaml:"provider"`
}
type Cache struct {
Type string `yaml:"type"`
RedisAddr string `yaml:"redis_addr"`
RedisDB int `yaml:"redis_db"`
RedisPassword string `yaml:"redis_password"`
}
type Config struct {
ListenAddr string `yaml:"listen_addr"`
Metrics Metrics `yaml:"metrics"`
Tls Tls `yaml:"tls"`
Cache Cache `yaml:"cache"`
Auth Auth `yaml:"auth"`
Proxy Proxy `yaml:"proxy"`
Relay Relay `yaml:"relay"`
}
type Metrics struct {
ListenAddr string `yaml:"listen_addr"`
}
type Policy struct {
Subs []string `yaml:"subs"`
Emails []string `yaml:"emails"`
Filters []string `yaml:"filters"`
Targets []string `yaml:"targets"`
}
type Provider struct {
Type string `yaml:"type"`
Issuer string `yaml:"issuer"`
ClientID string `yaml:"client_id"`
ClientSecret string `yaml:"client_secret"`
Scopes []string `yaml:"additional_scopes"`
}
type Proxy struct {
PrivateKey string `yaml:"private_key"`
Policies map[string]Policy `yaml:"policies"`
}
type Relay struct {
PrivateKey string `yaml:"private_key"`
RemoteServer string `yaml:"remote_server"`
RemotePublicKey string `yaml:"remote_public_key"`
}
type Tls struct {
Disable bool `yaml:"disable"`
CertFile string `yaml:"cert_file"`
KeyFile string `yaml:"key_file"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.