package
Version:
v0.0.0-...-76d690f
Opens a new window with list of versions in this module.
Published: Feb 2, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Autocert struct {
Enabled bool `yaml:"enabled"`
CacheDir string `yaml:"cache_dir"`
}
type Config struct {
HTTP HTTP `yaml:"http"`
PrivateKeyURL string `yaml:"private_key_url"`
CounterURL string `yaml:"counter_url"`
APIKey string `yaml:"api_key"`
Upstream Upstream `yaml:"upstream"`
ProductID string `yaml:"product_id"`
AllowedAuthTypes []string `yaml:"allowed_auth_types"`
}
type HTTP struct {
ListenAddress string `yaml:"listen_address"`
TLS *struct {
Autocert *Autocert `yaml:"autocert,omitempty"`
Certificate string `yaml:"certificate,omitempty"`
Key string `yaml:"key,omitempty"`
} `yaml:"tls,omitempty"`
}
type Upstream struct {
URL string `yaml:"url"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.