service

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth added in v0.4.0

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

func NewAuth added in v0.4.0

func NewAuth(config *domain.ConfigSMTP) *Auth

func (*Auth) AnonymousLogin added in v0.4.0

func (m *Auth) AnonymousLogin() bool

func (*Auth) Login added in v0.4.0

func (m *Auth) Login(username, password string) error

type Bridge

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

func NewBridge

func NewBridge(dao domain.DAO, bridges []domain.Bridge) *Bridge

func (*Bridge) GetBridges added in v0.1.0

func (b *Bridge) GetBridges(msg *domain.Message) []domain.Bridge

type Endpoint added in v0.4.0

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

func NewEndpoint added in v0.4.0

func NewEndpoint(dao domain.DAO) *Endpoint

func (*Endpoint) SendBridges added in v0.4.0

func (e *Endpoint) SendBridges(msg *domain.Message, bridges []domain.Bridge) error

type Message

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

func NewMessage

func NewMessage(dao domain.DAO) *Message

func (*Message) Create

func (m *Message) Create(subject, from string, to map[string]bool, text string) (*domain.Message, error)

func (*Message) CreateAttachment added in v0.4.0

func (m *Message) CreateAttachment(msg *domain.Message, name string, data []byte) (*domain.Attachment, error)

func (*Message) Get added in v0.4.0

func (m *Message) Get(uuid string) (*domain.Message, error)

func (*Message) List added in v0.4.0

func (m *Message) List(limit, offset int) ([]domain.Message, error)

func (*Message) UpdateStatus added in v0.4.0

func (m *Message) UpdateStatus(msg *domain.Message, status domain.Status) error

Jump to

Keyboard shortcuts

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