Documentation ¶
Index ¶
- func Setup(conf config.Config) error
- type AppServerAPI
- func (a *AppServerAPI) GetDeviceByDevEui(ctx context.Context, req *api.GetDeviceByDevEuiRequest) (*api.GetDeviceByDevEuiResponse, error)
- func (a *AppServerAPI) GetDeviceDevEuiList(ctx context.Context, req *empty.Empty) (*api.GetDeviceDevEuiListResponse, error)
- func (a *AppServerAPI) GetGatewayByMac(ctx context.Context, req *api.GetGatewayByMacRequest) (*api.GetGatewayByMacResponse, error)
- func (a *AppServerAPI) GetGatewayMacList(ctx context.Context, req *empty.Empty) (*api.GetGatewayMacListResponse, error)
- type ApplicationServerAPI
- func (a *ApplicationServerAPI) HandleDownlinkACK(ctx context.Context, req *as.HandleDownlinkACKRequest) (*empty.Empty, error)
- func (a *ApplicationServerAPI) HandleError(ctx context.Context, req *as.HandleErrorRequest) (*empty.Empty, error)
- func (a *ApplicationServerAPI) HandleGatewayStats(ctx context.Context, req *as.HandleGatewayStatsRequest) (*empty.Empty, error)
- func (a *ApplicationServerAPI) HandleProprietaryUplink(ctx context.Context, req *as.HandleProprietaryUplinkRequest) (*empty.Empty, error)
- func (a *ApplicationServerAPI) HandleUplinkData(ctx context.Context, req *as.HandleUplinkDataRequest) (*empty.Empty, error)
- func (a *ApplicationServerAPI) SetDeviceLocation(ctx context.Context, req *as.SetDeviceLocationRequest) (*empty.Empty, error)
- func (a *ApplicationServerAPI) SetDeviceStatus(ctx context.Context, req *as.SetDeviceStatusRequest) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppServerAPI ¶
type AppServerAPI struct { }
func NewAppServerAPI ¶
func NewAppServerAPI() *AppServerAPI
func (*AppServerAPI) GetDeviceByDevEui ¶
func (a *AppServerAPI) GetDeviceByDevEui(ctx context.Context, req *api.GetDeviceByDevEuiRequest) (*api.GetDeviceByDevEuiResponse, error)
func (*AppServerAPI) GetDeviceDevEuiList ¶
func (a *AppServerAPI) GetDeviceDevEuiList(ctx context.Context, req *empty.Empty) (*api.GetDeviceDevEuiListResponse, error)
func (*AppServerAPI) GetGatewayByMac ¶
func (a *AppServerAPI) GetGatewayByMac(ctx context.Context, req *api.GetGatewayByMacRequest) (*api.GetGatewayByMacResponse, error)
func (*AppServerAPI) GetGatewayMacList ¶
func (a *AppServerAPI) GetGatewayMacList(ctx context.Context, req *empty.Empty) (*api.GetGatewayMacListResponse, error)
type ApplicationServerAPI ¶
type ApplicationServerAPI struct { }
ApplicationServerAPI implements the as.ApplicationServerServer interface.
func NewApplicationServerAPI ¶
func NewApplicationServerAPI() *ApplicationServerAPI
NewApplicationServerAPI returns a new ApplicationServerAPI.
func (*ApplicationServerAPI) HandleDownlinkACK ¶
func (a *ApplicationServerAPI) HandleDownlinkACK(ctx context.Context, req *as.HandleDownlinkACKRequest) (*empty.Empty, error)
HandleDownlinkACK handles an ack on a downlink transmission.
func (*ApplicationServerAPI) HandleError ¶
func (a *ApplicationServerAPI) HandleError(ctx context.Context, req *as.HandleErrorRequest) (*empty.Empty, error)
HandleError handles an incoming error.
func (*ApplicationServerAPI) HandleGatewayStats ¶
func (a *ApplicationServerAPI) HandleGatewayStats(ctx context.Context, req *as.HandleGatewayStatsRequest) (*empty.Empty, error)
HandleGatewayStats handles the given gateway stats.
func (*ApplicationServerAPI) HandleProprietaryUplink ¶
func (a *ApplicationServerAPI) HandleProprietaryUplink(ctx context.Context, req *as.HandleProprietaryUplinkRequest) (*empty.Empty, error)
HandleProprietaryUplink handles proprietary uplink payloads.
func (*ApplicationServerAPI) HandleUplinkData ¶
func (a *ApplicationServerAPI) HandleUplinkData(ctx context.Context, req *as.HandleUplinkDataRequest) (*empty.Empty, error)
HandleUplinkData handles incoming (uplink) data.
func (*ApplicationServerAPI) SetDeviceLocation ¶
func (a *ApplicationServerAPI) SetDeviceLocation(ctx context.Context, req *as.SetDeviceLocationRequest) (*empty.Empty, error)
SetDeviceLocation updates the device-location.
func (*ApplicationServerAPI) SetDeviceStatus ¶
func (a *ApplicationServerAPI) SetDeviceStatus(ctx context.Context, req *as.SetDeviceStatusRequest) (*empty.Empty, error)
SetDeviceStatus updates the device-status for the given device.
Click to show internal directories.
Click to hide internal directories.