Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_TAG = "default"
DEFAULT_TAG is name of default tag
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
GetChannel() chan<- *MailLog
}
Logger is logger interface for service log
type MailMsg ¶
type MailMsg struct { From string `json:"from" validate:"required,email"` To []string `json:"to" validate:"required,dive,email"` Subject string `json:"subject"` Body string `json:"body" validate:"required"` // Tag is not part of email, we use it for analysing Tag string `json:"tag"` // ID is uuid of this message ID string `json:"id" validate:"required"` }
MailMsg is msg we received from rabbit mq
Click to show internal directories.
Click to hide internal directories.