Documentation ¶
Index ¶
- type AwsSesClient
- type DataReader
- type Message
- type SendOptions
- type Service
- func ApplyOptions(upstream Service, opts ...ServiceOption) Service
- func NewAwsSesService(cfg *config.AwsSesServiceConfig, opts ...ServiceOption) (Service, error)
- func NewAwsSesServiceWithClient(client AwsSesClient, opts ...ServiceOption) Service
- func NewPrintService(w io.Writer, opts ...ServiceOption) Service
- func NewSmtpService(cfg *config.SmtpServiceConfig, opts ...ServiceOption) (Service, error)
- func NewSmtpServiceWithClient(client SmtpClient, opts ...ServiceOption) Service
- type ServiceOption
- type SmtpClient
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsSesClient ¶
type AwsSesClient interface { // SendEmail API operation for Amazon Simple Email Service. SendEmail(input *ses.SendEmailInput) (*ses.SendEmailOutput, error) }
type DataReader ¶
type DataReader struct {
// contains filtered or unexported fields
}
func NewDataReader ¶
func NewDataReader(dir string, defaultFileName string, dataFileName string) (*DataReader, error)
func (*DataReader) Close ¶
func (r *DataReader) Close() error
type SendOptions ¶ added in v0.2.0
type Service ¶
type Service interface { Send(opts *SendOptions) error io.Closer }
func ApplyOptions ¶
func ApplyOptions(upstream Service, opts ...ServiceOption) Service
ApplyOptions wraps the given `upstream` service in the given service options (decorators).
func NewAwsSesService ¶
func NewAwsSesService(cfg *config.AwsSesServiceConfig, opts ...ServiceOption) (Service, error)
func NewAwsSesServiceWithClient ¶
func NewAwsSesServiceWithClient(client AwsSesClient, opts ...ServiceOption) Service
func NewPrintService ¶
func NewPrintService(w io.Writer, opts ...ServiceOption) Service
func NewSmtpService ¶ added in v0.3.0
func NewSmtpService(cfg *config.SmtpServiceConfig, opts ...ServiceOption) (Service, error)
func NewSmtpServiceWithClient ¶ added in v0.3.0
func NewSmtpServiceWithClient(client SmtpClient, opts ...ServiceOption) Service
type ServiceOption ¶
func WithRateLimit ¶
func WithRateLimit(frequency int) ServiceOption
func WithRetries ¶
func WithRetries(retryCount int) ServiceOption
type SmtpClient ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.