relay

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2016 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Announcer

type Announcer interface {
	SendAnnouncement()
	SetSubscriptions() error
	Run() error
	Halt()
}

Announcer announces Relay bundles lists to Cog

func NewAnnouncer

func NewAnnouncer(relayID string, conn bus.Connection, catalog *bundle.Catalog) Announcer

NewAnnouncer creates a new Announcer

type DynamicConfigUpdater added in v0.9.0

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

DynamicConfigUpdater periodically updates bundle dynamic configurations from Cog

func NewDynamicConfigUpdater added in v0.9.0

func NewDynamicConfigUpdater(relayID string, busOpts bus.ConnectionOptions, dynamicConfigRoot string,
	refreshInterval time.Duration) *DynamicConfigUpdater

NewDynamicConfigUpdater creates a new updater

func (*DynamicConfigUpdater) Halt added in v0.9.0

func (dcu *DynamicConfigUpdater) Halt()

Halt tells the DCU to stop.

func (*DynamicConfigUpdater) Run added in v0.9.0

func (dcu *DynamicConfigUpdater) Run() error

type Relay

type Relay interface {
	Start() error
	Stop() error
}

Relay is responsible for connecting to the message bus and processing directly or dispatching to a worker pool any incoming messages.

func NewRelay added in v0.7.0

func NewRelay(config *config.Config) (Relay, error)

NewRelay constructs a new Relay instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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