file

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: LGPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileConfig

type FileConfig struct {
	Root      string
	Templates string
	Password  string
	Domain    string
}

FileConfig is used to configure the file handler, now it only contains the root folder that holds all emails.

type FileHandler added in v0.4.0

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

func NewFileHandler added in v0.4.0

func NewFileHandler(c FileConfig, fs map[string]any) (FileHandler, error)

func (FileHandler) IndexHandler added in v0.4.0

func (f FileHandler) IndexHandler() http.HandlerFunc

func (FileHandler) Mail added in v0.4.0

func (f FileHandler) Mail(file string) (interfaces.Email, error)

func (FileHandler) Mailboxes added in v0.4.0

func (f FileHandler) Mailboxes(folder string) ([]interfaces.Mailbox, error)

func (FileHandler) Mails added in v0.4.0

func (f FileHandler) Mails(folder string) ([]interfaces.Email, error)

func (FileHandler) Save added in v0.4.0

func (f FileHandler) Save(email interfaces.Email, content []byte) error

func (FileHandler) SaveSent added in v0.4.0

func (f FileHandler) SaveSent(email interfaces.Email, content []byte) error

func (FileHandler) SendHandler added in v0.4.0

func (f FileHandler) SendHandler() http.HandlerFunc

Jump to

Keyboard shortcuts

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