transport

package
v0.0.0-...-8fcfbba Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignmentReporter

type AssignmentReporter func(ids.ID, string, bool) error

type Manager

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

func NewManager

func NewManager(config *config.Config, d *db.Database, clock clock.Clock, processOnce bool, processor MessageProcessor, assignmentReporter AssignmentReporter) (*Manager, error)

func (*Manager) AddPushNotificationToken

func (m *Manager) AddPushNotificationToken(token string) error

func (*Manager) DeletePushNotificationToken

func (m *Manager) DeletePushNotificationToken(token string) error

func (*Manager) Preflight

func (m *Manager) Preflight(urls []string) []bool

func (*Manager) RegisterHeyaTransport

func (m *Manager) RegisterHeyaTransport(authToken, host string, port int) error

func (*Manager) ReportGroup

func (m *Manager) ReportGroup(id ids.ID) error

func (*Manager) Send

func (m *Manager) Send(from string, tos []string, body []byte) []error

func (*Manager) Shutdown

func (m *Manager) Shutdown() error

func (*Manager) Start

func (m *Manager) Start() error

func (*Manager) StatusChanged

func (m *Manager) StatusChanged(f func(string, bool))

func (*Manager) URLsForGroup

func (m *Manager) URLsForGroup(id ids.ID) ([]string, error)

func (*Manager) Updates

func (m *Manager) Updates() chan interface{}

func (*Manager) WaitForPending

func (m *Manager) WaitForPending()

type Message

type Message interface {
	From() string
	Body() []byte
}

type MessageProcessor

type MessageProcessor func([]Message) error

type Transport

type Transport struct {
	URL      string
	ETTR     int
	Priority int
}

Directories

Path Synopsis
Defines package responsible for performing the actual sending and receiving of messages to URLs.
Defines package responsible for performing the actual sending and receiving of messages to URLs.

Jump to

Keyboard shortcuts

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