service

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 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 Bridge

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

func NewBridge

func NewBridge(bridges []app.Bridge, endpoints map[string]app.EndpointPort) *Bridge

func (*Bridge) GetEndpoints

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

type Message

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

func NewMessage

func NewMessage(bridgeSVC app.BridgeServicePort, 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