service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

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

func NewBridge

func NewBridge(endpointREPO app.EndpointRepositoryPort, bridges []app.Bridge) *Bridge

func (*Bridge) GetBridges added in v0.1.0

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

type Message

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

func NewMessage

func NewMessage(bridgeSVC app.BridgeServicePort, endpointREPO app.EndpointRepositoryPort, messageREPO app.MessageRepositoryPort) *Message

func (*Message) AddAttachment

func (m *Message) AddAttachment(msg *app.Message, name string, data []byte) error

func (*Message) Create

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

func (*Message) Send

func (m *Message) Send(msg *app.Message) error

type MockAuth

type MockAuth struct{}

func NewMockAuth

func NewMockAuth() *MockAuth

func (MockAuth) AnonymousLogin

func (MockAuth) AnonymousLogin() bool

func (MockAuth) Login

func (MockAuth) Login(username, password string) error

Jump to

Keyboard shortcuts

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