Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_DATABASE_HOST = "localhost" DEFAULT_DATABASE_PORT = 3306 DEFAULT_DATABASE_NAME = "opendmarc" DEFAULT_DATABASE_USER = "opendmarc" DEFAULT_DATABASE_PASS = "opendmarc" DEFAULT_SMTP_HOST = "localhost" DEFAULT_SMTP_PORT = 25 DEFAULT_SMTP_USER = "postmaster@localdomain" DEFAULT_SMTP_PASS = "opendmarc" DEFAULT_INTERVAL = "24h" DEFAULT_DAT_PATH = "/var/tmp/" )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultDSN ¶
func GetDefaultDSN() string
func GetDefaultSmtp ¶
func GetDefaultSmtp() string
Types ¶
type Config ¶
type Config interface { JSON() []byte YAML() []byte TOML() []byte Connect() GetInterval() time.Duration IsDayMode() bool IsTesting() bool IsUpdate() bool GetOrg() string GetEmail() *tools.MailAddress GetMakeRecipient(to tools.ListMailAddress) tools.ListMailAddress GetDatabase() *sql.DB GetSMTP() SMTP GetHTTP(url string) HTTP GetFTP(url string) FTP }
Click to show internal directories.
Click to hide internal directories.