Documentation
¶
Index ¶
Constants ¶
View Source
const ( SenderCollection = "emailSenders" RecipientCollection = "emailRecipients" )
Variables ¶
This section is empty.
Functions ¶
func CheckFormat ¶
Types ¶
type Options ¶
type Options struct {
Recipients []Recipient `json:"recipients" bson:"recipients"`
Senders []Sender `json:"senders" bson:"senders"`
}
func (*Options) InitOkStatus ¶
func (o *Options) InitOkStatus()
type Recipient ¶
type Recipient struct {
Address string `json:"address" bson:"address"`
Note string `json:"note" bson:"note"`
Enabled bool `json:"enabled,omitempty" bson:"-"`
Status status.Settings `json:"status" bson:"status" yaml:"-"`
}
func (*Recipient) InitUpdateStatus ¶
func (r *Recipient) InitUpdateStatus()
type Sender ¶
type Sender struct {
Host string `json:"host,omitempty" bson:"host" yaml:"host,omitempty"`
Port int `json:"port,omitempty" bson:"port" yaml:"port,omitempty"`
Username string `json:"username,omitempty" bson:"username" yaml:"username,omitempty"`
Password string `json:"password,omitzero" bson:"password" yaml:"password,omitempty"`
Email string `json:"email,omitempty" bson:"email" yaml:"email,omitempty"`
AccessVerified bool `json:"accessVerified" bson:"accessVerified" yaml:"-"`
Status *status.Settings `json:"status,omitempty" bson:"status" yaml:"-"`
}
func (*Sender) ErasePassword ¶
func (s *Sender) ErasePassword()
func (*Sender) InitOkStatus ¶
func (s *Sender) InitOkStatus()
func (*Sender) InitUpdateStatus ¶
func (s *Sender) InitUpdateStatus()
func (*Sender) RequirePasswordChange ¶
func (*Sender) ResetAccessVerification ¶
func (s *Sender) ResetAccessVerification()
Click to show internal directories.
Click to hide internal directories.