model

package
v0.0.0-...-bb1a4e7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMailRequest

type AuthMailRequest struct {
	Username string `json:"name,omitempty" form:"name" query:"name"`
	Email    string `json:"email" form:"email" query:"email"`
	// for account confirmation
	Confirmation string `json:"confirmation,omitempty"`
}

authentication relatead email data wrapper

type EmailSenderMechanism

type EmailSenderMechanism func(maildata *Maildata) (json.RawMessage, error)

current supported methods are: * SendGridMailDelivery * GmailDelivery

type MailAddress

type MailAddress struct {
	User  string
	Email string
}

type Maildata

type Maildata struct {
	From      MailAddress
	To        MailAddress
	Cc        []MailAddress
	Bcc       []MailAddress
	Subject   string
	Plaintext string
	Htmltext  string
}

Jump to

Keyboard shortcuts

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