smtp

package
v0.0.0-...-794a79b Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string
	Port     int64
	Username string
	Password string
	From     string
}

Config is a wrap for minimal configuration of your smtp deliver way

type Deliver

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

Deliver represents a form of deliver your plutus Sale

func NewDeliver

func NewDeliver(config Config, engine TemplateEngine) (*Deliver, error)

NewSMTPDeliver creates a new devlivery instance

func (*Deliver) DeliverSale

func (smtp *Deliver) DeliverSale(from *plutus.Company, sale *plutus.Sale, metadata ...map[string]string) (*plutus.SaleRepresentation, error)

DeliverSale implements a Plutus delivery channel

func (*Deliver) Name

func (smtp *Deliver) Name() string

Name implements a Plutus delivery channel

type FileSystemEngine

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

func (*FileSystemEngine) GetTemplate

func (engine *FileSystemEngine) GetTemplate(pathname ...string) (string, error)

type NetworkEngine

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

func (*NetworkEngine) GetTemplate

func (engine *NetworkEngine) GetTemplate(pathname ...string) (string, error)

type TemplateEngine

type TemplateEngine interface {
	GetTemplate(pathname ...string) (string, error)
}

Jump to

Keyboard shortcuts

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