interfaces

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: 4 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        string
}

type Email

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

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
	Lenght  int
}

type User

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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