gateway

package
v2.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateMetaDataInRxInfoSet

func UpdateMetaDataInRxInfoSet(db sqlx.Queryer, p *redis.Pool, rxInfo []*gw.UplinkRXInfo) error

UpdateMetaDataInRxInfoSet updates the gateway meta-data in the given rx-info set. 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 NewStatsHandler

func NewStatsHandler() *StatsHandler

NewStatsHandler creates a new StatsHandler.

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.

Jump to

Keyboard shortcuts

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