api

package
v0.0.0-...-2ac35d6 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2016 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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

Create creates the given application.

func (*ApplicationAPI) Delete

Delete deletes the application for the given AppEUI.

func (*ApplicationAPI) Get

Get returns the Application for the given AppEUI.

func (*ApplicationAPI) List

List returns a list of applications (given a limit and offset).

func (*ApplicationAPI) Update

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

Create creates the given channel.

func (*ChannelAPI) Delete

Delete deletest the channel matching the given id.

func (*ChannelAPI) Get

Get returns the channel matching the given id.

func (*ChannelAPI) ListByChannelList

ListByChannelList lists the channels matching the given channel-list id.

func (*ChannelAPI) Update

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

Create creates the given channel-list.

func (*ChannelListAPI) Delete

Delete deletes the channel-list matching the given id.

func (*ChannelListAPI) Get

Get returns the channel-list matching the given id.

func (*ChannelListAPI) List

List lists the channel-lists.

func (*ChannelListAPI) Update

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

Create creates the given Node.

func (*NodeAPI) Delete

Delete deletes the node matching the given DevEUI.

func (*NodeAPI) FlushTXPayloadQueue

FlushTXPayloadQueue flushes the tx payload queue for the given DevEUI.

func (*NodeAPI) Get

Get returns the Node for the given DevEUI.

func (*NodeAPI) List

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

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

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

Delete deletes the node-session matching the given DevAddr.

func (*NodeSessionAPI) Get

Get returns the node-session matching the given DevAddr.

func (*NodeSessionAPI) GetByDevEUI

GetByDevEUI returns the node-session matching the given DevEUI.

func (*NodeSessionAPI) GetRandomDevAddr

GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account.

func (*NodeSessionAPI) Update

Update updates the given node-session.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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