nc

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: 7 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNetworkControllerServiceServer

func RegisterNetworkControllerServiceServer(s *grpc.Server, srv NetworkControllerServiceServer)

Types

type HandleUplinkMACCommandRequest

type HandleUplinkMACCommandRequest struct {
	// Device EUI (8 bytes).
	DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
	// Command identifier (specified by the LoRaWAN specs).
	Cid uint32 `protobuf:"varint,2,opt,name=cid,proto3" json:"cid,omitempty"`
	// MAC-command payload(s).
	Commands             [][]byte `protobuf:"bytes,6,rep,name=commands,proto3" json:"commands,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HandleUplinkMACCommandRequest) Descriptor

func (*HandleUplinkMACCommandRequest) Descriptor() ([]byte, []int)

func (*HandleUplinkMACCommandRequest) GetCid

func (*HandleUplinkMACCommandRequest) GetCommands

func (m *HandleUplinkMACCommandRequest) GetCommands() [][]byte

func (*HandleUplinkMACCommandRequest) GetDevEui

func (m *HandleUplinkMACCommandRequest) GetDevEui() []byte

func (*HandleUplinkMACCommandRequest) ProtoMessage

func (*HandleUplinkMACCommandRequest) ProtoMessage()

func (*HandleUplinkMACCommandRequest) Reset

func (m *HandleUplinkMACCommandRequest) Reset()

func (*HandleUplinkMACCommandRequest) String

func (*HandleUplinkMACCommandRequest) XXX_DiscardUnknown

func (m *HandleUplinkMACCommandRequest) XXX_DiscardUnknown()

func (*HandleUplinkMACCommandRequest) XXX_Marshal

func (m *HandleUplinkMACCommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleUplinkMACCommandRequest) XXX_Merge

func (dst *HandleUplinkMACCommandRequest) XXX_Merge(src proto.Message)

func (*HandleUplinkMACCommandRequest) XXX_Size

func (m *HandleUplinkMACCommandRequest) XXX_Size() int

func (*HandleUplinkMACCommandRequest) XXX_Unmarshal

func (m *HandleUplinkMACCommandRequest) XXX_Unmarshal(b []byte) error

type HandleUplinkMetaDataRequest

type HandleUplinkMetaDataRequest struct {
	// Device EUI (8 bytes).
	DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
	// TX meta-data.
	TxInfo *gw.UplinkTXInfo `protobuf:"bytes,2,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"`
	// RX meta-data.
	RxInfo               []*gw.UplinkRXInfo `protobuf:"bytes,3,rep,name=rx_info,json=rxInfo,proto3" json:"rx_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*HandleUplinkMetaDataRequest) Descriptor

func (*HandleUplinkMetaDataRequest) Descriptor() ([]byte, []int)

func (*HandleUplinkMetaDataRequest) GetDevEui

func (m *HandleUplinkMetaDataRequest) GetDevEui() []byte

func (*HandleUplinkMetaDataRequest) GetRxInfo

func (m *HandleUplinkMetaDataRequest) GetRxInfo() []*gw.UplinkRXInfo

func (*HandleUplinkMetaDataRequest) GetTxInfo

func (*HandleUplinkMetaDataRequest) ProtoMessage

func (*HandleUplinkMetaDataRequest) ProtoMessage()

func (*HandleUplinkMetaDataRequest) Reset

func (m *HandleUplinkMetaDataRequest) Reset()

func (*HandleUplinkMetaDataRequest) String

func (m *HandleUplinkMetaDataRequest) String() string

func (*HandleUplinkMetaDataRequest) XXX_DiscardUnknown

func (m *HandleUplinkMetaDataRequest) XXX_DiscardUnknown()

func (*HandleUplinkMetaDataRequest) XXX_Marshal

func (m *HandleUplinkMetaDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleUplinkMetaDataRequest) XXX_Merge

func (dst *HandleUplinkMetaDataRequest) XXX_Merge(src proto.Message)

func (*HandleUplinkMetaDataRequest) XXX_Size

func (m *HandleUplinkMetaDataRequest) XXX_Size() int

func (*HandleUplinkMetaDataRequest) XXX_Unmarshal

func (m *HandleUplinkMetaDataRequest) XXX_Unmarshal(b []byte) error

type NetworkControllerServiceClient

type NetworkControllerServiceClient interface {
	// HandleUplinkMetaData handles uplink meta-rata.
	HandleUplinkMetaData(ctx context.Context, in *HandleUplinkMetaDataRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// HandleUplinkMACCommand handles an uplink mac-command.
	// This method will only be called in case the mac-command request was
	// enqueued throught the API or when the CID is >= 0x80 (proprietary
	// mac-command range).
	HandleUplinkMACCommand(ctx context.Context, in *HandleUplinkMACCommandRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

NetworkControllerServiceClient is the client API for NetworkControllerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewNetworkControllerServiceClient

func NewNetworkControllerServiceClient(cc *grpc.ClientConn) NetworkControllerServiceClient

type NetworkControllerServiceServer

type NetworkControllerServiceServer interface {
	// HandleUplinkMetaData handles uplink meta-rata.
	HandleUplinkMetaData(context.Context, *HandleUplinkMetaDataRequest) (*empty.Empty, error)
	// HandleUplinkMACCommand handles an uplink mac-command.
	// This method will only be called in case the mac-command request was
	// enqueued throught the API or when the CID is >= 0x80 (proprietary
	// mac-command range).
	HandleUplinkMACCommand(context.Context, *HandleUplinkMACCommandRequest) (*empty.Empty, error)
}

NetworkControllerServiceServer is the server API for NetworkControllerService service.

Jump to

Keyboard shortcuts

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