Documentation ¶
Index ¶
- Variables
- func FilterRxInfoByPublicOnly(rxPacket *models.RXPacket) error
- func FilterRxInfoByServiceProfileID(serviceProfileID uuid.UUID, rxPacket *models.RXPacket) error
- func GetASClientForRoutingProfileID(ctx context.Context, id uuid.UUID) (as.ApplicationServerServiceClient, error)
- func GetDataRateIndex(uplink bool, v DataRateGetter, b band.Band) (int, error)
- func GetDownlinkID(v DownlinkIDGetter) uuid.UUID
- func GetGatewayID(v GatewayIDGetter) lorawan.EUI64
- func GetStatsID(v *gw.GatewayStats) uuid.UUID
- func GetUplinkID(v *gw.UplinkRXInfo) uuid.UUID
- func SetDownlinkTXInfoDataRate(txInfo *gw.DownlinkTXInfo, dr int, b band.Band) error
- func SetUplinkTXInfoDataRate(txInfo *gw.UplinkTXInfo, dr int, b band.Band) error
- type DataRateGetter
- type DownlinkIDGetter
- type GatewayIDGetter
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNoElements is returned when no RxInfo elements are matching the filter // criteria. ErrNoElements = errors.New("no elements to return") )
Functions ¶
func FilterRxInfoByPublicOnly ¶
FilterRxInfoByPublicOnly filters the RxInfo elements on public gateways.
func FilterRxInfoByServiceProfileID ¶
FilterRxInfoByServiceProfileID filters the RxInfo elements on public gateways and gateways matching the given ServiceProfileID.
func GetASClientForRoutingProfileID ¶
func GetASClientForRoutingProfileID(ctx context.Context, id uuid.UUID) (as.ApplicationServerServiceClient, error)
GetASClientForRoutingProfileID returns the AS client given a Routing Profile ID.
func GetDataRateIndex ¶
GetDataRateIndex returns the data-rate index.
func GetDownlinkID ¶
func GetDownlinkID(v DownlinkIDGetter) uuid.UUID
GetDownlinkID returns the types downlink ID.
func GetGatewayID ¶
func GetGatewayID(v GatewayIDGetter) lorawan.EUI64
GetGatewayID returns the typed gateway ID.
func GetStatsID ¶
func GetStatsID(v *gw.GatewayStats) uuid.UUID
GetStatsID returns the typed stats ID.
func GetUplinkID ¶
func GetUplinkID(v *gw.UplinkRXInfo) uuid.UUID
GetUplinkID returns the typed message ID.
func SetDownlinkTXInfoDataRate ¶
SetDownlinkTXInfoDataRate sets the DownlinkTXInfo data-rate.
func SetUplinkTXInfoDataRate ¶
SetUplinkTXInfoDataRate sets the UplinkTXInfo data-rate.
Types ¶
type DataRateGetter ¶
type DataRateGetter interface { GetModulation() common.Modulation GetLoraModulationInfo() *gw.LoRaModulationInfo GetFskModulationInfo() *gw.FSKModulationInfo GetLrFhssModulationInfo() *gw.LRFHSSModulationInfo }
DataRateGetter provides an interface for getting the data-rate.
type DownlinkIDGetter ¶
type DownlinkIDGetter interface {
GetDownlinkId() []byte
}
DownlinkIDGetter provides a DownlinkId getter interface.
type GatewayIDGetter ¶
type GatewayIDGetter interface {
GetGatewayId() []byte
}
GatewayIDGetter provides a GatewayId getter interface.