package
Version:
v0.0.0-...-8cd5d0d
Opens a new window with list of versions in this module.
Published: Aug 3, 2022
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 ACME struct {
Email string `toml:"email"`
DirectoryURL string `toml:"directory_url"`
}
type API struct {
UseSSL bool `toml:"use_ssl"`
Domain string `toml:"domain"`
CertFile string `toml:"cert_file"`
KeyFile string `toml:"key_file"`
Port int `toml:"port"`
Token string `toml:"token"`
AllowedIPs []string `toml:"allowed_ips"`
}
type Config struct {
CertDirectory string `toml:"cert_directory"`
MaxBodyBytes int `toml:"max_body_bytes"`
StrictSNIHost bool `toml:"strict_sni_host"`
HSTS bool `toml:"hsts"`
API API `toml:"api"`
ACME ACME `toml:"acme"`
Redis Redis `toml:"redis"`
}
ParseFile returns a new decoded Config using given path.
type Redis struct {
Prefix string `toml:"prefix"`
Host string `toml:"host"`
Port int `toml:"port"`
Password string `toml:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.