Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SentryDSN string `help:"the DSN used for logging errors to Sentry"` DB string `help:"URL describing how to connect to the RapidPro database"` DBPoolSize int `help:"the size of our db pool"` Redis string `help:"URL describing how to connect to Redis"` Version string `help:"the version of this mailroom install"` LogLevel string `help:"the logging level courier should use"` SMTPServer string `help:"the smtp configuration for sending emails ex: smtp://user%40password@server:port/?from=foo%40gmail.com"` BatchWorkers int `help:"the number of go routines that will be used to handle batch events"` HandlerWorkers int `help:"the number of go routines that will be used to handle messages"` LibratoUsername string `help:"the username that will be used to authenticate to Librato"` LibratoToken string `help:"the token that will be used to authenticate to Librato"` AttachmentDomain string `help:"the domain that will be used for relative attachment"` AuthToken string `help:"the token clients will need to authenticate web requests"` Address string `help:"the address to bind our web server to"` Port int `help:"the port to bind our web server to"` }
Config is our top level configuration object
var Mailroom *Config
func NewMailroomConfig ¶
func NewMailroomConfig() *Config
NewMailroomConfig returns a new default configuration object
Click to show internal directories.
Click to hide internal directories.