Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Adapter struct { Protocol protocolType Host string Port int Hostname string Auth bool Tls bool Ssl_Hostname string Ssl_Pub_Key string Ssl_Prv_Key string Welcome_Msg string Max_Mail_Size int Rate_Limit int Workers_Size int } Storage *storage.StorageConfig Email_Address_Mode struct { Enabled bool Domains []string } Pop3 struct { Enabled bool Host string Port int Hostname string Tls bool Ssl_Hostname string Ssl_Pub_Key string Ssl_Prv_Key string } Spamassassin struct { Enabled bool Ip string Port int Timeout int } Clamav struct { Enabled bool Host string Port int Timeout int } Proxy struct { Enabled bool Proxy_Mode bool Host string Port int Exclude_Self bool Client_Ports struct { Smtp []int Pop3 []int } } Redis struct { Enabled bool Host string Port int Pool int Timeout int Hook_Username string Hook_Password string Sidekiq_Queue string Sidekiq_Class string } Log struct { Debug bool } DbPool *storage.DBConn RedisPool *redis.Pool SmtpPortRanges []int Pop3PortRanges []int }
func ReadConfig ¶
ReadEnvirons reads the juju config.yml file and returns the result of running Config on the file's contents.
Click to show internal directories.
Click to hide internal directories.