service

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: MIT Imports: 4 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(cfg *config.Config) *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(cfg *config.Config, endpointREPO domain.EndpointRepositoryPort) *Bridge

func (*Bridge) ListByMessage added in v0.5.0

func (b *Bridge) ListByMessage(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(endpointREPO domain.EndpointRepositoryPort) *Endpoint

func (*Endpoint) SendBridges added in v0.4.0

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

type Message

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

func NewMessage

func NewMessage(
	attachmentREPO domain.AttachmentRepositoryPort,
	messageREPO domain.MessageRepositoryPort,
) *Message

func (*Message) Create

func (m *Message) Create(subject, from string, to map[string]struct{}, 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