Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventUp = "up" EventStats = "stats" EventAck = "ack" EventRaw = "raw" )
Event types.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Integration ¶
type Integration interface {
// Updates the subscription for the given EUI.
SetBasestationSubscription(subscribe bool, bsEui common.EUI64) error
// Publishes the current state as retained message.
PublishState(ctx context.Context, bsEui common.EUI64, pb *bs.BasestationState) error
// Publish endnode messages.
PublishEndnodeEvent(bsEui common.EUI64, event string, pb *bs.EndnodeUplink) error
// Publish basestation messages.
PublishBasestationEvent(bsEui common.EUI64, event string, pb *bs.BasestationUplink) error
// Set handler for server command messages
SetServerCommandHandler(func(*bs.ServerCommand))
// Set handler for server command messages
SetServerResponseHandler(func(*bs.ServerResponse))
// Start starts the integration.
Start() error
// Stop stops the integration.
Stop() error
}
Integration defines the interface that an integration must implement.
Click to show internal directories.
Click to hide internal directories.