Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ APIConfig: APIConfig{ ListenAddr: "127.0.0.1:8888", SigningKey: "", }, DaemonConfig: DaemonConfig{}, DatabaseConfig: DatabaseConfig{ Driver: "sqlite", DSN: "test.db", }, }
DefaultConfig is the OpenDyDNSD default configuration
Functions ¶
Types ¶
type APIConfig ¶
type APIConfig struct { ListenAddr string SigningKey string CertCacheDir string Hostname string AutoTLS bool TokenTTL time.Duration }
APIConfig represent the API configuration
func (APIConfig) SSLEnabled ¶ added in v0.3.0
SSLEnabled determinate if SSL (HTTPS) is enabled for the API
type Config ¶
type Config struct { APIConfig APIConfig `toml:"ApiConfig"` DaemonConfig DaemonConfig DatabaseConfig DatabaseConfig }
Config is the global Daemon configuration
type DNSProvisionerConfig ¶
type DNSProvisionerConfig struct { Name string Config map[string]string Domains []DomainConfig `toml:"Domain"` }
DNSProvisionerConfig represent the configuration of a DNS provisioner
type DaemonConfig ¶
type DaemonConfig struct {
DNSProvisioners []DNSProvisionerConfig `toml:"DnsProvisioner"`
}
DaemonConfig represent the daemon configuration
func (DaemonConfig) Valid ¶
func (dc DaemonConfig) Valid() bool
Valid determinate if config is valid one
type DatabaseConfig ¶
DatabaseConfig represent the database configuration
func (DatabaseConfig) Valid ¶
func (dc DatabaseConfig) Valid() bool
Valid determinate if config is valid one
type DomainConfig ¶ added in v0.3.0
DomainConfig represent a domain
func (DomainConfig) String ¶ added in v0.3.0
func (dc DomainConfig) String() string
Click to show internal directories.
Click to hide internal directories.