Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IMailService ¶
IMailService interface
type MailSender ¶
MailSender interface
type MailService ¶
type MailService struct {
SMTP MailSender
}
MailService send email
func NewMailService ¶
func NewMailService(server MailSender) *MailService
NewMailService retourne un MailService
type SMTP ¶
type SMTP struct {
// contains filtered or unexported fields
}
SMTP SMTP server
type SMTPEnvironment ¶
SMTPEnvironment configurations
func (*SMTPEnvironment) GetEnvironment ¶
func (se *SMTPEnvironment) GetEnvironment(environment string) interface{}
GetEnvironment returns a SMTP Server configuration for the specified environment in parameter
func (*SMTPEnvironment) UnmarshalYAML ¶
func (se *SMTPEnvironment) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements Unmarshaler. Avoid use of env in the YAML file.
Click to show internal directories.
Click to hide internal directories.