local

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: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DigestScheme = "id"
)

Variables

This section is empty.

Functions

func NewURL

func NewURL(digest [32]byte) string

func ParseURL

func ParseURL(u string) (digest [32]byte, err error)

Types

type HTTPHandler

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

func (HTTPHandler) ServeHTTP

func (h HTTPHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)

type Manager

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

func NewManager

func NewManager(config *config.Config, d *db.Database, processor MessageProcessor, assignmentChangeReporter func(ids.ID, string, bool) error) (*Manager, error)

func (*Manager) ReportGroup

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

func (*Manager) Scan

func (m *Manager) Scan(ctx context.Context) ([]string, error)

func (*Manager) Send

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

func (*Manager) Shutdown

func (m *Manager) Shutdown() error

func (*Manager) Start

func (m *Manager) Start() error

func (*Manager) TransportURLs

func (m *Manager) TransportURLs() []string

type MessageImpl

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

func (*MessageImpl) Body

func (m *MessageImpl) Body() []byte

func (*MessageImpl) From

func (m *MessageImpl) From() string

func (*MessageImpl) To

func (m *MessageImpl) To() string

type MessageProcessor

type MessageProcessor func([]*MessageImpl) error

Jump to

Keyboard shortcuts

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