Documentation ¶
Index ¶
- func RegisterNetworkControllerServer(s *grpc.Server, srv NetworkControllerServer)
- type DataRate
- func (*DataRate) Descriptor() ([]byte, []int)
- func (m *DataRate) GetBandWidth() uint32
- func (m *DataRate) GetBitrate() uint32
- func (m *DataRate) GetModulation() string
- func (m *DataRate) GetSpreadFactor() uint32
- func (*DataRate) ProtoMessage()
- func (m *DataRate) Reset()
- func (m *DataRate) String() string
- func (m *DataRate) XXX_DiscardUnknown()
- func (m *DataRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DataRate) XXX_Merge(src proto.Message)
- func (m *DataRate) XXX_Size() int
- func (m *DataRate) XXX_Unmarshal(b []byte) error
- type HandleDataUpMACCommandRequest
- func (*HandleDataUpMACCommandRequest) Descriptor() ([]byte, []int)
- func (m *HandleDataUpMACCommandRequest) GetCid() uint32
- func (m *HandleDataUpMACCommandRequest) GetCommands() [][]byte
- func (m *HandleDataUpMACCommandRequest) GetDevEUI() []byte
- func (*HandleDataUpMACCommandRequest) ProtoMessage()
- func (m *HandleDataUpMACCommandRequest) Reset()
- func (m *HandleDataUpMACCommandRequest) String() string
- func (m *HandleDataUpMACCommandRequest) XXX_DiscardUnknown()
- func (m *HandleDataUpMACCommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HandleDataUpMACCommandRequest) XXX_Merge(src proto.Message)
- func (m *HandleDataUpMACCommandRequest) XXX_Size() int
- func (m *HandleDataUpMACCommandRequest) XXX_Unmarshal(b []byte) error
- type HandleDataUpMACCommandResponse
- func (*HandleDataUpMACCommandResponse) Descriptor() ([]byte, []int)
- func (*HandleDataUpMACCommandResponse) ProtoMessage()
- func (m *HandleDataUpMACCommandResponse) Reset()
- func (m *HandleDataUpMACCommandResponse) String() string
- func (m *HandleDataUpMACCommandResponse) XXX_DiscardUnknown()
- func (m *HandleDataUpMACCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HandleDataUpMACCommandResponse) XXX_Merge(src proto.Message)
- func (m *HandleDataUpMACCommandResponse) XXX_Size() int
- func (m *HandleDataUpMACCommandResponse) XXX_Unmarshal(b []byte) error
- type HandleErrorRequest
- func (*HandleErrorRequest) Descriptor() ([]byte, []int)
- func (m *HandleErrorRequest) GetDevEUI() []byte
- func (m *HandleErrorRequest) GetError() string
- func (*HandleErrorRequest) ProtoMessage()
- func (m *HandleErrorRequest) Reset()
- func (m *HandleErrorRequest) String() string
- func (m *HandleErrorRequest) XXX_DiscardUnknown()
- func (m *HandleErrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HandleErrorRequest) XXX_Merge(src proto.Message)
- func (m *HandleErrorRequest) XXX_Size() int
- func (m *HandleErrorRequest) XXX_Unmarshal(b []byte) error
- type HandleErrorResponse
- func (*HandleErrorResponse) Descriptor() ([]byte, []int)
- func (*HandleErrorResponse) ProtoMessage()
- func (m *HandleErrorResponse) Reset()
- func (m *HandleErrorResponse) String() string
- func (m *HandleErrorResponse) XXX_DiscardUnknown()
- func (m *HandleErrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HandleErrorResponse) XXX_Merge(src proto.Message)
- func (m *HandleErrorResponse) XXX_Size() int
- func (m *HandleErrorResponse) XXX_Unmarshal(b []byte) error
- type HandleRXInfoRequest
- func (*HandleRXInfoRequest) Descriptor() ([]byte, []int)
- func (m *HandleRXInfoRequest) GetDevEUI() []byte
- func (m *HandleRXInfoRequest) GetRxInfo() []*RXInfo
- func (m *HandleRXInfoRequest) GetTxInfo() *TXInfo
- func (*HandleRXInfoRequest) ProtoMessage()
- func (m *HandleRXInfoRequest) Reset()
- func (m *HandleRXInfoRequest) String() string
- func (m *HandleRXInfoRequest) XXX_DiscardUnknown()
- func (m *HandleRXInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HandleRXInfoRequest) XXX_Merge(src proto.Message)
- func (m *HandleRXInfoRequest) XXX_Size() int
- func (m *HandleRXInfoRequest) XXX_Unmarshal(b []byte) error
- type HandleRXInfoResponse
- func (*HandleRXInfoResponse) Descriptor() ([]byte, []int)
- func (*HandleRXInfoResponse) ProtoMessage()
- func (m *HandleRXInfoResponse) Reset()
- func (m *HandleRXInfoResponse) String() string
- func (m *HandleRXInfoResponse) XXX_DiscardUnknown()
- func (m *HandleRXInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HandleRXInfoResponse) XXX_Merge(src proto.Message)
- func (m *HandleRXInfoResponse) XXX_Size() int
- func (m *HandleRXInfoResponse) XXX_Unmarshal(b []byte) error
- type NetworkControllerClient
- type NetworkControllerServer
- type RXInfo
- func (*RXInfo) Descriptor() ([]byte, []int)
- func (m *RXInfo) GetLoRaSNR() float64
- func (m *RXInfo) GetMac() []byte
- func (m *RXInfo) GetRssi() int32
- func (m *RXInfo) GetTime() string
- func (*RXInfo) ProtoMessage()
- func (m *RXInfo) Reset()
- func (m *RXInfo) String() string
- func (m *RXInfo) XXX_DiscardUnknown()
- func (m *RXInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RXInfo) XXX_Merge(src proto.Message)
- func (m *RXInfo) XXX_Size() int
- func (m *RXInfo) XXX_Unmarshal(b []byte) error
- type TXInfo
- func (*TXInfo) Descriptor() ([]byte, []int)
- func (m *TXInfo) GetAdr() bool
- func (m *TXInfo) GetCodeRate() string
- func (m *TXInfo) GetDataRate() *DataRate
- func (m *TXInfo) GetFrequency() int64
- func (*TXInfo) ProtoMessage()
- func (m *TXInfo) Reset()
- func (m *TXInfo) String() string
- func (m *TXInfo) XXX_DiscardUnknown()
- func (m *TXInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TXInfo) XXX_Merge(src proto.Message)
- func (m *TXInfo) XXX_Size() int
- func (m *TXInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNetworkControllerServer ¶
func RegisterNetworkControllerServer(s *grpc.Server, srv NetworkControllerServer)
Types ¶
type DataRate ¶
type DataRate struct { Modulation string `protobuf:"bytes,1,opt,name=modulation" json:"modulation,omitempty"` BandWidth uint32 `protobuf:"varint,2,opt,name=bandWidth" json:"bandWidth,omitempty"` SpreadFactor uint32 `protobuf:"varint,3,opt,name=spreadFactor" json:"spreadFactor,omitempty"` Bitrate uint32 `protobuf:"varint,4,opt,name=bitrate" json:"bitrate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DataRate) Descriptor ¶
func (*DataRate) GetBandWidth ¶
func (*DataRate) GetBitrate ¶
func (*DataRate) GetModulation ¶
func (*DataRate) GetSpreadFactor ¶
func (*DataRate) ProtoMessage ¶
func (*DataRate) ProtoMessage()
func (*DataRate) XXX_DiscardUnknown ¶
func (m *DataRate) XXX_DiscardUnknown()
func (*DataRate) XXX_Marshal ¶
func (*DataRate) XXX_Unmarshal ¶
type HandleDataUpMACCommandRequest ¶
type HandleDataUpMACCommandRequest struct { // DevEUI of the node. DevEUI []byte `protobuf:"bytes,1,opt,name=devEUI,proto3" json:"devEUI,omitempty"` // Command identifier (specified by the LoRaWAN specs). Cid uint32 `protobuf:"varint,5,opt,name=cid" 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 (*HandleDataUpMACCommandRequest) Descriptor ¶
func (*HandleDataUpMACCommandRequest) Descriptor() ([]byte, []int)
func (*HandleDataUpMACCommandRequest) GetCid ¶
func (m *HandleDataUpMACCommandRequest) GetCid() uint32
func (*HandleDataUpMACCommandRequest) GetCommands ¶
func (m *HandleDataUpMACCommandRequest) GetCommands() [][]byte
func (*HandleDataUpMACCommandRequest) GetDevEUI ¶
func (m *HandleDataUpMACCommandRequest) GetDevEUI() []byte
func (*HandleDataUpMACCommandRequest) ProtoMessage ¶
func (*HandleDataUpMACCommandRequest) ProtoMessage()
func (*HandleDataUpMACCommandRequest) Reset ¶
func (m *HandleDataUpMACCommandRequest) Reset()
func (*HandleDataUpMACCommandRequest) String ¶
func (m *HandleDataUpMACCommandRequest) String() string
func (*HandleDataUpMACCommandRequest) XXX_DiscardUnknown ¶
func (m *HandleDataUpMACCommandRequest) XXX_DiscardUnknown()
func (*HandleDataUpMACCommandRequest) XXX_Marshal ¶
func (m *HandleDataUpMACCommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HandleDataUpMACCommandRequest) XXX_Merge ¶
func (dst *HandleDataUpMACCommandRequest) XXX_Merge(src proto.Message)
func (*HandleDataUpMACCommandRequest) XXX_Size ¶
func (m *HandleDataUpMACCommandRequest) XXX_Size() int
func (*HandleDataUpMACCommandRequest) XXX_Unmarshal ¶
func (m *HandleDataUpMACCommandRequest) XXX_Unmarshal(b []byte) error
type HandleDataUpMACCommandResponse ¶
type HandleDataUpMACCommandResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HandleDataUpMACCommandResponse) Descriptor ¶
func (*HandleDataUpMACCommandResponse) Descriptor() ([]byte, []int)
func (*HandleDataUpMACCommandResponse) ProtoMessage ¶
func (*HandleDataUpMACCommandResponse) ProtoMessage()
func (*HandleDataUpMACCommandResponse) Reset ¶
func (m *HandleDataUpMACCommandResponse) Reset()
func (*HandleDataUpMACCommandResponse) String ¶
func (m *HandleDataUpMACCommandResponse) String() string
func (*HandleDataUpMACCommandResponse) XXX_DiscardUnknown ¶
func (m *HandleDataUpMACCommandResponse) XXX_DiscardUnknown()
func (*HandleDataUpMACCommandResponse) XXX_Marshal ¶
func (m *HandleDataUpMACCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HandleDataUpMACCommandResponse) XXX_Merge ¶
func (dst *HandleDataUpMACCommandResponse) XXX_Merge(src proto.Message)
func (*HandleDataUpMACCommandResponse) XXX_Size ¶
func (m *HandleDataUpMACCommandResponse) XXX_Size() int
func (*HandleDataUpMACCommandResponse) XXX_Unmarshal ¶
func (m *HandleDataUpMACCommandResponse) XXX_Unmarshal(b []byte) error
type HandleErrorRequest ¶
type HandleErrorRequest struct { DevEUI []byte `protobuf:"bytes,1,opt,name=devEUI,proto3" json:"devEUI,omitempty"` Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HandleErrorRequest) Descriptor ¶
func (*HandleErrorRequest) Descriptor() ([]byte, []int)
func (*HandleErrorRequest) GetDevEUI ¶
func (m *HandleErrorRequest) GetDevEUI() []byte
func (*HandleErrorRequest) GetError ¶
func (m *HandleErrorRequest) GetError() string
func (*HandleErrorRequest) ProtoMessage ¶
func (*HandleErrorRequest) ProtoMessage()
func (*HandleErrorRequest) Reset ¶
func (m *HandleErrorRequest) Reset()
func (*HandleErrorRequest) String ¶
func (m *HandleErrorRequest) String() string
func (*HandleErrorRequest) XXX_DiscardUnknown ¶
func (m *HandleErrorRequest) XXX_DiscardUnknown()
func (*HandleErrorRequest) XXX_Marshal ¶
func (m *HandleErrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HandleErrorRequest) XXX_Merge ¶
func (dst *HandleErrorRequest) XXX_Merge(src proto.Message)
func (*HandleErrorRequest) XXX_Size ¶
func (m *HandleErrorRequest) XXX_Size() int
func (*HandleErrorRequest) XXX_Unmarshal ¶
func (m *HandleErrorRequest) XXX_Unmarshal(b []byte) error
type HandleErrorResponse ¶
type HandleErrorResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HandleErrorResponse) Descriptor ¶
func (*HandleErrorResponse) Descriptor() ([]byte, []int)
func (*HandleErrorResponse) ProtoMessage ¶
func (*HandleErrorResponse) ProtoMessage()
func (*HandleErrorResponse) Reset ¶
func (m *HandleErrorResponse) Reset()
func (*HandleErrorResponse) String ¶
func (m *HandleErrorResponse) String() string
func (*HandleErrorResponse) XXX_DiscardUnknown ¶
func (m *HandleErrorResponse) XXX_DiscardUnknown()
func (*HandleErrorResponse) XXX_Marshal ¶
func (m *HandleErrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HandleErrorResponse) XXX_Merge ¶
func (dst *HandleErrorResponse) XXX_Merge(src proto.Message)
func (*HandleErrorResponse) XXX_Size ¶
func (m *HandleErrorResponse) XXX_Size() int
func (*HandleErrorResponse) XXX_Unmarshal ¶
func (m *HandleErrorResponse) XXX_Unmarshal(b []byte) error
type HandleRXInfoRequest ¶
type HandleRXInfoRequest struct { DevEUI []byte `protobuf:"bytes,1,opt,name=devEUI,proto3" json:"devEUI,omitempty"` TxInfo *TXInfo `protobuf:"bytes,3,opt,name=txInfo" json:"txInfo,omitempty"` RxInfo []*RXInfo `protobuf:"bytes,4,rep,name=rxInfo" json:"rxInfo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HandleRXInfoRequest) Descriptor ¶
func (*HandleRXInfoRequest) Descriptor() ([]byte, []int)
func (*HandleRXInfoRequest) GetDevEUI ¶
func (m *HandleRXInfoRequest) GetDevEUI() []byte
func (*HandleRXInfoRequest) GetRxInfo ¶
func (m *HandleRXInfoRequest) GetRxInfo() []*RXInfo
func (*HandleRXInfoRequest) GetTxInfo ¶
func (m *HandleRXInfoRequest) GetTxInfo() *TXInfo
func (*HandleRXInfoRequest) ProtoMessage ¶
func (*HandleRXInfoRequest) ProtoMessage()
func (*HandleRXInfoRequest) Reset ¶
func (m *HandleRXInfoRequest) Reset()
func (*HandleRXInfoRequest) String ¶
func (m *HandleRXInfoRequest) String() string
func (*HandleRXInfoRequest) XXX_DiscardUnknown ¶
func (m *HandleRXInfoRequest) XXX_DiscardUnknown()
func (*HandleRXInfoRequest) XXX_Marshal ¶
func (m *HandleRXInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HandleRXInfoRequest) XXX_Merge ¶
func (dst *HandleRXInfoRequest) XXX_Merge(src proto.Message)
func (*HandleRXInfoRequest) XXX_Size ¶
func (m *HandleRXInfoRequest) XXX_Size() int
func (*HandleRXInfoRequest) XXX_Unmarshal ¶
func (m *HandleRXInfoRequest) XXX_Unmarshal(b []byte) error
type HandleRXInfoResponse ¶
type HandleRXInfoResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HandleRXInfoResponse) Descriptor ¶
func (*HandleRXInfoResponse) Descriptor() ([]byte, []int)
func (*HandleRXInfoResponse) ProtoMessage ¶
func (*HandleRXInfoResponse) ProtoMessage()
func (*HandleRXInfoResponse) Reset ¶
func (m *HandleRXInfoResponse) Reset()
func (*HandleRXInfoResponse) String ¶
func (m *HandleRXInfoResponse) String() string
func (*HandleRXInfoResponse) XXX_DiscardUnknown ¶
func (m *HandleRXInfoResponse) XXX_DiscardUnknown()
func (*HandleRXInfoResponse) XXX_Marshal ¶
func (m *HandleRXInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HandleRXInfoResponse) XXX_Merge ¶
func (dst *HandleRXInfoResponse) XXX_Merge(src proto.Message)
func (*HandleRXInfoResponse) XXX_Size ¶
func (m *HandleRXInfoResponse) XXX_Size() int
func (*HandleRXInfoResponse) XXX_Unmarshal ¶
func (m *HandleRXInfoResponse) XXX_Unmarshal(b []byte) error
type NetworkControllerClient ¶
type NetworkControllerClient interface { // HandleRXInfo publishes rx related meta-data. HandleRXInfo(ctx context.Context, in *HandleRXInfoRequest, opts ...grpc.CallOption) (*HandleRXInfoResponse, error) // HandleDataUpMACCommand publishes a mac-command received by an end-device. // 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). HandleDataUpMACCommand(ctx context.Context, in *HandleDataUpMACCommandRequest, opts ...grpc.CallOption) (*HandleDataUpMACCommandResponse, error) }
NetworkControllerClient is the client API for NetworkController service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNetworkControllerClient ¶
func NewNetworkControllerClient(cc *grpc.ClientConn) NetworkControllerClient
type NetworkControllerServer ¶
type NetworkControllerServer interface { // HandleRXInfo publishes rx related meta-data. HandleRXInfo(context.Context, *HandleRXInfoRequest) (*HandleRXInfoResponse, error) // HandleDataUpMACCommand publishes a mac-command received by an end-device. // 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). HandleDataUpMACCommand(context.Context, *HandleDataUpMACCommandRequest) (*HandleDataUpMACCommandResponse, error) }
type RXInfo ¶
type RXInfo struct { Mac []byte `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"` Time string `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"` Rssi int32 `protobuf:"varint,3,opt,name=rssi" json:"rssi,omitempty"` LoRaSNR float64 `protobuf:"fixed64,4,opt,name=loRaSNR" json:"loRaSNR,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RXInfo) Descriptor ¶
func (*RXInfo) GetLoRaSNR ¶
func (*RXInfo) ProtoMessage ¶
func (*RXInfo) ProtoMessage()
func (*RXInfo) XXX_DiscardUnknown ¶
func (m *RXInfo) XXX_DiscardUnknown()
func (*RXInfo) XXX_Marshal ¶
func (*RXInfo) XXX_Unmarshal ¶
type TXInfo ¶
type TXInfo struct { Frequency int64 `protobuf:"varint,1,opt,name=frequency" json:"frequency,omitempty"` DataRate *DataRate `protobuf:"bytes,2,opt,name=dataRate" json:"dataRate,omitempty"` Adr bool `protobuf:"varint,3,opt,name=adr" json:"adr,omitempty"` CodeRate string `protobuf:"bytes,4,opt,name=codeRate" json:"codeRate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TXInfo) Descriptor ¶
func (*TXInfo) GetCodeRate ¶
func (*TXInfo) GetDataRate ¶
func (*TXInfo) GetFrequency ¶
func (*TXInfo) ProtoMessage ¶
func (*TXInfo) ProtoMessage()
func (*TXInfo) XXX_DiscardUnknown ¶
func (m *TXInfo) XXX_DiscardUnknown()
func (*TXInfo) XXX_Marshal ¶
func (*TXInfo) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.