Documentation ¶
Index ¶
Constants ¶
View Source
const ( CollectAndCallOnceWait = time.Millisecond * 100 // the time to wait for the same packet received by multiple gateways CollectDataDownWait = time.Millisecond * 100 // the time to wait on possible downlink payloads from the application )
Packet collection constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { DB *sqlx.DB RedisPool *redis.Pool Gateway backend.Gateway Application backend.Application Controller backend.NetworkController NetID lorawan.NetID }
Context holds the context of a loraserver instance (backends, db connections etc..)
type RXPackets ¶
RXPackets is a slice of RXPacket. It implements sort.Interface to sort the slice of packets by signal strength so that the packet received with the strongest signal will be at index 0 of RXPackets.
Click to show internal directories.
Click to hide internal directories.