Documentation ¶
Index ¶
- func Setup(c config.Config) error
- type NetworkServerAPI
- func (n *NetworkServerAPI) ActivateDevice(ctx context.Context, req *ns.ActivateDeviceRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) AddDeviceToMulticastGroup(ctx context.Context, req *ns.AddDeviceToMulticastGroupRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) CreateDevice(ctx context.Context, req *ns.CreateDeviceRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) CreateDeviceProfile(ctx context.Context, req *ns.CreateDeviceProfileRequest) (*ns.CreateDeviceProfileResponse, error)
- func (n *NetworkServerAPI) CreateDeviceQueueItem(ctx context.Context, req *ns.CreateDeviceQueueItemRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) CreateGateway(ctx context.Context, req *ns.CreateGatewayRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) CreateGatewayProfile(ctx context.Context, req *ns.CreateGatewayProfileRequest) (*ns.CreateGatewayProfileResponse, error)
- func (n *NetworkServerAPI) CreateMACCommandQueueItem(ctx context.Context, req *ns.CreateMACCommandQueueItemRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) CreateMulticastGroup(ctx context.Context, req *ns.CreateMulticastGroupRequest) (*ns.CreateMulticastGroupResponse, error)
- func (n *NetworkServerAPI) CreateRoutingProfile(ctx context.Context, req *ns.CreateRoutingProfileRequest) (*ns.CreateRoutingProfileResponse, error)
- func (n *NetworkServerAPI) CreateServiceProfile(ctx context.Context, req *ns.CreateServiceProfileRequest) (*ns.CreateServiceProfileResponse, error)
- func (n *NetworkServerAPI) DeactivateDevice(ctx context.Context, req *ns.DeactivateDeviceRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) DeleteDevice(ctx context.Context, req *ns.DeleteDeviceRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) DeleteDeviceProfile(ctx context.Context, req *ns.DeleteDeviceProfileRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) DeleteGateway(ctx context.Context, req *ns.DeleteGatewayRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) DeleteGatewayProfile(ctx context.Context, req *ns.DeleteGatewayProfileRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) DeleteMulticastGroup(ctx context.Context, req *ns.DeleteMulticastGroupRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) DeleteRoutingProfile(ctx context.Context, req *ns.DeleteRoutingProfileRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) DeleteServiceProfile(ctx context.Context, req *ns.DeleteServiceProfileRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) EnqueueMulticastQueueItem(ctx context.Context, req *ns.EnqueueMulticastQueueItemRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) FlushDeviceQueueForDevEUI(ctx context.Context, req *ns.FlushDeviceQueueForDevEUIRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) FlushMulticastQueueForMulticastGroup(ctx context.Context, req *ns.FlushMulticastQueueForMulticastGroupRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) GetDevice(ctx context.Context, req *ns.GetDeviceRequest) (*ns.GetDeviceResponse, error)
- func (n *NetworkServerAPI) GetDeviceActivation(ctx context.Context, req *ns.GetDeviceActivationRequest) (*ns.GetDeviceActivationResponse, error)
- func (n *NetworkServerAPI) GetDeviceProfile(ctx context.Context, req *ns.GetDeviceProfileRequest) (*ns.GetDeviceProfileResponse, error)
- func (n *NetworkServerAPI) GetDeviceQueueItemsForDevEUI(ctx context.Context, req *ns.GetDeviceQueueItemsForDevEUIRequest) (*ns.GetDeviceQueueItemsForDevEUIResponse, error)
- func (n *NetworkServerAPI) GetGateway(ctx context.Context, req *ns.GetGatewayRequest) (*ns.GetGatewayResponse, error)
- func (n *NetworkServerAPI) GetGatewayProfile(ctx context.Context, req *ns.GetGatewayProfileRequest) (*ns.GetGatewayProfileResponse, error)
- func (n *NetworkServerAPI) GetGatewayStats(ctx context.Context, req *ns.GetGatewayStatsRequest) (*ns.GetGatewayStatsResponse, error)
- func (n *NetworkServerAPI) GetMulticastGroup(ctx context.Context, req *ns.GetMulticastGroupRequest) (*ns.GetMulticastGroupResponse, error)
- func (n *NetworkServerAPI) GetMulticastQueueItemsForMulticastGroup(ctx context.Context, req *ns.GetMulticastQueueItemsForMulticastGroupRequest) (*ns.GetMulticastQueueItemsForMulticastGroupResponse, error)
- func (n *NetworkServerAPI) GetNextDownlinkFCntForDevEUI(ctx context.Context, req *ns.GetNextDownlinkFCntForDevEUIRequest) (*ns.GetNextDownlinkFCntForDevEUIResponse, error)
- func (n *NetworkServerAPI) GetRandomDevAddr(ctx context.Context, req *empty.Empty) (*ns.GetRandomDevAddrResponse, error)
- func (n *NetworkServerAPI) GetRoutingProfile(ctx context.Context, req *ns.GetRoutingProfileRequest) (*ns.GetRoutingProfileResponse, error)
- func (n *NetworkServerAPI) GetServiceProfile(ctx context.Context, req *ns.GetServiceProfileRequest) (*ns.GetServiceProfileResponse, error)
- func (n *NetworkServerAPI) GetVersion(ctx context.Context, req *empty.Empty) (*ns.GetVersionResponse, error)
- func (n *NetworkServerAPI) RemoveDeviceFromMulticastGroup(ctx context.Context, req *ns.RemoveDeviceFromMulticastGroupRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) SendProprietaryPayload(ctx context.Context, req *ns.SendProprietaryPayloadRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) StreamFrameLogsForDevice(req *ns.StreamFrameLogsForDeviceRequest, ...) error
- func (n *NetworkServerAPI) StreamFrameLogsForGateway(req *ns.StreamFrameLogsForGatewayRequest, ...) error
- func (n *NetworkServerAPI) UpdateDevice(ctx context.Context, req *ns.UpdateDeviceRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) UpdateDeviceProfile(ctx context.Context, req *ns.UpdateDeviceProfileRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) UpdateGateway(ctx context.Context, req *ns.UpdateGatewayRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) UpdateGatewayProfile(ctx context.Context, req *ns.UpdateGatewayProfileRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) UpdateMulticastGroup(ctx context.Context, req *ns.UpdateMulticastGroupRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) UpdateRoutingProfile(ctx context.Context, req *ns.UpdateRoutingProfileRequest) (*empty.Empty, error)
- func (n *NetworkServerAPI) UpdateServiceProfile(ctx context.Context, req *ns.UpdateServiceProfileRequest) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NetworkServerAPI ¶
type NetworkServerAPI struct{}
NetworkServerAPI defines the nework-server API.
func NewNetworkServerAPI ¶
func NewNetworkServerAPI() *NetworkServerAPI
NewNetworkServerAPI returns a new NetworkServerAPI.
func (*NetworkServerAPI) ActivateDevice ¶
func (n *NetworkServerAPI) ActivateDevice(ctx context.Context, req *ns.ActivateDeviceRequest) (*empty.Empty, error)
ActivateDevice activates a device (ABP).
func (*NetworkServerAPI) AddDeviceToMulticastGroup ¶
func (n *NetworkServerAPI) AddDeviceToMulticastGroup(ctx context.Context, req *ns.AddDeviceToMulticastGroupRequest) (*empty.Empty, error)
AddDeviceToMulticastGroup adds the given device to the given multicast-group.
func (*NetworkServerAPI) CreateDevice ¶
func (n *NetworkServerAPI) CreateDevice(ctx context.Context, req *ns.CreateDeviceRequest) (*empty.Empty, error)
CreateDevice creates the given device.
func (*NetworkServerAPI) CreateDeviceProfile ¶
func (n *NetworkServerAPI) CreateDeviceProfile(ctx context.Context, req *ns.CreateDeviceProfileRequest) (*ns.CreateDeviceProfileResponse, error)
CreateDeviceProfile creates the given device-profile. The RFRegion field will get set automatically according to the configured band.
func (*NetworkServerAPI) CreateDeviceQueueItem ¶
func (n *NetworkServerAPI) CreateDeviceQueueItem(ctx context.Context, req *ns.CreateDeviceQueueItemRequest) (*empty.Empty, error)
CreateDeviceQueueItem creates the given device-queue item.
func (*NetworkServerAPI) CreateGateway ¶
func (n *NetworkServerAPI) CreateGateway(ctx context.Context, req *ns.CreateGatewayRequest) (*empty.Empty, error)
CreateGateway creates the given gateway.
func (*NetworkServerAPI) CreateGatewayProfile ¶
func (n *NetworkServerAPI) CreateGatewayProfile(ctx context.Context, req *ns.CreateGatewayProfileRequest) (*ns.CreateGatewayProfileResponse, error)
CreateGatewayProfile creates the given gateway-profile.
func (*NetworkServerAPI) CreateMACCommandQueueItem ¶
func (n *NetworkServerAPI) CreateMACCommandQueueItem(ctx context.Context, req *ns.CreateMACCommandQueueItemRequest) (*empty.Empty, error)
CreateMACCommandQueueItem adds a data down MAC command to the queue. It replaces already enqueued mac-commands with the same CID.
func (*NetworkServerAPI) CreateMulticastGroup ¶
func (n *NetworkServerAPI) CreateMulticastGroup(ctx context.Context, req *ns.CreateMulticastGroupRequest) (*ns.CreateMulticastGroupResponse, error)
CreateMulticastGroup creates the given multicast-group.
func (*NetworkServerAPI) CreateRoutingProfile ¶
func (n *NetworkServerAPI) CreateRoutingProfile(ctx context.Context, req *ns.CreateRoutingProfileRequest) (*ns.CreateRoutingProfileResponse, error)
CreateRoutingProfile creates the given routing-profile.
func (*NetworkServerAPI) CreateServiceProfile ¶
func (n *NetworkServerAPI) CreateServiceProfile(ctx context.Context, req *ns.CreateServiceProfileRequest) (*ns.CreateServiceProfileResponse, error)
CreateServiceProfile creates the given service-profile.
func (*NetworkServerAPI) DeactivateDevice ¶
func (n *NetworkServerAPI) DeactivateDevice(ctx context.Context, req *ns.DeactivateDeviceRequest) (*empty.Empty, error)
DeactivateDevice de-activates a device.
func (*NetworkServerAPI) DeleteDevice ¶
func (n *NetworkServerAPI) DeleteDevice(ctx context.Context, req *ns.DeleteDeviceRequest) (*empty.Empty, error)
DeleteDevice deletes the device matching the given DevEUI.
func (*NetworkServerAPI) DeleteDeviceProfile ¶
func (n *NetworkServerAPI) DeleteDeviceProfile(ctx context.Context, req *ns.DeleteDeviceProfileRequest) (*empty.Empty, error)
DeleteDeviceProfile deletes the device-profile matching the given id.
func (*NetworkServerAPI) DeleteGateway ¶
func (n *NetworkServerAPI) DeleteGateway(ctx context.Context, req *ns.DeleteGatewayRequest) (*empty.Empty, error)
DeleteGateway deletes a gateway.
func (*NetworkServerAPI) DeleteGatewayProfile ¶
func (n *NetworkServerAPI) DeleteGatewayProfile(ctx context.Context, req *ns.DeleteGatewayProfileRequest) (*empty.Empty, error)
DeleteGatewayProfile deletes the gateway-profile matching a given id.
func (*NetworkServerAPI) DeleteMulticastGroup ¶
func (n *NetworkServerAPI) DeleteMulticastGroup(ctx context.Context, req *ns.DeleteMulticastGroupRequest) (*empty.Empty, error)
DeleteMulticastGroup deletes a multicast-group given an id.
func (*NetworkServerAPI) DeleteRoutingProfile ¶
func (n *NetworkServerAPI) DeleteRoutingProfile(ctx context.Context, req *ns.DeleteRoutingProfileRequest) (*empty.Empty, error)
DeleteRoutingProfile deletes the routing-profile matching the given id.
func (*NetworkServerAPI) DeleteServiceProfile ¶
func (n *NetworkServerAPI) DeleteServiceProfile(ctx context.Context, req *ns.DeleteServiceProfileRequest) (*empty.Empty, error)
DeleteServiceProfile deletes the service-profile matching the given id.
func (*NetworkServerAPI) EnqueueMulticastQueueItem ¶
func (n *NetworkServerAPI) EnqueueMulticastQueueItem(ctx context.Context, req *ns.EnqueueMulticastQueueItemRequest) (*empty.Empty, error)
EnqueueMulticastQueueItem creates the given multicast queue-item.
func (*NetworkServerAPI) FlushDeviceQueueForDevEUI ¶
func (n *NetworkServerAPI) FlushDeviceQueueForDevEUI(ctx context.Context, req *ns.FlushDeviceQueueForDevEUIRequest) (*empty.Empty, error)
FlushDeviceQueueForDevEUI flushes the device-queue for the given DevEUI.
func (*NetworkServerAPI) FlushMulticastQueueForMulticastGroup ¶
func (n *NetworkServerAPI) FlushMulticastQueueForMulticastGroup(ctx context.Context, req *ns.FlushMulticastQueueForMulticastGroupRequest) (*empty.Empty, error)
FlushMulticastQueueForMulticastGroup flushes the multicast device-queue given a multicast-group id.
func (*NetworkServerAPI) GetDevice ¶
func (n *NetworkServerAPI) GetDevice(ctx context.Context, req *ns.GetDeviceRequest) (*ns.GetDeviceResponse, error)
GetDevice returns the device matching the given DevEUI.
func (*NetworkServerAPI) GetDeviceActivation ¶
func (n *NetworkServerAPI) GetDeviceActivation(ctx context.Context, req *ns.GetDeviceActivationRequest) (*ns.GetDeviceActivationResponse, error)
GetDeviceActivation returns the device activation details.
func (*NetworkServerAPI) GetDeviceProfile ¶
func (n *NetworkServerAPI) GetDeviceProfile(ctx context.Context, req *ns.GetDeviceProfileRequest) (*ns.GetDeviceProfileResponse, error)
GetDeviceProfile returns the device-profile matching the given id.
func (*NetworkServerAPI) GetDeviceQueueItemsForDevEUI ¶
func (n *NetworkServerAPI) GetDeviceQueueItemsForDevEUI(ctx context.Context, req *ns.GetDeviceQueueItemsForDevEUIRequest) (*ns.GetDeviceQueueItemsForDevEUIResponse, error)
GetDeviceQueueItemsForDevEUI returns all device-queue items for the given DevEUI.
func (*NetworkServerAPI) GetGateway ¶
func (n *NetworkServerAPI) GetGateway(ctx context.Context, req *ns.GetGatewayRequest) (*ns.GetGatewayResponse, error)
GetGateway returns data for a particular gateway.
func (*NetworkServerAPI) GetGatewayProfile ¶
func (n *NetworkServerAPI) GetGatewayProfile(ctx context.Context, req *ns.GetGatewayProfileRequest) (*ns.GetGatewayProfileResponse, error)
GetGatewayProfile returns the gateway-profile given an id.
func (*NetworkServerAPI) GetGatewayStats ¶
func (n *NetworkServerAPI) GetGatewayStats(ctx context.Context, req *ns.GetGatewayStatsRequest) (*ns.GetGatewayStatsResponse, error)
GetGatewayStats returns stats of an existing gateway.
func (*NetworkServerAPI) GetMulticastGroup ¶
func (n *NetworkServerAPI) GetMulticastGroup(ctx context.Context, req *ns.GetMulticastGroupRequest) (*ns.GetMulticastGroupResponse, error)
GetMulticastGroup returns the multicast-group given an id.
func (*NetworkServerAPI) GetMulticastQueueItemsForMulticastGroup ¶
func (n *NetworkServerAPI) GetMulticastQueueItemsForMulticastGroup(ctx context.Context, req *ns.GetMulticastQueueItemsForMulticastGroupRequest) (*ns.GetMulticastQueueItemsForMulticastGroupResponse, error)
GetMulticastQueueItemsForMulticastGroup returns the queue-items given a multicast-group id.
func (*NetworkServerAPI) GetNextDownlinkFCntForDevEUI ¶
func (n *NetworkServerAPI) GetNextDownlinkFCntForDevEUI(ctx context.Context, req *ns.GetNextDownlinkFCntForDevEUIRequest) (*ns.GetNextDownlinkFCntForDevEUIResponse, error)
GetNextDownlinkFCntForDevEUI returns the next FCnt that must be used. This also takes device-queue items for the given DevEUI into consideration. In case the device is not activated, this will return an error as no device-session exists.
func (*NetworkServerAPI) GetRandomDevAddr ¶
func (n *NetworkServerAPI) GetRandomDevAddr(ctx context.Context, req *empty.Empty) (*ns.GetRandomDevAddrResponse, error)
GetRandomDevAddr returns a random DevAddr.
func (*NetworkServerAPI) GetRoutingProfile ¶
func (n *NetworkServerAPI) GetRoutingProfile(ctx context.Context, req *ns.GetRoutingProfileRequest) (*ns.GetRoutingProfileResponse, error)
GetRoutingProfile returns the routing-profile matching the given id.
func (*NetworkServerAPI) GetServiceProfile ¶
func (n *NetworkServerAPI) GetServiceProfile(ctx context.Context, req *ns.GetServiceProfileRequest) (*ns.GetServiceProfileResponse, error)
GetServiceProfile returns the service-profile matching the given id.
func (*NetworkServerAPI) GetVersion ¶
func (n *NetworkServerAPI) GetVersion(ctx context.Context, req *empty.Empty) (*ns.GetVersionResponse, error)
GetVersion returns the LoRa Server version.
func (*NetworkServerAPI) RemoveDeviceFromMulticastGroup ¶
func (n *NetworkServerAPI) RemoveDeviceFromMulticastGroup(ctx context.Context, req *ns.RemoveDeviceFromMulticastGroupRequest) (*empty.Empty, error)
RemoveDeviceFromMulticastGroup removes the given device from the given multicast-group.
func (*NetworkServerAPI) SendProprietaryPayload ¶
func (n *NetworkServerAPI) SendProprietaryPayload(ctx context.Context, req *ns.SendProprietaryPayloadRequest) (*empty.Empty, error)
SendProprietaryPayload send a payload using the 'Proprietary' LoRaWAN message-type.
func (*NetworkServerAPI) StreamFrameLogsForDevice ¶
func (n *NetworkServerAPI) StreamFrameLogsForDevice(req *ns.StreamFrameLogsForDeviceRequest, srv ns.NetworkServerService_StreamFrameLogsForDeviceServer) error
StreamFrameLogsForDevice returns a stream of frames seen by the given device.
func (*NetworkServerAPI) StreamFrameLogsForGateway ¶
func (n *NetworkServerAPI) StreamFrameLogsForGateway(req *ns.StreamFrameLogsForGatewayRequest, srv ns.NetworkServerService_StreamFrameLogsForGatewayServer) error
StreamFrameLogsForGateway returns a stream of frames seen by the given gateway.
func (*NetworkServerAPI) UpdateDevice ¶
func (n *NetworkServerAPI) UpdateDevice(ctx context.Context, req *ns.UpdateDeviceRequest) (*empty.Empty, error)
UpdateDevice updates the given device.
func (*NetworkServerAPI) UpdateDeviceProfile ¶
func (n *NetworkServerAPI) UpdateDeviceProfile(ctx context.Context, req *ns.UpdateDeviceProfileRequest) (*empty.Empty, error)
UpdateDeviceProfile updates the given device-profile. The RFRegion field will get set automatically according to the configured band.
func (*NetworkServerAPI) UpdateGateway ¶
func (n *NetworkServerAPI) UpdateGateway(ctx context.Context, req *ns.UpdateGatewayRequest) (*empty.Empty, error)
UpdateGateway updates an existing gateway.
func (*NetworkServerAPI) UpdateGatewayProfile ¶
func (n *NetworkServerAPI) UpdateGatewayProfile(ctx context.Context, req *ns.UpdateGatewayProfileRequest) (*empty.Empty, error)
UpdateGatewayProfile updates the given gateway-profile.
func (*NetworkServerAPI) UpdateMulticastGroup ¶
func (n *NetworkServerAPI) UpdateMulticastGroup(ctx context.Context, req *ns.UpdateMulticastGroupRequest) (*empty.Empty, error)
UpdateMulticastGroup updates the given multicast-group.
func (*NetworkServerAPI) UpdateRoutingProfile ¶
func (n *NetworkServerAPI) UpdateRoutingProfile(ctx context.Context, req *ns.UpdateRoutingProfileRequest) (*empty.Empty, error)
UpdateRoutingProfile updates the given routing-profile.
func (*NetworkServerAPI) UpdateServiceProfile ¶
func (n *NetworkServerAPI) UpdateServiceProfile(ctx context.Context, req *ns.UpdateServiceProfileRequest) (*empty.Empty, error)
UpdateServiceProfile updates the given service-profile.