Documentation ¶
Index ¶
- type Config
- type Message
- type Sender
- type Service
- func (service *Service) Close() error
- func (service *Service) Send(ctx context.Context, msg *post.Message) (err error)
- func (service *Service) SendRendered(ctx context.Context, to []post.Address, msg Message) (err error)
- func (service *Service) SendRenderedAsync(ctx context.Context, to []post.Address, msg Message)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SMTPServerAddress string `help:"smtp server address" default:""` TemplatePath string `help:"path to email templates source" default:""` From string `help:"sender email address" default:""` AuthType string `help:"smtp authentication type" releaseDefault:"login" devDefault:"simulate"` Login string `help:"plain/login auth user login" default:""` Password string `help:"plain/login auth user password" default:""` RefreshToken string `help:"refresh token used to retrieve new access token" default:""` ClientID string `help:"oauth2 app's client id" default:""` ClientSecret string `help:"oauth2 app's client secret" default:""` TokenURI string `help:"uri which is used when retrieving new access token" default:""` }
Config defines values needed by mailservice service
type Sender ¶
type Sender interface { SendEmail(ctx context.Context, msg *post.Message) error FromAddress() post.Address }
Sender sends emails
architecture: Service
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service sends template-backed email messages through SMTP
architecture: Service
Click to show internal directories.
Click to hide internal directories.