uplink

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectKeyTempl     = "lora:ns:rx:collect:%s"
	CollectLockKeyTempl = "lora:ns:rx:collect:%s:lock"
)

Templates used for generating Redis keys

Variables

This section is empty.

Functions

func HandleRXPacket

func HandleRXPacket(rxPacket gw.RXPacket) error

HandleRXPacket handles a single rxpacket.

func HandleRXPackets

func HandleRXPackets(wg *sync.WaitGroup)

HandleRXPackets consumes received packets by the gateway and handles them in a separate go-routine. Errors are logged.

Types

type Server

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

Server represents a server listening for uplink packets.

func NewServer

func NewServer() *Server

NewServer creates a new server.

func (*Server) Start

func (s *Server) Start() error

Start starts the server.

func (*Server) Stop

func (s *Server) Stop() error

Stop closes the gateway backend and waits for the server to complete the pending packets.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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