basicstation

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, MIT Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Backend implements a Basic Station backend.

func NewBackend

func NewBackend(conf config.Config) (*Backend, error)

NewBackend creates a new Backend.

func (*Backend) ApplyConfiguration

func (b *Backend) ApplyConfiguration(gwConfig *gw.GatewayConfiguration) error

ApplyConfiguration is not implemented.

func (*Backend) RawPacketForwarderCommand

func (b *Backend) RawPacketForwarderCommand(pl *gw.RawPacketForwarderCommand) error

RawPacketForwarderCommand sends the given raw command to the packet-forwarder.

func (*Backend) SendDownlinkFrame

func (b *Backend) SendDownlinkFrame(df *gw.DownlinkFrame) error

SendDownlinkFrame sends the given downlink frame.

func (*Backend) SetDownlinkTxAckFunc

func (b *Backend) SetDownlinkTxAckFunc(f func(*gw.DownlinkTxAck))

SetDownlinkTxAckFunc sets the DownlinkTXAck handler func.

func (*Backend) SetGatewayStatsFunc

func (b *Backend) SetGatewayStatsFunc(f func(*gw.GatewayStats))

SetGatewayStatsFunc sets the GatewayStats handler func.

func (*Backend) SetRawPacketForwarderEventFunc

func (b *Backend) SetRawPacketForwarderEventFunc(f func(*gw.RawPacketForwarderEvent))

SetRawPacketForwarderEventFunc sets the RawPacketForwarderEvent handler func.

func (*Backend) SetSubscribeEventFunc

func (b *Backend) SetSubscribeEventFunc(f func(events.Subscribe))

SetSubscribeEventFunc sets the Subscribe handler func.

func (*Backend) SetUplinkFrameFunc

func (b *Backend) SetUplinkFrameFunc(f func(*gw.UplinkFrame))

SetUplinkFrameFunc sets the UplinkFrame handler func.

func (*Backend) Start

func (b *Backend) Start() error

Start starts the backend.

func (*Backend) Stop

func (b *Backend) Stop() error

Stop stops the backend.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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