adr

package
v3.0.0-...-0efb78a Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetADRAlgorithms

func GetADRAlgorithms() map[string]string

GetADRAlgorithms returns the available ADR algorithms.

func GetHandler

func GetHandler(id string) adr.Handler

GetHandler returns the ADR handler by its ID, failing that it returns the default ADR handler.

func Setup

func Setup(conf config.Config) error

Setup configures the ADR package.

Types

type DefaultHandler

type DefaultHandler struct{}

DefaultHandler implements the default ADR handler.

func (*DefaultHandler) Handle

Handle handles the ADR request.

func (*DefaultHandler) ID

func (h *DefaultHandler) ID() (string, error)

ID returns the default ID.

func (*DefaultHandler) Name

func (h *DefaultHandler) Name() (string, error)

Name returns the default name.

type LRFHSSHandler

type LRFHSSHandler struct{}

LRFHSSHandler implements a LR-FHSS only ADR handler.

func (*LRFHSSHandler) Handle

Handle handles the ADR request.

func (*LRFHSSHandler) ID

func (h *LRFHSSHandler) ID() (string, error)

ID returns the ID.

func (*LRFHSSHandler) Name

func (h *LRFHSSHandler) Name() (string, error)

Name returns the name.

type LoRaLRFHSSHandler

type LoRaLRFHSSHandler struct{}

LoRaLRFHSSHandler implements a LoRa / LR-FHSS ADR handler.

func (*LoRaLRFHSSHandler) Handle

Handle handles the ADR request.

func (*LoRaLRFHSSHandler) ID

func (h *LoRaLRFHSSHandler) ID() (string, error)

ID returns the ID.

func (*LoRaLRFHSSHandler) Name

func (h *LoRaLRFHSSHandler) Name() (string, error)

Name returns the name.

Jump to

Keyboard shortcuts

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