api

package
v2.5.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

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

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

CreateMulticastGroup creates the given multicast-group.

func (*NetworkServerAPI) CreateRoutingProfile

CreateRoutingProfile creates the given routing-profile.

func (*NetworkServerAPI) CreateServiceProfile

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

GetDevice returns the device matching the given DevEUI.

func (*NetworkServerAPI) GetDeviceActivation

GetDeviceActivation returns the device activation details.

func (*NetworkServerAPI) GetDeviceProfile

GetDeviceProfile returns the device-profile matching the given id.

func (*NetworkServerAPI) GetDeviceQueueItemsForDevEUI

GetDeviceQueueItemsForDevEUI returns all device-queue items for the given DevEUI.

func (*NetworkServerAPI) GetGateway

GetGateway returns data for a particular gateway.

func (*NetworkServerAPI) GetGatewayProfile

GetGatewayProfile returns the gateway-profile given an id.

func (*NetworkServerAPI) GetGatewayStats

GetGatewayStats returns stats of an existing gateway.

func (*NetworkServerAPI) GetMulticastGroup

GetMulticastGroup returns the multicast-group given an id.

func (*NetworkServerAPI) GetMulticastQueueItemsForMulticastGroup

GetMulticastQueueItemsForMulticastGroup returns the queue-items given a multicast-group id.

func (*NetworkServerAPI) GetNextDownlinkFCntForDevEUI

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

GetRoutingProfile returns the routing-profile matching the given id.

func (*NetworkServerAPI) GetServiceProfile

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

StreamFrameLogsForDevice returns a stream of frames seen by the given device.

func (*NetworkServerAPI) StreamFrameLogsForGateway

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.

Directories

Path Synopsis
client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL