# Packages

No description provided by the author

# Functions

AddDeviceToMulticastGroup adds the given device to the given multicast-group.
CodeMigration checks if the given function code has been applied and if not it will execute the given function.
CreateAPIKey creates the given API key and returns the JWT.
CreateApplication creates the given Application.
CreateDevice creates the given device.
CreateDeviceKeys creates the keys for the given device.
CreateDeviceProfile creates the given device-profile.
CreateGateway creates the given Gateway.
CreateGatewayPing creates the given gateway ping.
CreateGatewayPingRX creates the received ping.
CreateGatewayProfile creates the given gateway-profile.
CreateIntegration creates the given Integration.
CreateMulticastGroup creates the given multicast-group.
CreateNetworkServer creates the given network-server.
CreateOrganization creates the given Organization.
CreateOrganizationUser adds the given user to the organization.
CreateServiceProfile creates the given service-profile.
CreateUser creates the given user.
DB returns the PostgreSQL database object.
DeleteAllApplicationsForOrganizationID deletes all applications given an organization id.
DeleteAllDeviceProfilesForOrganizationID deletes all device-profiles given an organization id.
DeleteAllDevicesForApplicationID deletes all devices given an application id.
DeleteAllGatewaysForOrganizationID deletes all gateways for a given organization id.
DeleteAllServiceProfilesForOrganizationID deletes all service-profiles given an organization id.
DeleteAPIKey deletes the API key for the given ID.
DeleteApplication deletes the Application matching the given ID.
DeleteDevice deletes the device matching the given DevEUI.
DeleteDeviceKeys deletes the device-keys for the given DevEUI.
DeleteDeviceProfile deletes the device-profile matching the given id.
DeleteGateway deletes the gateway matching the given MAC.
DeleteGatewayProfile deletes the gateway-profile matching the given id.
DeleteIntegration deletes the integration matching the given id.
DeleteMulticastGroup deletes a multicast-group given an id.
DeleteNetworkServer deletes the network-server matching the given id.
DeleteOrganization deletes the organization matching the given id.
DeleteOrganizationUser deletes the given organization user.
DeleteServiceProfile deletes the service-profile matching the given id.
DeleteUser deletes the User record matching the given ID.
EnqueueDownlinkPayload adds the downlink payload to the network-server device-queue.
GetAPIKey returns the API key for the given ID.
GetAPIKeyCount returns the number of API keys.
GetAPIKeys returns a slice of API keys.
GetApplication returns the Application for the given id.
GetApplicationCount returns the total number of applications.
GetApplications returns a slice of applications, sorted by name and respecting the given limit and offset.
GetDevice returns the device matching the given DevEUI.
GetDeviceCount returns the number of devices.
GetDeviceCountForMulticastGroup returns the number of devices for the given multicast-group.
GetDeviceKeys returns the device-keys for the given DevEUI.
GetDeviceProfile returns the device-profile matching the given id.
GetDeviceProfileCount returns the total number of device-profiles.
GetDeviceProfiles returns a slice of device-profiles.
GetDevices returns a slice of devices.
GetDevicesActiveInactive returns the active / inactive devices.
GetDevicesDataRates returns the device counts by data-rate.
GetDevicesForMulticastGroup returns a slice of devices for the given multicast-group.
GetGateway returns the gateway for the given mac.
GetGatewayCount returns the total number of gateways.
GetGatewayPing returns the ping matching the given id.
GetGatewayPingRXForPingID returns the received gateway pings for the given ping ID.
GetGatewayProfile returns the gateway-profile matching the given id.
GetGatewayProfileCount returns the total number of gateway-profiles.
GetGatewayProfileCountForNetworkServerID returns the total number of gateway-profiles given a network-server ID.
GetGatewayProfiles returns a slice of gateway-profiles.
GetGatewayProfilesForNetworkServerID returns a slice of gateway-profiles for the given network-server ID.
GetGateways returns a slice of gateways sorted by name.
GetGatewaysActiveInactive returns the active / inactive gateways.
GetGatewaysForMACs returns a map of gateways given a slice of MACs.
GetIntegration returns the Integration for the given id.
GetIntegrationByApplicationID returns the Integration for the given application id and kind.
GetIntegrationsForApplicationID returns the integrations for the given application id.
GetLastGatewayPingAndRX returns the last gateway ping and RX for the given gateway MAC.
GetMetrics returns the metrics for the requested aggregation interval.
GetMulticastGroup returns the multicast-group given an id.
GetMulticastGroupCount returns the total number of multicast-groups given the provided filters.
GetMulticastGroups returns a slice of multicast-groups, given the privded filters.
GetNetworkServer returns the network-server matching the given id.
GetNetworkServerCount returns the total number of network-servers.
GetNetworkServerForApplicationID returns the network-server for the given application ID.
GetNetworkServerForDevEUI returns the network-server for the given DevEUI.
GetNetworkServerForDeviceProfileID returns the network-server for the given device-profile id.
GetNetworkServerForGatewayMAC returns the network-server for a given gateway mac.
GetNetworkServerForGatewayProfileID returns the network-server for the given gateway-profile id.
GetNetworkServerForMulticastGroupID returns the network-server for the given multicast-group id.
GetNetworkServerForServiceProfileID returns the network-server for the given service-profile id.
GetNetworkServers returns a slice of network-servers.
GetOrganization returns the Organization for the given id.
GetOrganizationCount returns the total number of organizations.
GetOrganizations returns a slice of organizations, sorted by name.
GetOrganizationUser gets the information of the given organization user.
GetOrganizationUserCount returns the number of users for the given organization.
GetOrganizationUsers returns the users for the given organization.
GetProfile returns the user profile (user, applications and organizations to which the user is linked).
GetRedisKey returns the Redis key given a template and parameters.
GetServiceProfile returns the service-profile matching the given id.
GetServiceProfileCount returns the total number of service-profiles.
GetServiceProfiles returns a slice of service-profiles.
GetUser returns the User for the given id.
GetUserByEmail returns the User for the given email.
GetUserByExternalID returns the User for the given ext.
GetUserCount returns the total number of users.
GetUsers returns a slice of users, respecting the given limit and offset.
GetUserToken returns a JWT token for the given user.
GlobalSearch performs a search on organizations, applications, gateways and devices.
LoginUserByPassword returns a JWT token for the user matching the given email and password combination.
MigrateDown configure postgres migration down.
MigrateUp configure postgres migration up.
RedisClient returns the RedisClient.
RemoveDeviceFromMulticastGroup removes the given device from the given multicast-group.
SaveMetrics stores the given metrics into Redis.
SaveMetricsForInterval aggregates and stores the given metrics.
SetAggregationIntervals sets the metrics aggregation to the given intervals.
SetMetricsTTL sets the storage TTL.
SetTimeLocation sets the time location.
Setup configures the storage package.
Transaction wraps the given function in a transaction.
UpdateApplication updates the given Application.
UpdateDevice updates the given device.
UpdateDeviceActivation updates the device address and the AppSKey.
UpdateDeviceKeys updates the given device-keys.
UpdateDeviceLastSeenAndDR updates the device last-seen timestamp and data-rate.
UpdateDeviceProfile updates the given device-profile.
UpdateGateway updates the given Gateway.
UpdateGatewayProfile updates the given gateway-profile.
UpdateIntegration updates the given Integration.
UpdateMulticastGroup updates the given multicast-group.
UpdateNetworkServer updates the given network-server.
UpdateOrganization updates the given organization.
UpdateOrganizationUser updates the given user of the organization.
UpdateServiceProfile updates the given service-profile.
UpdateUser updates the given User.

