gateway

package
v3.16.8 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClientCertificate

func GenerateClientCertificate(gatewayID lorawan.EUI64) (time.Time, []byte, []byte, []byte, error)

GenerateClientCertificate returns a client-certificate for the given gateway ID.

func Setup

func Setup(c config.Config) error

Setup configures the gateway package.

func Stop

func Stop() error

Stop stops the gateway stats handler.

func UpdateMetaDataInRXPacket

func UpdateMetaDataInRXPacket(ctx context.Context, db sqlx.Queryer, rxPacket *models.RXPacket) error

UpdateMetaDataInRXPacket updates the gateway meta-data in the given RXPacket. It will:

  • add the gateway location
  • set the FPGA id if available
  • decrypt the fine-timestamp (if available and AES key is set)

Types

type StatsHandler

type StatsHandler struct {
	// contains filtered or unexported fields
}

StatsHandler represents a stat handler for incoming gateway stats.

func (*StatsHandler) Start

func (s *StatsHandler) Start() error

Start starts the stats handler.

func (*StatsHandler) Stop

func (s *StatsHandler) Stop() error

Stop waits for the stats handler to complete the pending packets. At this stage the gateway backend must already been closed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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