Documentation ¶
Index ¶
- Constants
- func Bool2String(b bool) string
- func GetMainMessageLoop() chan MainEventMessage
- func ParseQuoteAwareFields(rawString string, len int) []string
- func StripQuotes(s string) string
- type ApplicationConfig
- func (config *ApplicationConfig) GetApplicationVersion() string
- func (config *ApplicationConfig) GetBackendConfig() *BackendConfig
- func (config *ApplicationConfig) GetImap4ServerConfig() *Imap4ServerConfig
- func (config *ApplicationConfig) GetLogLevel() uint32
- func (config *ApplicationConfig) GetSmtpServerConfig() *SmtpServerConfig
- func (e *ApplicationConfig) PopulateDefault() *ApplicationConfig
- type BackendConfig
- type Imap4ServerConfig
- type MailMessage
- type MailMessageType
- type MainEventMessage
- type SmtpServerConfig
- type StorageConnector
- type StorageMessage
- type StorageMessageBuilder
- func (s *StorageMessageBuilder) Build() StorageMessage
- func (s *StorageMessageBuilder) IsValidCommandMessage(command string) *StorageMessageBuilder
- func (m *StorageMessageBuilder) MsgCommand() StorageMessageCommand
- func (m *StorageMessageBuilder) MsgData() interface{}
- func (m *StorageMessageBuilder) MsgType() StorageMessageType
- func (s *StorageMessageBuilder) StorageCommandMessage(command string, args string) *StorageMessageBuilder
- func (s *StorageMessageBuilder) SuccessResponseMessage(msgData interface{}) *StorageMessageBuilder
- func (m *StorageMessageBuilder) ToJson() string
- type StorageMessageCommand
- type StorageMessageType
Constants ¶
View Source
const ( SHUTDOWN = iota PING )
View Source
const ( StorageMessageTypeQuery = StorageMessageType("QUERY") StorageMessageTypeSuccessResponse = StorageMessageType("RESPONSE") )
View Source
const ( StorageMessageCommandNone = StorageMessageCommand("NONE") StorageMessageCommandIsValid = StorageMessageCommand("ISVALID") StorageMessageCommandList = StorageMessageCommand("LIST") StorageMessageCommandRename = StorageMessageCommand("RENAME") StorageMessageCommandCreate = StorageMessageCommand("CREATE") )
Variables ¶
This section is empty.
Functions ¶
func Bool2String ¶
func GetMainMessageLoop ¶
func GetMainMessageLoop() chan MainEventMessage
func ParseQuoteAwareFields ¶
func StripQuotes ¶
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct {
// contains filtered or unexported fields
}
func CreateDefaultAppConfig ¶
func CreateDefaultAppConfig() *ApplicationConfig
func GetAppConfig ¶
func GetAppConfig() *ApplicationConfig
func NewApplicationConfig ¶
func NewApplicationConfig() *ApplicationConfig
func (*ApplicationConfig) GetApplicationVersion ¶
func (config *ApplicationConfig) GetApplicationVersion() string
func (*ApplicationConfig) GetBackendConfig ¶
func (config *ApplicationConfig) GetBackendConfig() *BackendConfig
func (*ApplicationConfig) GetImap4ServerConfig ¶
func (config *ApplicationConfig) GetImap4ServerConfig() *Imap4ServerConfig
func (*ApplicationConfig) GetLogLevel ¶
func (config *ApplicationConfig) GetLogLevel() uint32
func (*ApplicationConfig) GetSmtpServerConfig ¶
func (config *ApplicationConfig) GetSmtpServerConfig() *SmtpServerConfig
func (*ApplicationConfig) PopulateDefault ¶
func (e *ApplicationConfig) PopulateDefault() *ApplicationConfig
type BackendConfig ¶
func CreateDefaultBackendConfig ¶
func CreateDefaultBackendConfig() *BackendConfig
type Imap4ServerConfig ¶
type Imap4ServerConfig struct { Port uint32 Hostname string ListenInterface string SMTP_OPTION_SINGLE_MESSAGE_PER_SESSION bool SMTP_OPTION_ALLOW_BARE_LINE_FEED_SUBMIT bool SMTP_OPTION_MAX_QUEUE_BUFFERED_ITEMS int SMTP_OPTION_MAX_QUEUE_WORKERS int Enabled bool }
func CreateDefaultImap4ServerConfig ¶
func CreateDefaultImap4ServerConfig() *Imap4ServerConfig
type MailMessageType ¶
type MailMessageType uint8
type MainEventMessage ¶
type MainEventMessage struct { MessageType interface{} // contains filtered or unexported fields }
type SmtpServerConfig ¶
type SmtpServerConfig struct { Port uint32 Hostname string ListenInterface string SMTP_OPTION_SINGLE_MESSAGE_PER_SESSION bool SMTP_OPTION_ALLOW_BARE_LINE_FEED_SUBMIT bool SMTP_OPTION_MAX_QUEUE_BUFFERED_ITEMS int SMTP_OPTION_MAX_QUEUE_WORKERS int SMTP_OPTION_BACKEND_INTERFACE string Enabled bool }
func CreateDefaultSmtpServerConfig ¶
func CreateDefaultSmtpServerConfig() *SmtpServerConfig
type StorageConnector ¶
type StorageConnector interface {
PerformSendReceive(StorageMessage) (StorageMessage, error)
}
type StorageMessage ¶
type StorageMessage interface { MsgType() StorageMessageType MsgCommand() StorageMessageCommand MsgData() interface{} ToJson() string }
type StorageMessageBuilder ¶
type StorageMessageBuilder struct {
// contains filtered or unexported fields
}
func (*StorageMessageBuilder) Build ¶
func (s *StorageMessageBuilder) Build() StorageMessage
func (*StorageMessageBuilder) IsValidCommandMessage ¶
func (s *StorageMessageBuilder) IsValidCommandMessage(command string) *StorageMessageBuilder
func (*StorageMessageBuilder) MsgCommand ¶
func (m *StorageMessageBuilder) MsgCommand() StorageMessageCommand
func (*StorageMessageBuilder) MsgType ¶
func (m *StorageMessageBuilder) MsgType() StorageMessageType
func (*StorageMessageBuilder) StorageCommandMessage ¶
func (s *StorageMessageBuilder) StorageCommandMessage(command string, args string) *StorageMessageBuilder
func (*StorageMessageBuilder) SuccessResponseMessage ¶
func (s *StorageMessageBuilder) SuccessResponseMessage(msgData interface{}) *StorageMessageBuilder
type StorageMessageCommand ¶
type StorageMessageCommand string
type StorageMessageType ¶
type StorageMessageType string
Click to show internal directories.
Click to hide internal directories.