Documentation ¶
Index ¶
- Variables
- func RegisterNetworkControllerServiceServer(s *grpc.Server, srv NetworkControllerServiceServer)
- type HandleDownlinkMetaDataRequest
- func (*HandleDownlinkMetaDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandleDownlinkMetaDataRequest) GetApplicationPayloadByteCount() uint32
- func (x *HandleDownlinkMetaDataRequest) GetDevEui() []byte
- func (x *HandleDownlinkMetaDataRequest) GetGatewayId() []byte
- func (x *HandleDownlinkMetaDataRequest) GetMacCommandByteCount() uint32
- func (x *HandleDownlinkMetaDataRequest) GetMessageType() MType
- func (x *HandleDownlinkMetaDataRequest) GetMulticastGroupId() []byte
- func (x *HandleDownlinkMetaDataRequest) GetPhyPayloadByteCount() uint32
- func (x *HandleDownlinkMetaDataRequest) GetTxInfo() *gw.DownlinkTXInfo
- func (*HandleDownlinkMetaDataRequest) ProtoMessage()
- func (x *HandleDownlinkMetaDataRequest) ProtoReflect() protoreflect.Message
- func (x *HandleDownlinkMetaDataRequest) Reset()
- func (x *HandleDownlinkMetaDataRequest) String() string
- type HandleRejectedUplinkFrameSetRequest
- func (*HandleRejectedUplinkFrameSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandleRejectedUplinkFrameSetRequest) GetFrameSet() *gw.UplinkFrameSet
- func (*HandleRejectedUplinkFrameSetRequest) ProtoMessage()
- func (x *HandleRejectedUplinkFrameSetRequest) ProtoReflect() protoreflect.Message
- func (x *HandleRejectedUplinkFrameSetRequest) Reset()
- func (x *HandleRejectedUplinkFrameSetRequest) String() string
- type HandleUplinkMACCommandRequest
- func (*HandleUplinkMACCommandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandleUplinkMACCommandRequest) GetCid() uint32
- func (x *HandleUplinkMACCommandRequest) GetCommands() [][]byte
- func (x *HandleUplinkMACCommandRequest) GetDevEui() []byte
- func (*HandleUplinkMACCommandRequest) ProtoMessage()
- func (x *HandleUplinkMACCommandRequest) ProtoReflect() protoreflect.Message
- func (x *HandleUplinkMACCommandRequest) Reset()
- func (x *HandleUplinkMACCommandRequest) String() string
- type HandleUplinkMetaDataRequest
- func (*HandleUplinkMetaDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandleUplinkMetaDataRequest) GetApplicationPayloadByteCount() uint32
- func (x *HandleUplinkMetaDataRequest) GetDevEui() []byte
- func (x *HandleUplinkMetaDataRequest) GetMacCommandByteCount() uint32
- func (x *HandleUplinkMetaDataRequest) GetMessageType() MType
- func (x *HandleUplinkMetaDataRequest) GetPhyPayloadByteCount() uint32
- func (x *HandleUplinkMetaDataRequest) GetRxInfo() []*gw.UplinkRXInfo
- func (x *HandleUplinkMetaDataRequest) GetTxInfo() *gw.UplinkTXInfo
- func (*HandleUplinkMetaDataRequest) ProtoMessage()
- func (x *HandleUplinkMetaDataRequest) ProtoReflect() protoreflect.Message
- func (x *HandleUplinkMetaDataRequest) Reset()
- func (x *HandleUplinkMetaDataRequest) String() string
- type MType
- type NetworkControllerServiceClient
- type NetworkControllerServiceServer
- type UnimplementedNetworkControllerServiceServer
- func (*UnimplementedNetworkControllerServiceServer) HandleDownlinkMetaData(context.Context, *HandleDownlinkMetaDataRequest) (*empty.Empty, error)
- func (*UnimplementedNetworkControllerServiceServer) HandleRejectedUplinkFrameSet(context.Context, *HandleRejectedUplinkFrameSetRequest) (*empty.Empty, error)
- func (*UnimplementedNetworkControllerServiceServer) HandleUplinkMACCommand(context.Context, *HandleUplinkMACCommandRequest) (*empty.Empty, error)
- func (*UnimplementedNetworkControllerServiceServer) HandleUplinkMetaData(context.Context, *HandleUplinkMetaDataRequest) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
var ( MType_name = map[int32]string{ 0: "UNKNOWN", 1: "JOIN_REQUEST", 2: "JOIN_ACCEPT", 3: "UNCONFIRMED_DATA_UP", 4: "UNCONFIRMED_DATA_DOWN", 5: "CONFIRMED_DATA_UP", 6: "CONFIRMED_DATA_DOWN", 7: "REJOIN_REQUEST", } MType_value = map[string]int32{ "UNKNOWN": 0, "JOIN_REQUEST": 1, "JOIN_ACCEPT": 2, "UNCONFIRMED_DATA_UP": 3, "UNCONFIRMED_DATA_DOWN": 4, "CONFIRMED_DATA_UP": 5, "CONFIRMED_DATA_DOWN": 6, "REJOIN_REQUEST": 7, } )
Enum value maps for MType.
var File_nc_nc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterNetworkControllerServiceServer ¶
func RegisterNetworkControllerServiceServer(s *grpc.Server, srv NetworkControllerServiceServer)
Types ¶
type HandleDownlinkMetaDataRequest ¶
type HandleDownlinkMetaDataRequest struct { // Device EUI (8 bytes). DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"` // Multicast Group ID (UUID). MulticastGroupId []byte `protobuf:"bytes,2,opt,name=multicast_group_id,json=multicastGroupId,proto3" json:"multicast_group_id,omitempty"` // TX meta-data. TxInfo *gw.DownlinkTXInfo `protobuf:"bytes,3,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"` // PHYPayload byte count. PhyPayloadByteCount uint32 `protobuf:"varint,4,opt,name=phy_payload_byte_count,json=phyPayloadByteCount,proto3" json:"phy_payload_byte_count,omitempty"` // MAC-Command byte count. MacCommandByteCount uint32 `protobuf:"varint,5,opt,name=mac_command_byte_count,json=macCommandByteCount,proto3" json:"mac_command_byte_count,omitempty"` // Application payload byte count. ApplicationPayloadByteCount uint32 `` /* 147-byte string literal not displayed */ // Message type. MessageType MType `protobuf:"varint,7,opt,name=message_type,json=messageType,proto3,enum=nc.MType" json:"message_type,omitempty"` // Gateway ID. GatewayId []byte `protobuf:"bytes,8,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"` // contains filtered or unexported fields }
func (*HandleDownlinkMetaDataRequest) Descriptor
deprecated
func (*HandleDownlinkMetaDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandleDownlinkMetaDataRequest.ProtoReflect.Descriptor instead.
func (*HandleDownlinkMetaDataRequest) GetApplicationPayloadByteCount ¶
func (x *HandleDownlinkMetaDataRequest) GetApplicationPayloadByteCount() uint32
func (*HandleDownlinkMetaDataRequest) GetDevEui ¶
func (x *HandleDownlinkMetaDataRequest) GetDevEui() []byte
func (*HandleDownlinkMetaDataRequest) GetGatewayId ¶
func (x *HandleDownlinkMetaDataRequest) GetGatewayId() []byte
func (*HandleDownlinkMetaDataRequest) GetMacCommandByteCount ¶
func (x *HandleDownlinkMetaDataRequest) GetMacCommandByteCount() uint32
func (*HandleDownlinkMetaDataRequest) GetMessageType ¶
func (x *HandleDownlinkMetaDataRequest) GetMessageType() MType
func (*HandleDownlinkMetaDataRequest) GetMulticastGroupId ¶
func (x *HandleDownlinkMetaDataRequest) GetMulticastGroupId() []byte
func (*HandleDownlinkMetaDataRequest) GetPhyPayloadByteCount ¶
func (x *HandleDownlinkMetaDataRequest) GetPhyPayloadByteCount() uint32
func (*HandleDownlinkMetaDataRequest) GetTxInfo ¶
func (x *HandleDownlinkMetaDataRequest) GetTxInfo() *gw.DownlinkTXInfo
func (*HandleDownlinkMetaDataRequest) ProtoMessage ¶
func (*HandleDownlinkMetaDataRequest) ProtoMessage()
func (*HandleDownlinkMetaDataRequest) ProtoReflect ¶
func (x *HandleDownlinkMetaDataRequest) ProtoReflect() protoreflect.Message
func (*HandleDownlinkMetaDataRequest) Reset ¶
func (x *HandleDownlinkMetaDataRequest) Reset()
func (*HandleDownlinkMetaDataRequest) String ¶
func (x *HandleDownlinkMetaDataRequest) String() string
type HandleRejectedUplinkFrameSetRequest ¶
type HandleRejectedUplinkFrameSetRequest struct { FrameSet *gw.UplinkFrameSet `protobuf:"bytes,1,opt,name=frame_set,json=frameSet,proto3" json:"frame_set,omitempty"` // contains filtered or unexported fields }
func (*HandleRejectedUplinkFrameSetRequest) Descriptor
deprecated
func (*HandleRejectedUplinkFrameSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandleRejectedUplinkFrameSetRequest.ProtoReflect.Descriptor instead.
func (*HandleRejectedUplinkFrameSetRequest) GetFrameSet ¶
func (x *HandleRejectedUplinkFrameSetRequest) GetFrameSet() *gw.UplinkFrameSet
func (*HandleRejectedUplinkFrameSetRequest) ProtoMessage ¶
func (*HandleRejectedUplinkFrameSetRequest) ProtoMessage()
func (*HandleRejectedUplinkFrameSetRequest) ProtoReflect ¶
func (x *HandleRejectedUplinkFrameSetRequest) ProtoReflect() protoreflect.Message
func (*HandleRejectedUplinkFrameSetRequest) Reset ¶
func (x *HandleRejectedUplinkFrameSetRequest) Reset()
func (*HandleRejectedUplinkFrameSetRequest) String ¶
func (x *HandleRejectedUplinkFrameSetRequest) String() string
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"` // contains filtered or unexported fields }
func (*HandleUplinkMACCommandRequest) Descriptor
deprecated
func (*HandleUplinkMACCommandRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandleUplinkMACCommandRequest.ProtoReflect.Descriptor instead.
func (*HandleUplinkMACCommandRequest) GetCid ¶
func (x *HandleUplinkMACCommandRequest) GetCid() uint32
func (*HandleUplinkMACCommandRequest) GetCommands ¶
func (x *HandleUplinkMACCommandRequest) GetCommands() [][]byte
func (*HandleUplinkMACCommandRequest) GetDevEui ¶
func (x *HandleUplinkMACCommandRequest) GetDevEui() []byte
func (*HandleUplinkMACCommandRequest) ProtoMessage ¶
func (*HandleUplinkMACCommandRequest) ProtoMessage()
func (*HandleUplinkMACCommandRequest) ProtoReflect ¶
func (x *HandleUplinkMACCommandRequest) ProtoReflect() protoreflect.Message
func (*HandleUplinkMACCommandRequest) Reset ¶
func (x *HandleUplinkMACCommandRequest) Reset()
func (*HandleUplinkMACCommandRequest) String ¶
func (x *HandleUplinkMACCommandRequest) String() string
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"` // PHYPayload byte count. PhyPayloadByteCount uint32 `protobuf:"varint,4,opt,name=phy_payload_byte_count,json=phyPayloadByteCount,proto3" json:"phy_payload_byte_count,omitempty"` // MAC-Command byte count. MacCommandByteCount uint32 `protobuf:"varint,5,opt,name=mac_command_byte_count,json=macCommandByteCount,proto3" json:"mac_command_byte_count,omitempty"` // Application payload byte count. ApplicationPayloadByteCount uint32 `` /* 147-byte string literal not displayed */ // Message type. MessageType MType `protobuf:"varint,7,opt,name=message_type,json=messageType,proto3,enum=nc.MType" json:"message_type,omitempty"` // contains filtered or unexported fields }
func (*HandleUplinkMetaDataRequest) Descriptor
deprecated
func (*HandleUplinkMetaDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandleUplinkMetaDataRequest.ProtoReflect.Descriptor instead.
func (*HandleUplinkMetaDataRequest) GetApplicationPayloadByteCount ¶
func (x *HandleUplinkMetaDataRequest) GetApplicationPayloadByteCount() uint32
func (*HandleUplinkMetaDataRequest) GetDevEui ¶
func (x *HandleUplinkMetaDataRequest) GetDevEui() []byte
func (*HandleUplinkMetaDataRequest) GetMacCommandByteCount ¶
func (x *HandleUplinkMetaDataRequest) GetMacCommandByteCount() uint32
func (*HandleUplinkMetaDataRequest) GetMessageType ¶
func (x *HandleUplinkMetaDataRequest) GetMessageType() MType
func (*HandleUplinkMetaDataRequest) GetPhyPayloadByteCount ¶
func (x *HandleUplinkMetaDataRequest) GetPhyPayloadByteCount() uint32
func (*HandleUplinkMetaDataRequest) GetRxInfo ¶
func (x *HandleUplinkMetaDataRequest) GetRxInfo() []*gw.UplinkRXInfo
func (*HandleUplinkMetaDataRequest) GetTxInfo ¶
func (x *HandleUplinkMetaDataRequest) GetTxInfo() *gw.UplinkTXInfo
func (*HandleUplinkMetaDataRequest) ProtoMessage ¶
func (*HandleUplinkMetaDataRequest) ProtoMessage()
func (*HandleUplinkMetaDataRequest) ProtoReflect ¶
func (x *HandleUplinkMetaDataRequest) ProtoReflect() protoreflect.Message
func (*HandleUplinkMetaDataRequest) Reset ¶
func (x *HandleUplinkMetaDataRequest) Reset()
func (*HandleUplinkMetaDataRequest) String ¶
func (x *HandleUplinkMetaDataRequest) String() string
type MType ¶
type MType int32
func (MType) Descriptor ¶
func (MType) Descriptor() protoreflect.EnumDescriptor
func (MType) EnumDescriptor
deprecated
func (MType) Number ¶
func (x MType) Number() protoreflect.EnumNumber
func (MType) Type ¶
func (MType) Type() protoreflect.EnumType
type NetworkControllerServiceClient ¶
type NetworkControllerServiceClient interface { // HandleUplinkMetaData handles uplink meta-rata. HandleUplinkMetaData(ctx context.Context, in *HandleUplinkMetaDataRequest, opts ...grpc.CallOption) (*empty.Empty, error) // HandleDownlinkMetaData handles downlink meta-data. HandleDownlinkMetaData(ctx context.Context, in *HandleDownlinkMetaDataRequest, 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) // HandleRejectedUplinkFrameSet handles a rejected uplink. // And uplink can be rejected in the case the device has not (yet) been // provisioned, because of invalid frame-counter, MIC, ... HandleRejectedUplinkFrameSet(ctx context.Context, in *HandleRejectedUplinkFrameSetRequest, 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.ClientConnInterface) NetworkControllerServiceClient
type NetworkControllerServiceServer ¶
type NetworkControllerServiceServer interface { // HandleUplinkMetaData handles uplink meta-rata. HandleUplinkMetaData(context.Context, *HandleUplinkMetaDataRequest) (*empty.Empty, error) // HandleDownlinkMetaData handles downlink meta-data. HandleDownlinkMetaData(context.Context, *HandleDownlinkMetaDataRequest) (*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) // HandleRejectedUplinkFrameSet handles a rejected uplink. // And uplink can be rejected in the case the device has not (yet) been // provisioned, because of invalid frame-counter, MIC, ... HandleRejectedUplinkFrameSet(context.Context, *HandleRejectedUplinkFrameSetRequest) (*empty.Empty, error) }
NetworkControllerServiceServer is the server API for NetworkControllerService service.
type UnimplementedNetworkControllerServiceServer ¶
type UnimplementedNetworkControllerServiceServer struct { }
UnimplementedNetworkControllerServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedNetworkControllerServiceServer) HandleDownlinkMetaData ¶
func (*UnimplementedNetworkControllerServiceServer) HandleDownlinkMetaData(context.Context, *HandleDownlinkMetaDataRequest) (*empty.Empty, error)
func (*UnimplementedNetworkControllerServiceServer) HandleRejectedUplinkFrameSet ¶
func (*UnimplementedNetworkControllerServiceServer) HandleRejectedUplinkFrameSet(context.Context, *HandleRejectedUplinkFrameSetRequest) (*empty.Empty, error)
func (*UnimplementedNetworkControllerServiceServer) HandleUplinkMACCommand ¶
func (*UnimplementedNetworkControllerServiceServer) HandleUplinkMACCommand(context.Context, *HandleUplinkMACCommandRequest) (*empty.Empty, error)
func (*UnimplementedNetworkControllerServiceServer) HandleUplinkMetaData ¶
func (*UnimplementedNetworkControllerServiceServer) HandleUplinkMetaData(context.Context, *HandleUplinkMetaDataRequest) (*empty.Empty, error)