Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct { // ImapHost is the host address for the IMAP server ImapHost HostDecoder `required:"true" split_words:"true"` // ImapTlsEnabled is true in case the connection accepts TLS connections or false if it doesn't. ImapTlsEnabled bool `default:"true" split_words:"true"` // ImapUsername represents the username for the IMAP server ImapUsername string `required:"true" split_words:"true"` // ImapPassword represents the password set for the user ImapPassword string `required:"true" split_words:"true"` // NotificationUris contains a list of services that should be notified for mails NotificationUris []string `required:"true" split_words:"true"` }
AppConfig contains the app wide configuration
type HostDecoder ¶
type HostDecoder HostInfo
HostDecoder converts the given string value into host and port pair
func (*HostDecoder) Decode ¶
func (hd *HostDecoder) Decode(value string) error
Decode string into hostname and port
Click to show internal directories.
Click to hide internal directories.