mail

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is mail gun client

func NewClient

func NewClient(domain, privateKey, recipient, from string) *Client

NewClient construct a mail gun notifier client

func (*Client) Close

func (mc *Client) Close() error

func (*Client) GetName

func (mc *Client) GetName() string

func (*Client) Notify

func (mc *Client) Notify(ctx context.Context, msg *types.Message) error

Notify impl notifier's notify

func (*Client) SetLogger

func (mc *Client) SetLogger(logger log.Logger)

Jump to

Keyboard shortcuts

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