interfaces

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: LGPL-3.0 Imports: 7 Imported by: 1

Documentation

Overview

package interfaces contains interfaces that are passed to the common functions on the server and web projects. You can import this to use on templates and handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Name        string
	ContentType string
	Data        []byte
}

type Email

type Email struct {
	Headers     map[string][]string
	ID          string
	From        string
	To          []string
	Cc          []string
	BCc         []string
	Date        time.Time
	Subject     string
	Body        string
	Attachments map[string]Attachment
	Raw         []byte
}

func ToEmail added in v0.4.0

func ToEmail(mail parsemail.Email) Email

type File

type File struct {
	*object.File
	Size int64
}

type Info

type Info struct {
	User    string
	Repo    string
	Ref     plumbing.Hash
	RefName string
	Args    string
}

type Mailbox

type Mailbox struct {
	Title   string
	LastMod time.Time
	Length  int
}

type Mailer added in v0.6.2

type Mailer interface {
	Send(mail Email) error
	Save(mail Email) error
	Mailboxes(folder string) ([]Mailbox, error)
	Mails(folder string) ([]Email, error)
	Mail(file string) (Email, error)
}

type User

type User interface {
	Email() string
	Login() string
	Pass() string
}

type Vault added in v0.6.2

type Vault interface {
	GetUser(login string) User
	Validate(login, pass string) bool
}

Directories

Path Synopsis
file adds the common email file handling, but with a twist: here we save emails first by inbox and then subject.
file adds the common email file handling, but with a twist: here we save emails first by inbox and then subject.
gwi contains the email handler for interacting with gwi.
gwi contains the email handler for interacting with gwi.

Jump to

Keyboard shortcuts

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