Documentation ¶
Index ¶
- func GetGRPCServer(ctx context.Context, lsCtx loraserver.Context, validator auth.Validator, ...) *grpc.Server
- func GetJSONGateway(ctx context.Context, lsCtx loraserver.Context, grpcBind string, ...) (http.Handler, error)
- func SwaggerHandlerFunc(w http.ResponseWriter, r *http.Request)
- type ApplicationAPI
- func (a *ApplicationAPI) Create(ctx context.Context, req *pb.CreateApplicationRequest) (*pb.CreateApplicationResponse, error)
- func (a *ApplicationAPI) Delete(ctx context.Context, req *pb.DeleteApplicationRequest) (*pb.DeleteApplicationResponse, error)
- func (a *ApplicationAPI) Get(ctx context.Context, req *pb.GetApplicationRequest) (*pb.GetApplicationResponse, error)
- func (a *ApplicationAPI) List(ctx context.Context, req *pb.ListApplicationRequest) (*pb.ListApplicationResponse, error)
- func (a *ApplicationAPI) Update(ctx context.Context, req *pb.UpdateApplicationRequest) (*pb.UpdateApplicationResponse, error)
- type ChannelAPI
- func (a *ChannelAPI) Create(ctx context.Context, req *pb.CreateChannelRequest) (*pb.CreateChannelResponse, error)
- func (a *ChannelAPI) Delete(ctx context.Context, req *pb.DeleteChannelRequest) (*pb.DeleteChannelResponse, error)
- func (a *ChannelAPI) Get(ctx context.Context, req *pb.GetChannelRequest) (*pb.GetChannelResponse, error)
- func (a *ChannelAPI) ListByChannelList(ctx context.Context, req *pb.ListChannelsByChannelListRequest) (*pb.ListChannelsByChannelListResponse, error)
- func (a *ChannelAPI) Update(ctx context.Context, req *pb.UpdateChannelRequest) (*pb.UpdateChannelResponse, error)
- type ChannelListAPI
- func (a *ChannelListAPI) Create(ctx context.Context, req *pb.CreateChannelListRequest) (*pb.CreateChannelListResponse, error)
- func (a *ChannelListAPI) Delete(ctx context.Context, req *pb.DeleteChannelListRequest) (*pb.DeleteChannelListResponse, error)
- func (a *ChannelListAPI) Get(ctx context.Context, req *pb.GetChannelListRequest) (*pb.GetChannelListResponse, error)
- func (a *ChannelListAPI) List(ctx context.Context, req *pb.ListChannelListRequest) (*pb.ListChannelListResponse, error)
- func (a *ChannelListAPI) Update(ctx context.Context, req *pb.UpdateChannelListRequest) (*pb.UpdateChannelListResponse, error)
- type NodeAPI
- func (a *NodeAPI) Create(ctx context.Context, req *pb.CreateNodeRequest) (*pb.CreateNodeResponse, error)
- func (a *NodeAPI) Delete(ctx context.Context, req *pb.DeleteNodeRequest) (*pb.DeleteNodeResponse, error)
- func (a *NodeAPI) FlushTXPayloadQueue(ctx context.Context, req *pb.FlushTXPayloadQueueRequest) (*pb.FlushTXPayloadQueueResponse, error)
- func (a *NodeAPI) Get(ctx context.Context, req *pb.GetNodeRequest) (*pb.GetNodeResponse, error)
- func (a *NodeAPI) List(ctx context.Context, req *pb.ListNodeRequest) (*pb.ListNodeResponse, error)
- func (a *NodeAPI) ListByAppEUI(ctx context.Context, req *pb.ListNodeByAppEUIRequest) (*pb.ListNodeResponse, error)
- func (a *NodeAPI) Update(ctx context.Context, req *pb.UpdateNodeRequest) (*pb.UpdateNodeResponse, error)
- type NodeSessionAPI
- func (a *NodeSessionAPI) Create(ctx context.Context, req *pb.CreateNodeSessionRequest) (*pb.CreateNodeSessionResponse, error)
- func (a *NodeSessionAPI) Delete(ctx context.Context, req *pb.DeleteNodeSessionRequest) (*pb.DeleteNodeSessionResponse, error)
- func (a *NodeSessionAPI) Get(ctx context.Context, req *pb.GetNodeSessionRequest) (*pb.GetNodeSessionResponse, error)
- func (a *NodeSessionAPI) GetByDevEUI(ctx context.Context, req *pb.GetNodeSessionByDevEUIRequest) (*pb.GetNodeSessionResponse, error)
- func (a *NodeSessionAPI) GetRandomDevAddr(ctx context.Context, req *pb.GetRandomDevAddrRequest) (*pb.GetRandomDevAddrResponse, error)
- func (a *NodeSessionAPI) Update(ctx context.Context, req *pb.UpdateNodeSessionRequest) (*pb.UpdateNodeSessionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGRPCServer ¶
func GetGRPCServer(ctx context.Context, lsCtx loraserver.Context, validator auth.Validator, grpcOpts []grpc.ServerOption) *grpc.Server
GetGRPCServer returns the gRPC API handler.
func GetJSONGateway ¶
func GetJSONGateway(ctx context.Context, lsCtx loraserver.Context, grpcBind string, grpcOpts []grpc.DialOption) (http.Handler, error)
GetJSONGateway returns the JSON gateway for the gRPC API.
func SwaggerHandlerFunc ¶
func SwaggerHandlerFunc(w http.ResponseWriter, r *http.Request)
SwaggerHandlerFunc serves the Swagger JSON api documentation.
Types ¶
type ApplicationAPI ¶
type ApplicationAPI struct {
// contains filtered or unexported fields
}
ApplicationAPI exports the Application related functions.
func NewApplicationAPI ¶
func NewApplicationAPI(ctx loraserver.Context, validator auth.Validator) *ApplicationAPI
NewApplicationAPI creates a new ApplicationAPI.
func (*ApplicationAPI) Create ¶
func (a *ApplicationAPI) Create(ctx context.Context, req *pb.CreateApplicationRequest) (*pb.CreateApplicationResponse, error)
Create creates the given application.
func (*ApplicationAPI) Delete ¶
func (a *ApplicationAPI) Delete(ctx context.Context, req *pb.DeleteApplicationRequest) (*pb.DeleteApplicationResponse, error)
Delete deletes the application for the given AppEUI.
func (*ApplicationAPI) Get ¶
func (a *ApplicationAPI) Get(ctx context.Context, req *pb.GetApplicationRequest) (*pb.GetApplicationResponse, error)
Get returns the Application for the given AppEUI.
func (*ApplicationAPI) List ¶
func (a *ApplicationAPI) List(ctx context.Context, req *pb.ListApplicationRequest) (*pb.ListApplicationResponse, error)
List returns a list of applications (given a limit and offset).
func (*ApplicationAPI) Update ¶
func (a *ApplicationAPI) Update(ctx context.Context, req *pb.UpdateApplicationRequest) (*pb.UpdateApplicationResponse, error)
Update updates the given Application.
type ChannelAPI ¶
type ChannelAPI struct {
// contains filtered or unexported fields
}
ChannelAPI exports the channel related functions.
func NewChannelAPI ¶
func NewChannelAPI(ctx loraserver.Context, validator auth.Validator) *ChannelAPI
NewChannelAPI creates a new ChannelAPI.
func (*ChannelAPI) Create ¶
func (a *ChannelAPI) Create(ctx context.Context, req *pb.CreateChannelRequest) (*pb.CreateChannelResponse, error)
Create creates the given channel.
func (*ChannelAPI) Delete ¶
func (a *ChannelAPI) Delete(ctx context.Context, req *pb.DeleteChannelRequest) (*pb.DeleteChannelResponse, error)
Delete deletest the channel matching the given id.
func (*ChannelAPI) Get ¶
func (a *ChannelAPI) Get(ctx context.Context, req *pb.GetChannelRequest) (*pb.GetChannelResponse, error)
Get returns the channel matching the given id.
func (*ChannelAPI) ListByChannelList ¶
func (a *ChannelAPI) ListByChannelList(ctx context.Context, req *pb.ListChannelsByChannelListRequest) (*pb.ListChannelsByChannelListResponse, error)
ListByChannelList lists the channels matching the given channel-list id.
func (*ChannelAPI) Update ¶
func (a *ChannelAPI) Update(ctx context.Context, req *pb.UpdateChannelRequest) (*pb.UpdateChannelResponse, error)
Update updates the given channel.
type ChannelListAPI ¶
type ChannelListAPI struct {
// contains filtered or unexported fields
}
ChannelListAPI exports the channel-list related functions.
func NewChannelListAPI ¶
func NewChannelListAPI(ctx loraserver.Context, validator auth.Validator) *ChannelListAPI
NewChannelListAPI creates a new ChannelListAPI.
func (*ChannelListAPI) Create ¶
func (a *ChannelListAPI) Create(ctx context.Context, req *pb.CreateChannelListRequest) (*pb.CreateChannelListResponse, error)
Create creates the given channel-list.
func (*ChannelListAPI) Delete ¶
func (a *ChannelListAPI) Delete(ctx context.Context, req *pb.DeleteChannelListRequest) (*pb.DeleteChannelListResponse, error)
Delete deletes the channel-list matching the given id.
func (*ChannelListAPI) Get ¶
func (a *ChannelListAPI) Get(ctx context.Context, req *pb.GetChannelListRequest) (*pb.GetChannelListResponse, error)
Get returns the channel-list matching the given id.
func (*ChannelListAPI) List ¶
func (a *ChannelListAPI) List(ctx context.Context, req *pb.ListChannelListRequest) (*pb.ListChannelListResponse, error)
List lists the channel-lists.
func (*ChannelListAPI) Update ¶
func (a *ChannelListAPI) Update(ctx context.Context, req *pb.UpdateChannelListRequest) (*pb.UpdateChannelListResponse, error)
Update updates the given channel-list.
type NodeAPI ¶
type NodeAPI struct {
// contains filtered or unexported fields
}
NodeAPI exports the Node related functions.
func NewNodeAPI ¶
func NewNodeAPI(ctx loraserver.Context, validator auth.Validator) *NodeAPI
NewNodeAPI creates a new NodeAPI.
func (*NodeAPI) Create ¶
func (a *NodeAPI) Create(ctx context.Context, req *pb.CreateNodeRequest) (*pb.CreateNodeResponse, error)
Create creates the given Node.
func (*NodeAPI) Delete ¶
func (a *NodeAPI) Delete(ctx context.Context, req *pb.DeleteNodeRequest) (*pb.DeleteNodeResponse, error)
Delete deletes the node matching the given DevEUI.
func (*NodeAPI) FlushTXPayloadQueue ¶
func (a *NodeAPI) FlushTXPayloadQueue(ctx context.Context, req *pb.FlushTXPayloadQueueRequest) (*pb.FlushTXPayloadQueueResponse, error)
FlushTXPayloadQueue flushes the tx payload queue for the given DevEUI.
func (*NodeAPI) Get ¶
func (a *NodeAPI) Get(ctx context.Context, req *pb.GetNodeRequest) (*pb.GetNodeResponse, error)
Get returns the Node for the given DevEUI.
func (*NodeAPI) List ¶
func (a *NodeAPI) List(ctx context.Context, req *pb.ListNodeRequest) (*pb.ListNodeResponse, error)
GetList returns a list of nodes (given a limit and offset).
func (*NodeAPI) ListByAppEUI ¶
func (a *NodeAPI) ListByAppEUI(ctx context.Context, req *pb.ListNodeByAppEUIRequest) (*pb.ListNodeResponse, error)
GetListByAppEUI returns a list of nodes (given an AppEUI, limit and offset).
func (*NodeAPI) Update ¶
func (a *NodeAPI) Update(ctx context.Context, req *pb.UpdateNodeRequest) (*pb.UpdateNodeResponse, error)
Update updates the node matching the given DevEUI.
type NodeSessionAPI ¶
type NodeSessionAPI struct {
// contains filtered or unexported fields
}
NodeSessionAPI exposes the node-session related functions.
func NewNodeSessionAPI ¶
func NewNodeSessionAPI(ctx loraserver.Context, validator auth.Validator) *NodeSessionAPI
NewNodeSessionAPI creates a new NodeSessionAPI.
func (*NodeSessionAPI) Create ¶
func (a *NodeSessionAPI) Create(ctx context.Context, req *pb.CreateNodeSessionRequest) (*pb.CreateNodeSessionResponse, error)
Create creates the given node-session. The DevAddr must contain the same NwkID as the configured NetID. Node-sessions will expire automatically after the configured TTL.
func (*NodeSessionAPI) Delete ¶
func (a *NodeSessionAPI) Delete(ctx context.Context, req *pb.DeleteNodeSessionRequest) (*pb.DeleteNodeSessionResponse, error)
Delete deletes the node-session matching the given DevAddr.
func (*NodeSessionAPI) Get ¶
func (a *NodeSessionAPI) Get(ctx context.Context, req *pb.GetNodeSessionRequest) (*pb.GetNodeSessionResponse, error)
Get returns the node-session matching the given DevAddr.
func (*NodeSessionAPI) GetByDevEUI ¶
func (a *NodeSessionAPI) GetByDevEUI(ctx context.Context, req *pb.GetNodeSessionByDevEUIRequest) (*pb.GetNodeSessionResponse, error)
GetByDevEUI returns the node-session matching the given DevEUI.
func (*NodeSessionAPI) GetRandomDevAddr ¶
func (a *NodeSessionAPI) GetRandomDevAddr(ctx context.Context, req *pb.GetRandomDevAddrRequest) (*pb.GetRandomDevAddrResponse, error)
GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account.
func (*NodeSessionAPI) Update ¶
func (a *NodeSessionAPI) Update(ctx context.Context, req *pb.UpdateNodeSessionRequest) (*pb.UpdateNodeSessionResponse, error)
Update updates the given node-session.