Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { CatchAll bool `json:"catch_all" toml:"catch_all"` Domains []*Domain `json:"domains" toml:"domains"` Zone Zone `json:"zone" toml:"zone"` Web Web `json:"web" toml:"web"` DNS DNS `json:"dns" toml:"dns"` WebDav WebDav `json:"webdav" toml:"webdav"` }
func NewConfigFromFile ¶
NewConfigFromFile reads configuration from specified filename
func NewConfigFromJSONFile ¶
NewConfigFromJSONFile reads configuration from JSON formatted file
func (*Config) GetDomain ¶
GetDomain gets domain details from the loaded configuration. If CatchAll is enabled it will create new Domain record if it doesn't exist
type Domain ¶
type Domain struct { Name string `json:"name" toml:"name"` // TODO: Not implemented yet LetsEncrypt bool `json:"lets_encrypt" toml:"lets_encrypt"` HasSSL bool `json:"has_ssl" toml:"has_ssl"` SSLCertificate string `json:"ssl_certificate" toml:"ssl_certificate"` SSLCertificateKey string `json:"ssl_certificate_key" toml:"ssl_certificate_key"` Zone *Zone `json:"zone" toml:"zone"` }
Click to show internal directories.
Click to hide internal directories.