Documentation ¶
Index ¶
- type Backend
- func (b *Backend) ApplyConfiguration(config gw.GatewayConfiguration) error
- func (b *Backend) Close() error
- func (b *Backend) DownlinkTXAckChan() chan gw.DownlinkTXAck
- func (b *Backend) GatewayStatsChan() chan gw.GatewayStats
- func (b *Backend) SendDownlinkFrame(frame gw.DownlinkFrame) error
- func (b *Backend) UplinkFrameChan() chan gw.UplinkFrame
- type PFConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
Backend implements a Semtech packet-forwarder gateway backend.
func NewBackend ¶
func NewBackend(bind string, onNew, onDelete func(lorawan.EUI64) error, configurations []PFConfiguration) (*Backend, error)
NewBackend creates a new backend.
func (*Backend) ApplyConfiguration ¶
func (b *Backend) ApplyConfiguration(config gw.GatewayConfiguration) error
ApplyConfiguration applies the given configuration to the gateway (packet-forwarder).
func (*Backend) DownlinkTXAckChan ¶
func (b *Backend) DownlinkTXAckChan() chan gw.DownlinkTXAck
DownlinkTXAckChan returns the downlink tx ack channel.
func (*Backend) GatewayStatsChan ¶
func (b *Backend) GatewayStatsChan() chan gw.GatewayStats
GatewayStatsChan returns the gateway stats channel.
func (*Backend) SendDownlinkFrame ¶
func (b *Backend) SendDownlinkFrame(frame gw.DownlinkFrame) error
SendDownlinkFrame sends the given downlink frame to the gateway.
func (*Backend) UplinkFrameChan ¶
func (b *Backend) UplinkFrameChan() chan gw.UplinkFrame
UplinkFrameChan returns the uplink frame channel.
type PFConfiguration ¶
type PFConfiguration struct { MAC lorawan.EUI64 `mapstructure:"-"` MACString string `mapstructure:"mac"` BaseFile string `mapstructure:"base_file"` OutputFile string `mapstructure:"output_file"` RestartCommand string `mapstructure:"restart_command"` Version string `mapstructure:"-"` }
PFConfiguration holds the packet-forwarder configuration.
Click to show internal directories.
Click to hide internal directories.