makeless_go_mailer_mailgun

package module
v1.0.0-beta.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2022 License: MIT Imports: 7 Imported by: 0

README

Makeless - Mailer Mailgun

Makeless - SaaS Ecosystem - Golang Mailgun Mailer Implementation

Build Status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

type Mailer struct {
	Handlers map[string]func(data map[string]interface{}, locale string) (makeless_go_mailer.Mail, error)
	Queue    makeless_go_queue.Queue
	Mailgun  *mailgun.MailgunImpl
	ApiBase  string
	Domain   string
	ApiKey   string

	*sync.RWMutex
}

func (*Mailer) GetApiBase

func (mailer *Mailer) GetApiBase() string

func (*Mailer) GetApiKey

func (mailer *Mailer) GetApiKey() string

func (*Mailer) GetDomain

func (mailer *Mailer) GetDomain() string

func (*Mailer) GetHandler

func (mailer *Mailer) GetHandler(name string) (func(data map[string]interface{}, locale string) (makeless_go_mailer.Mail, error), error)

func (*Mailer) GetHandlers

func (mailer *Mailer) GetHandlers() map[string]func(data map[string]interface{}, locale string) (makeless_go_mailer.Mail, error)

func (*Mailer) GetMail

func (mailer *Mailer) GetMail(name string, data map[string]interface{}, locale string) (makeless_go_mailer.Mail, error)

func (*Mailer) GetMailgun

func (mailer *Mailer) GetMailgun() *mailgun.MailgunImpl

func (*Mailer) GetQueue

func (mailer *Mailer) GetQueue() makeless_go_queue.Queue

func (*Mailer) Init

func (mailer *Mailer) Init() error

func (*Mailer) Send

func (mailer *Mailer) Send(ctx context.Context, mail makeless_go_mailer.Mail) error

func (*Mailer) SendQueue

func (mailer *Mailer) SendQueue(mail makeless_go_mailer.Mail) error

func (*Mailer) SetHandler

func (mailer *Mailer) SetHandler(name string, handler func(data map[string]interface{}, locale string) (makeless_go_mailer.Mail, error))

func (*Mailer) SetMailgun

func (mailer *Mailer) SetMailgun(mailgun *mailgun.MailgunImpl)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL