smtp

package
v1.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(svc Service) (*smtp.Server, error)

Types

type Service

type Service interface {
	smtp.Backend

	GetEmailByID(ctx context.Context, id string) (*model.Email, error)
	DeleteEmailByID(ctx context.Context, id string) error
	FindEmails(ctx context.Context, q *model.FindEmailQuery) ([]*model.Email, error)

	WatchEmails(ctx context.Context) (<-chan *model.Email, error)
}

func New

func New(db lungo.IDatabase) Service

Jump to

Keyboard shortcuts

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