# Functions

AddDeviceToMulticastGroup adds the given device to the given multicast-group.
CreateApplication creates the given Application.
CreateDevice creates the given device.
CreateDeviceKeys creates the keys for the given device.
CreateDeviceProfile creates the given device-profile.
CreateFUOTADeploymentForDevice creates and initializes a FUOTA deployment for the given device.
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.
CreateRemoteFragmentationSession creates the given fragmentation session.
CreateRemoteMulticastClassCSession creates the given multicast Class-C session.
CreateRemoteMulticastSetup creates the given multicast-setup.
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.
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.
DeleteRemoteFragmentationSession removes the fragmentation session for the given DevEUI / fragmentation index combination.
DeleteRemoteMulticastClassCSession deletes the multicast Class-C session given a DevEUI and multicast-group ID.
DeleteRemoteMulticastSetup deletes the multicast-setup given a multicast-group ID and DevEUI.
DeleteServiceProfile deletes the service-profile matching the given id.
DeleteUser deletes the User record matching the given ID.
GetApplication returns the Application for the given id.
GetApplicationCount returns the total number of applications.
GetApplicationCountForOrganizationID returns the total number of applications for the given organization.
GetApplicationCountForUser returns the total number of applications available for the given user.
GetApplications returns a slice of applications, sorted by name and respecting the given limit and offset.
GetApplicationsForOrganizationID returns a slice of applications for the given organization.
GetApplicationsForUser returns a slice of application of which the given user is a member of.
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.
GetDeviceProfileCountForApplicationID returns the total number of device-profiles that can be used for the given application id (based on the service-profile of the application).
GetDeviceProfileCountForOrganizationID returns the total number of device-profiles for the given organization id.
GetDeviceProfileCountForUser returns the total number of device-profiles for the given username.
GetDeviceProfiles returns a slice of device-profiles.
GetDeviceProfilesForApplicationID returns a slice of device-profiles that can be used for the given application id (based on the service-profile of the application).
GetDeviceProfilesForOrganizationID returns a slice of device-profiles for the given organization id.
GetDeviceProfilesForUser returns a slice of device-profiles for the given username.
GetDevices returns a slice of devices.
GetDevicesForMulticastGroup returns a slice of devices for the given multicast-group.
GetFUOTADeployment returns the FUOTA deployment for the given ID.
GetFUOTADeploymentCount returns the number of FUOTA deployments.
GetFUOTADeploymentDevice returns the FUOTA deployment record for the given device.
GetFUOTADeploymentDeviceCount returns the device count for the given FUOTA deployment ID.
GetFUOTADeploymentDevices returns a slice of devices for the given FUOTA deployment ID.
GetFUOTADeployments returns a slice of fuota deployments.
GetGateway returns the gateway for the given mac.
GetGatewayCount returns the total number of gateways.
GetGatewayCountForOrganizationID returns the total number of gateways given an organization ID.
GetGatewayCountForUser returns the total number of gateways to which the given user has access.
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.
GetGatewaysForMACs returns a map of gateways given a slice of MACs.
GetGatewaysForOrganizationID returns a slice of gateways sorted by name for the given organization ID.
GetGatewaysForUser returns a slice of gateways sorted by name to which the given user has access.
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.
GetNetworkServerCountForOrganizationID returns the total number of network-servers accessible for the given organization 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.
GetNetworkServersForOrganizationID returns a slice of network-server accessible for the given organization id.
GetOrganization returns the Organization for the given id.
GetOrganizationCount returns the total number of organizations.
GetOrganizationCountForUser returns the number of organizations to which the given user is member of.
GetOrganizations returns a slice of organizations, sorted by name and respecting the given limit and offset.
GetOrganizationsForUser returns a slice of organizations to which the given user is member of.
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.
GetPendingFUOTADeploymentDevice returns the pending FUOTA deployment record for the given DevEUI.
GetPendingFUOTADeployments returns the pending FUOTA deployments.
GetPendingRemoteFragmentationSessions returns a slice of pending remote fragmentation sessions.
GetPendingRemoteMulticastClassCSessions returns a slice of pending remote multicast Class-C sessions.
GetPendingRemoteMulticastSetupItems returns a slice of pending remote multicast-setup items.
GetProfile returns the user profile (user, applications and organizations to which the user is linked).
GetRemoteFragmentationSession returns the fragmentation session given a DevEUI and fragmentation index.
GetRemoteMulticastClassCSession returns the multicast Class-C session given a DevEUI and multicast-group ID.
GetRemoteMulticastClassCSessionByGroupID returns the multicast Class-C session given a DevEUI and McGroupID.
GetRemoteMulticastSetup returns the multicast-setup given a multicast-group ID and DevEUI.
GetRemoteMulticastSetupByGroupID returns the multicast-setup given a DevEUI and McGroupID.
GetServiceProfile returns the service-profile matching the given id.
GetServiceProfileCount returns the total number of service-profiles.
GetServiceProfileCountForOrganizationID returns the total number of service-profiles for the given organization id.
GetServiceProfileCountForUser returns the total number of service-profiles for the given username.
GetServiceProfileIDForFUOTADeployment returns the service-profile ID for the given FUOTA deployment.
GetServiceProfiles returns a slice of service-profiles.
GetServiceProfilesForOrganizationID returns a slice of service-profiles for the given organization id.
GetServiceProfilesForUser returns a slice of service-profile for the given username.
GetUser returns the User for the given id.
GetUserByUsername returns the User for the given username.
GetUserCount returns the total number of users.
GetUsers returns a slice of users, respecting the given limit and offset.
GlobalSearch performs a search on organizations, applications, gateways and devices.
LoginUser returns a JWT token for the user matching the given username and password.
RedisPool returns the RedisPool object.
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.
UpdateFUOTADeployment updates the given FUOTA deployment.
UpdateFUOTADeploymentDevice updates the given fuota deployment device record.
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.
UpdatePassword updates the user with the new password.
UpdateRemoteFragmentationSession updates the given fragmentation session.
UpdateRemoteMulticastClassCSession updates the given remote multicast Class-C session.
UpdateRemoteMulticastSetup updates the given update multicast-group setup.
UpdateServiceProfile updates the given service-profile.
UpdateUser updates the given User.
ValidateEmail validates the given e-mail.
ValidatePassword validates the given password.
ValidateUsername validates the given username.

# Constants

Metrics aggregation intervals.
Metrics aggregation intervals.
Metrics aggregation intervals.
Metrics aggregation intervals.
Possible actions.
FUOTA deployment states.
FUOTA deployment device states.
FUOTA deployment device states.
FUOTA deployment device states.
FUOTA deployment states.
FUOTA deployment states.
FUOTA deployment states.
FUOTA deployment group types.
FUOTA deployment group types.
FUOTA deployment states.
FUOTA deployment states.
FUOTA deployment states.
FUOTA deployment states.
FUOTA deployment states.
Possible actions.
Modulations.
Modulations.
Possible states.
Possible states.
Possible actions.
Possible actions.
Possible actions.

# Variables

# Structs

Application represents an application.
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.
DeviceProfileMeta defines the device-profile meta record.
ExtraChannel defines an extra channel for the gateway-profile.
FUOTADeployment defiles a firmware update over the air deployment.
FUOTADeploymentDevice defines the device record of a FUOTA deployment.
FUOTADeploymentDeviceListItem defines the Device as FUOTA deployment list item.
FUOTADeploymentFilter provides filters that can be used to filter on FUOTA deployments.
FUOTADeploymentListItem defines a FUOTA deployment item for listing.
Gateway represents a gateway.
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.
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.
Organization represents an organization.
OrganizationUser represents an organization user.
RemoteFragmentationSession defines a remote fragmentation session record.
RemoteMulticastClassCSession defines a remote multicast-setup Class-C session record.
RemoteMulticastSetup defines a remote multicast-setup record.
SearchResult defines a search result.
ServiceProfile defines the service-profile.
ServiceProfileMeta defines the service-profile meta record.
TxLogger logs the executed sql queries and their duration.
User represents a user to external code.
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.
UserUpdate represents the user fields that can be "updated" in the simple case.

# Type aliases

Action defines the action type.
AggregationInterval defines the aggregation type.
FUOTADeploymentDeviceState defines the fuota deployment device state.
FUOTADeploymentGroupType defines the group-type.
FUOTADeploymentState defines the fuota deployment state.
RemoteMulticastSetupState defines the state type.