Documentation ¶
Overview ¶
Package config implements all configuration aspects of KoboMail
Package config implements all configuration aspects of KoboMail
Index ¶
Constants ¶
View Source
const ( DefaultAddonPath = "/mnt/onboard/.adds/kobomail" DefaultLibraryPath = "/mnt/onboard/KoboMailLibrary" )
Set default paths
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IMAPConfig imapConfigSection `koanf:"imap_config" validate:"required"` ProcessingConfig processingConfigSection `koanf:"processing_config" validate:"required"` ApplicationConfig applicationConfigSection `koanf:"application_config" validate:"required"` // contains filtered or unexported fields }
Config config struct
func LoadConfig ¶
LoadConfig instantiates a new Config
func (*Config) Validate ¶
Validate returns if the given configuration is valid and any validation errors
func (Config) ValidateFolder ¶
ValidateFolder validates that the path is a valid folder
func (Config) ValidateLogLevel ¶
ValidateLogLevel validates that the log level is one of the valid log levels
type EmailFlagType ¶
type EmailFlagType string
EmailFlagType enum
const ( EmailFlagTypePlus EmailFlagType = "plus" EmailFlagTypeSubject EmailFlagType = "subject" )
EmailFlagType enum values
Click to show internal directories.
Click to hide internal directories.