inbucket

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(baseURL string) (mail.Mailer, error)

New creates a new client of an inbucket server.

Types

type Client

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

Client of an inbucket server.

func (*Client) Clear

func (c *Client) Clear(_ context.Context, address string) error

Clear deletes all messages in the given address.

func (*Client) Del

func (c *Client) Del(ctx context.Context, address string, id string) error

Del deletes a single message given the address name and message ID.

func (*Client) Domain

func (c *Client) Domain() string

Domain returns the domain of the mailer.

func (*Client) Get

func (c *Client) Get(_ context.Context, address string, id string) (*mail.Body, error)

Get returns the message body by a address name and message ID.

func (*Client) List

func (c *Client) List(_ context.Context, address string) ([]*mail.Header, error)

List returns a list of message headers for the requested address.

Jump to

Keyboard shortcuts

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