mailer

package
v0.0.0-...-1649e63 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func NewAdapter

func NewAdapter(nats *nats.Conn, timeout time.Duration) *Adapter

func (*Adapter) Publish

func (a *Adapter) Publish(sub string, data []byte) error

type Client

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

func NewClient

func NewClient(pub Publisher, log *slog.Logger) *Client

func (*Client) Send

func (c *Client) Send(ctx context.Context, html, subject string, to ...string) error

type Publisher

type Publisher interface {
	Publish(name string, data []byte) error
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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