agreement

package
v0.0.0-...-4862416 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const HEARTBEAT = "HeartBeat"

for identifying the subworkers used by this worker

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvertisePolicyCommand

type AdvertisePolicyCommand struct {
	PolicyFile string
}

==============================================================================================================

func NewAdvertisePolicyCommand

func NewAdvertisePolicyCommand(fileName string) *AdvertisePolicyCommand

func (AdvertisePolicyCommand) ShortString

func (a AdvertisePolicyCommand) ShortString() string

type AgreementWorker

type AgreementWorker struct {
	worker.BaseWorker // embedded field
	// contains filtered or unexported fields
}

must be safely-constructed!!

func NewAgreementWorker

func NewAgreementWorker(name string, cfg *config.HorizonConfig, db *bolt.DB, pm *policy.PolicyManager) *AgreementWorker

func (*AgreementWorker) CommandHandler

func (w *AgreementWorker) CommandHandler(command worker.Command) bool

Enter the command processing loop. Initialization is complete so wait for commands to perform. Commands are created as the result of events that are triggered elsewhere in the system. This function returns ture if the command was handled, false if not.

func (*AgreementWorker) Initialize

func (w *AgreementWorker) Initialize() bool

Initialize the agreement worker before it begins processing commands.

func (*AgreementWorker) Messages

func (w *AgreementWorker) Messages() chan events.Message

func (*AgreementWorker) NewEvent

func (w *AgreementWorker) NewEvent(incoming events.Message)

type DeviceRegisteredCommand

type DeviceRegisteredCommand struct {
	Msg *events.EdgeRegisteredExchangeMessage
}

func (DeviceRegisteredCommand) ShortString

func (d DeviceRegisteredCommand) ShortString() string

type EdgeConfigCompleteCommand

type EdgeConfigCompleteCommand struct {
	Msg *events.EdgeConfigCompleteMessage
}

==============================================================================================================

func (EdgeConfigCompleteCommand) ShortString

func (d EdgeConfigCompleteCommand) ShortString() string

Jump to

Keyboard shortcuts

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