mail

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Name string = "mail"

Functions

func Approve

func Approve(p *async.P, req ApprovalRequest) *async.P

func InitService added in v0.3.0

func InitService(cfg Config) async.Service

Types

type ApprovalRequest

type ApprovalRequest struct {
	Message string
	To      []string
	Time    int64
}

func (ApprovalRequest) Type

func (s ApprovalRequest) Type() *async.Type

type ApprovalResponse

type ApprovalResponse struct {
	Approved bool
	Comments string
	Time     int64
}

func (ApprovalResponse) Type

func (s ApprovalResponse) Type() *async.Type

type ApproveProcess

type ApproveProcess struct {
}

func (*ApproveProcess) Start added in v0.3.0

func (a *ApproveProcess) Start(p *async.P, req ApprovalRequest) error

func (ApproveProcess) Type

func (s ApproveProcess) Type() *async.Type

type Client

type Client struct {
	// contains filtered or unexported fields
}
var Instance *Client

func (*Client) CheckConn added in v0.3.0

func (c *Client) CheckConn(ctx context.Context) error

func (Client) PollMail added in v0.3.0

func (c Client) PollMail(ctx context.Context, client async.RuntimeClient) error

type Config added in v0.3.0

type Config struct {
	Username string
	Password string
	IMAPHost string
	IMAPPort int
	SMTPHost string
	SMTPPort int
	From     string
}

Jump to

Keyboard shortcuts

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