package
0.0.0-20231124133536-10dd6e754aab
Repository: https://github.com/fancar/wrenches.git
Documentation: pkg.go.dev

# Functions

AppServer returns the application-server's PostgreSQL database object.
NetServer returns the network-server's PostgreSQL database object.
Connect makes new connection.
ConvertDeviceSessionsToCSV converter.
CSVfromDeviceSession converter.
FlushMACCommandQueue flushes the mac-command queue for the given DevEUI.
GetAppSKeys returns AppSKeys for given DevEUIs.
GetDeviceFromAS returns the device matching the given DevEUI.
GetDeviceFromNS returns the device matching the given DevEUI.
GetDeviceProfile returns the device-profile matching the given id.
GetDeviceSession returns the device-session for the given DevEUI.
GetLastDeviceActivation returns the last device activation event.
No description provided by the author
InitClickhouse connect to clickhouse.
NetServer returns the network-server's PostgreSQL database object.
RedisClient returns the Redis client.
RedisSecondClient returns the Redis client.
SaveDeviceSession saves the device-session.
Setup configures the storage backend.
SetupSecondRedis configures the second redis storage backend.

# Constants

Available device modes.
Available device modes.
Available device modes.
Available RX window options.
Available RX window options.
UplinkHistorySize contains the number of frames to store.

# Variables

# Structs

DBLogger is a DB wrapper which logs the executed sql queries and their duration.
Device defines a LoRaWAN device according to AS.
DeviceActivation defines the device-activation for a LoRaWAN device.
DeviceGatewayRXInfo holds the meta-data of a gateway receiving the last uplink message.
No description provided by the author
DeviceGatewayRXInfoSet contains the rx-info set of the receiving gateways for the last uplink.
No description provided by the author
DeviceLogItem is for imems to store in device_frames table.
DeviceSession defines a device-session.
DeviceSessionCSV defines a device-session in comma sep.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MACCommandBlock defines a block of MAC commands that must be handled together.
NSDevice defines a LoRaWAN device in NS database.
NSDeviceProfile defines the backend.DeviceProfile from Network-server.
No description provided by the author
TxLogger logs the executed sql queries and their duration.
UplinkHistory contains the meta-data of an uplink transmission.

# Type aliases

AppSKeys map with DevEUI key.
DeviceMode defines the mode in which the device operates.
MACCommands holds a slice of MACCommand items.
RXWindow defines the RX window option.