integration

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventUp    = "up"
	EventStats = "stats"
	EventAck   = "ack"
	EventRaw   = "raw"
)

Event types.

Variables

This section is empty.

Functions

func Setup

func Setup(conf config.Config) error

Setup configures the integration.

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.

func GetIntegration

func GetIntegration() Integration

GetIntegration returns the integration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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