backend

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(conf config.Config) error

Setup configures the backend.

Types

type Backend

type Backend interface {
	// Stop closes the backend.
	Stop() error

	// Start starts the backend.
	Start() error

	// Set handler for Subscribe events.
	SetSubscribeEventHandler(func(events.Subscribe))

	// Set handler messages from basestations
	SetBasestationMessageHandler(func(common.EUI64, events.EventType, *bs.BasestationUplink))

	// Set handler for messages from endnodes
	SetEndnodeMessageHandler(func(common.EUI64, events.EventType, *bs.EndnodeUplink))

	// Handler for server command messages
	HandleServerCommand(*bs.ServerCommand) error

	// Handler for server response messages
	HandleServerResponse(*bs.ServerResponse) error
}

Backend defines the interface that a backend must implement

func GetBackend

func GetBackend() Backend

GetBackend returns the backend.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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