Documentation ¶
Index ¶
- func CreateUplinkFrameLog(rxPacket models.RXPacket) (ns.UplinkFrameLog, error)
- func GetFrameLogForDevice(ctx context.Context, devEUI lorawan.EUI64, frameLogChan chan FrameLog) error
- func GetFrameLogForGateway(ctx context.Context, gatewayID lorawan.EUI64, frameLogChan chan FrameLog) error
- func LogDownlinkFrameForDevEUI(ctx context.Context, devEUI lorawan.EUI64, frame ns.DownlinkFrameLog) error
- func LogDownlinkFrameForGateway(ctx context.Context, frame ns.DownlinkFrameLog) error
- func LogUplinkFrameForDevEUI(ctx context.Context, devEUI lorawan.EUI64, frame ns.UplinkFrameLog) error
- func LogUplinkFrameForGateways(ctx context.Context, frame ns.UplinkFrameLog) error
- type FrameLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUplinkFrameLog ¶
func CreateUplinkFrameLog(rxPacket models.RXPacket) (ns.UplinkFrameLog, error)
CreateUplinkFrameLog creates a UplinkFrameLog.
func GetFrameLogForDevice ¶
func GetFrameLogForDevice(ctx context.Context, devEUI lorawan.EUI64, frameLogChan chan FrameLog) error
GetFrameLogForDevice subscribes to the uplink / downlink frame logs stream for the given DevEUI.
func GetFrameLogForGateway ¶
func GetFrameLogForGateway(ctx context.Context, gatewayID lorawan.EUI64, frameLogChan chan FrameLog) error
GetFrameLogForGateway subscribes to the uplink / downlink frame logs stream for the given GatewayID.
func LogDownlinkFrameForDevEUI ¶
func LogDownlinkFrameForDevEUI(ctx context.Context, devEUI lorawan.EUI64, frame ns.DownlinkFrameLog) error
LogDownlinkFrameForDevEUI logs the given frame to the device pub-sub key.
func LogDownlinkFrameForGateway ¶
func LogDownlinkFrameForGateway(ctx context.Context, frame ns.DownlinkFrameLog) error
LogDownlinkFrameForGateway logs the given frame to the gateway pub-sub key.
func LogUplinkFrameForDevEUI ¶
func LogUplinkFrameForDevEUI(ctx context.Context, devEUI lorawan.EUI64, frame ns.UplinkFrameLog) error
LogUplinkFrameForDevEUI logs the given frame to the pub-sub key of the given DevEUI.
func LogUplinkFrameForGateways ¶
func LogUplinkFrameForGateways(ctx context.Context, frame ns.UplinkFrameLog) error
LogUplinkFrameForGateways logs the given frame to all the gateway pub-sub keys.
Types ¶
type FrameLog ¶
type FrameLog struct { UplinkFrame *ns.UplinkFrameLog DownlinkFrame *ns.DownlinkFrameLog }
FrameLog contains either an uplink or downlink frame.
Click to show internal directories.
Click to hide internal directories.