# Constants

Metrics aggregation intervals.
Metrics aggregation intervals.
Metrics aggregation intervals.
Metrics aggregation intervals.
Possible actions.
Possible actions.
Modulations.
Modulations.
Possible actions.
Possible actions.
Possible actions.

# Variables

errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
ErrTransactionRollback indicates that the transaction must be rolled back, but does not raise an error returned by the Transaction function.
errors.
errors.
errors.
HashIterations denfines the number of times a password is hashed.

# Structs

APIKey represents an API key.
APIKeyFilters provides filters for getting the API keys.
Application represents an application.
ApplicationFilters provides filters for filtering applications.
ApplicationListItem devices the application as a list item.
DBLogger is a DB wrapper which logs the executed sql queries and their duration.
Device defines a LoRaWAN device.
DeviceFilters provide filters that can be used to filter on devices.
DeviceKeys defines the keys for a LoRaWAN device.
DeviceListItem defines the Device as list item.
DeviceProfile defines the device-profile.
DeviceProfileFilters provide filders for filtering device-profiles.
DeviceProfileMeta defines the device-profile meta record.
DevicesActiveInactive holds the active and inactive counts.
ExtraChannel defines an extra channel for the gateway-profile.
Gateway represents a gateway.
GatewayFilters provides filters for filtering gateways.
GatewayListItem defines the gateway as list item.
GatewayPing represents a gateway ping.
GatewayPingRX represents a ping received by one of the gateways.
GatewayProfile defines a gateway-profile.
GatewayProfileMeta defines the gateway-profile meta record.
GatewaysActiveInactive holds the avtive and inactive counts.
GPSPoint contains a GPS point.
Integration represents an integration.
MetricsRecord holds a single metrics record.
MulticastGroup defines the multicast-group.
MulticastGroupFilters provide filters that can be used to filter on multicast-groups.
MulticastGroupListItem defines the multicast-group for listing.
NetworkServer defines the information to connect to a network-server.
NetworkServerFilters provides filters for filtering network-servers.
Organization represents an organization.
OrganizationFilters provides filters for filtering organizations.
OrganizationUser represents an organization user.
SearchResult defines a search result.
ServiceProfile defines the service-profile.
ServiceProfileFilters provides filters for filtering service profiles.
ServiceProfileMeta defines the service-profile meta record.
TxLogger logs the executed sql queries and their duration.
User defines the user structure.
UserProfile contains the profile of the user.
UserProfileOrganization contains the organizations to which the user is linked.
UserProfileUser contains the user information of the profile.

# Type aliases

Action defines the action type.
AggregationInterval defines the aggregation type.
DevicesDataRates holds the device counts by data-rate.