mock

package
v0.0.0-...-a53e0fd Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func (*Backend) Login

func (be *Backend) Login(_ *imap.ConnInfo, username, password string) (backend.User, error)

func (*Backend) RegisterUser

func (be *Backend) RegisterUser(username, password string)

type LocalBackend

type LocalBackend interface {
	backend.Backend
	RegisterUser(username, password string)
	CreateMailbox(username, mbname string) error
	StoreMessage(username, mbname, body string)
}

func New

func New() LocalBackend

NOTE:(tauraamui) having our own implementation of a mock IMAP server backend will allow us more control for things like number of mailboxes and the number of messages per mailbox

Jump to

Keyboard shortcuts

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