Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version of this build, set by main Version = "" // BuildDate for this build, set by main BuildDate = "" // Config is our global robfig/config object Config *config.Config )
Functions ¶
func LoadConfig ¶
LoadConfig loads the specified configuration file into inbucket.Config and performs validations on it.
Types ¶
type DataStoreConfig ¶
type DataStoreConfig struct { Path string RetentionMinutes int RetentionSleep int MailboxMsgCap int }
DataStoreConfig contains the mail store configuration
func GetDataStoreConfig ¶
func GetDataStoreConfig() DataStoreConfig
GetDataStoreConfig returns a copy of the DataStoreConfig object
type POP3Config ¶
POP3Config contains the POP3 server configuration
func GetPOP3Config ¶
func GetPOP3Config() POP3Config
GetPOP3Config returns a copy of the Pop3Config object
type SMTPConfig ¶
type SMTPConfig struct { IP4address net.IP IP4port int Domain string DomainNoStore string MaxRecipients int MaxIdleSeconds int MaxMessageBytes int StoreMessages bool }
SMTPConfig contains the SMTP server configuration - not using pointers so that we can pass around copies of the object safely.
func GetSMTPConfig ¶
func GetSMTPConfig() SMTPConfig
GetSMTPConfig returns a copy of the SmtpConfig object
type WebConfig ¶
type WebConfig struct { IP4address net.IP IP4port int TemplateDir string TemplateCache bool PublicDir string GreetingFile string MailboxPrompt string CookieAuthKey string MonitorVisible bool MonitorHistory int }
WebConfig contains the HTTP server configuration
func GetWebConfig ¶
func GetWebConfig() WebConfig
GetWebConfig returns a copy of the WebConfig object
Click to show internal directories.
Click to hide internal directories.