basicstation

package
v0.0.0-...-8397304 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 29 Imported by: 0

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