Documentation ¶
Index ¶
Constants ¶
View Source
const ( ROLE_WORKER = "worker" ROLE_API = "api" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type Config ¶
type Config struct { Role string `mapstructure:"role"` DataCenter string `mapstructure:"datacenter"` Environment string `mapstructure:"environment"` PublicHTTP HTTPConfig `mapstructure:"public-http"` Log LogConfig `mapstructure:"log"` PDNS PDNSConfig `mapstructure:"pdns"` Consul ConsulConfig `mapstructure:"consul"` LDAP LDAPConfig `mapstructure:"ldap"` InternalHTTP HTTPConfig `mapstructure:"internal-http"` Version string Build string }
type ConsulConfig ¶
type ConsulConfig struct {
Address string `mastructure:"address"`
}
type HTTPConfig ¶
type HTTPConfig struct { Address string `mapstructure:"listen-address"` Port string `mapstructure:"listen-port"` Timeout HTTPTimeoutConfig `mapstructure:"timeout"` }
type HTTPTimeoutConfig ¶
type LDAPConfig ¶
type LDAPConfig struct { Enabled bool `mapstructure:"enabled"` URL string `mapstructure:"url"` User string `mapstructure:"user"` Password string `mapstructure:"password"` BaseDN string `mapstructure:"base-dn"` SearchBase string `mapstructure:"search-base"` SearchFilter string `mapstructure:"search-filter"` Debug bool `mapstructure:"debug"` }
LDAPConfig represents LDAP settings in config
type PDNSConfig ¶
type PDNSConfig struct { RecursorConfig RecursorConfig `mapstructure:"recursor"` AuthConfig AuthConfig `mapstructure:"auth"` }
type RecursorConfig ¶
Click to show internal directories.
Click to hide internal directories.