Documentation ¶
Overview ¶
Package lorawan is a generated protocol buffer package.
It is generated from these files:
github.com/TheThingsNetwork/ttn/api/protocol/lorawan/device.proto
It has these top-level messages:
DeviceIdentifier Device
Package lorawan is a generated protocol buffer package.
It is generated from these files:
github.com/TheThingsNetwork/ttn/api/protocol/lorawan/device_address.proto
It has these top-level messages:
PrefixesRequest PrefixesResponse DevAddrRequest DevAddrResponse
Package lorawan is a generated protocol buffer package.
It is generated from these files:
github.com/TheThingsNetwork/ttn/api/protocol/lorawan/lorawan.proto
It has these top-level messages:
Metadata TxConfiguration ActivationMetadata Message MHDR MACPayload FHDR FCtrl MACCommand JoinRequestPayload JoinAcceptPayload DLSettings CFList
Index ¶
- Variables
- func RandomDownlinkPayload() []byte
- func RandomPayload(mType ...MType) []byte
- func RandomUplinkPayload() []byte
- func RegisterDevAddrManagerServer(s *grpc.Server, srv DevAddrManagerServer)
- func RegisterDeviceManagerServer(s *grpc.Server, srv DeviceManagerServer)
- type ActivationMetadata
- func (*ActivationMetadata) Descriptor() ([]byte, []int)
- func (this *ActivationMetadata) Equal(that interface{}) bool
- func (m *ActivationMetadata) GetCfList() *CFList
- func (m *ActivationMetadata) GetFrequencyPlan() FrequencyPlan
- func (m *ActivationMetadata) GetRx1DrOffset() uint32
- func (m *ActivationMetadata) GetRx2Dr() uint32
- func (m *ActivationMetadata) GetRxDelay() uint32
- func (m *ActivationMetadata) Marshal() (dAtA []byte, err error)
- func (m *ActivationMetadata) MarshalTo(dAtA []byte) (int, error)
- func (*ActivationMetadata) ProtoMessage()
- func (m *ActivationMetadata) Reset()
- func (m *ActivationMetadata) Size() (n int)
- func (this *ActivationMetadata) String() string
- func (m *ActivationMetadata) Unmarshal(dAtA []byte) error
- func (m *ActivationMetadata) Validate() error
- func (this *ActivationMetadata) VerboseEqual(that interface{}) error
- type CFList
- func (*CFList) Descriptor() ([]byte, []int)
- func (this *CFList) Equal(that interface{}) bool
- func (m *CFList) GetFreq() []uint32
- func (m *CFList) Marshal() (dAtA []byte, err error)
- func (m *CFList) MarshalTo(dAtA []byte) (int, error)
- func (*CFList) ProtoMessage()
- func (m *CFList) Reset()
- func (m *CFList) Size() (n int)
- func (this *CFList) String() string
- func (m *CFList) Unmarshal(dAtA []byte) error
- func (this *CFList) VerboseEqual(that interface{}) error
- type DLSettings
- func (*DLSettings) Descriptor() ([]byte, []int)
- func (this *DLSettings) Equal(that interface{}) bool
- func (m *DLSettings) GetRx1DrOffset() uint32
- func (m *DLSettings) GetRx2Dr() uint32
- func (m *DLSettings) Marshal() (dAtA []byte, err error)
- func (m *DLSettings) MarshalTo(dAtA []byte) (int, error)
- func (*DLSettings) ProtoMessage()
- func (m *DLSettings) Reset()
- func (m *DLSettings) Size() (n int)
- func (this *DLSettings) String() string
- func (m *DLSettings) Unmarshal(dAtA []byte) error
- func (this *DLSettings) VerboseEqual(that interface{}) error
- type DevAddrManagerClient
- type DevAddrManagerServer
- type DevAddrRequest
- func (*DevAddrRequest) Descriptor() ([]byte, []int)
- func (this *DevAddrRequest) Equal(that interface{}) bool
- func (m *DevAddrRequest) GetUsage() []string
- func (m *DevAddrRequest) Marshal() (dAtA []byte, err error)
- func (m *DevAddrRequest) MarshalTo(dAtA []byte) (int, error)
- func (*DevAddrRequest) ProtoMessage()
- func (m *DevAddrRequest) Reset()
- func (m *DevAddrRequest) Size() (n int)
- func (this *DevAddrRequest) String() string
- func (m *DevAddrRequest) Unmarshal(dAtA []byte) error
- func (this *DevAddrRequest) VerboseEqual(that interface{}) error
- type DevAddrResponse
- func (*DevAddrResponse) Descriptor() ([]byte, []int)
- func (this *DevAddrResponse) Equal(that interface{}) bool
- func (m *DevAddrResponse) Marshal() (dAtA []byte, err error)
- func (m *DevAddrResponse) MarshalTo(dAtA []byte) (int, error)
- func (*DevAddrResponse) ProtoMessage()
- func (m *DevAddrResponse) Reset()
- func (m *DevAddrResponse) Size() (n int)
- func (this *DevAddrResponse) String() string
- func (m *DevAddrResponse) Unmarshal(dAtA []byte) error
- func (this *DevAddrResponse) VerboseEqual(that interface{}) error
- type Device
- func (*Device) Descriptor() ([]byte, []int)
- func (this *Device) Equal(that interface{}) bool
- func (m *Device) GetActivationConstraints() string
- func (m *Device) GetAppEui() *types.AppEUI
- func (m *Device) GetAppId() string
- func (m *Device) GetDevAddr() *types.DevAddr
- func (m *Device) GetDevEui() *types.DevEUI
- func (m *Device) GetDevId() string
- func (m *Device) GetDisableFCntCheck() bool
- func (m *Device) GetFCntDown() uint32
- func (m *Device) GetFCntUp() uint32
- func (m *Device) GetLastSeen() int64
- func (m *Device) GetUses32BitFCnt() bool
- func (m *Device) Marshal() (dAtA []byte, err error)
- func (m *Device) MarshalTo(dAtA []byte) (int, error)
- func (*Device) ProtoMessage()
- func (m *Device) Reset()
- func (m *Device) Size() (n int)
- func (this *Device) String() string
- func (m *Device) Unmarshal(dAtA []byte) error
- func (m *Device) Validate() error
- func (this *Device) VerboseEqual(that interface{}) error
- type DeviceIdentifier
- func (*DeviceIdentifier) Descriptor() ([]byte, []int)
- func (this *DeviceIdentifier) Equal(that interface{}) bool
- func (m *DeviceIdentifier) GetAppEui() *types.AppEUI
- func (m *DeviceIdentifier) GetDevEui() *types.DevEUI
- func (m *DeviceIdentifier) Marshal() (dAtA []byte, err error)
- func (m *DeviceIdentifier) MarshalTo(dAtA []byte) (int, error)
- func (*DeviceIdentifier) ProtoMessage()
- func (m *DeviceIdentifier) Reset()
- func (m *DeviceIdentifier) Size() (n int)
- func (this *DeviceIdentifier) String() string
- func (m *DeviceIdentifier) Unmarshal(dAtA []byte) error
- func (m *DeviceIdentifier) Validate() error
- func (this *DeviceIdentifier) VerboseEqual(that interface{}) error
- type DeviceManagerClient
- type DeviceManagerServer
- type FCtrl
- func (*FCtrl) Descriptor() ([]byte, []int)
- func (this *FCtrl) Equal(that interface{}) bool
- func (m *FCtrl) GetAck() bool
- func (m *FCtrl) GetAdr() bool
- func (m *FCtrl) GetAdrAckReq() bool
- func (m *FCtrl) GetFPending() bool
- func (m *FCtrl) Marshal() (dAtA []byte, err error)
- func (m *FCtrl) MarshalTo(dAtA []byte) (int, error)
- func (*FCtrl) ProtoMessage()
- func (m *FCtrl) Reset()
- func (m *FCtrl) Size() (n int)
- func (this *FCtrl) String() string
- func (m *FCtrl) Unmarshal(dAtA []byte) error
- func (this *FCtrl) VerboseEqual(that interface{}) error
- type FHDR
- func (*FHDR) Descriptor() ([]byte, []int)
- func (this *FHDR) Equal(that interface{}) bool
- func (m *FHDR) GetFCnt() uint32
- func (m *FHDR) GetFOpts() []MACCommand
- func (m *FHDR) Marshal() (dAtA []byte, err error)
- func (m *FHDR) MarshalTo(dAtA []byte) (int, error)
- func (*FHDR) ProtoMessage()
- func (m *FHDR) Reset()
- func (m *FHDR) Size() (n int)
- func (this *FHDR) String() string
- func (m *FHDR) Unmarshal(dAtA []byte) error
- func (this *FHDR) VerboseEqual(that interface{}) error
- type FrequencyPlan
- type JoinAcceptPayload
- func (*JoinAcceptPayload) Descriptor() ([]byte, []int)
- func (this *JoinAcceptPayload) Equal(that interface{}) bool
- func (m *JoinAcceptPayload) GetCfList() *CFList
- func (m *JoinAcceptPayload) GetEncrypted() []byte
- func (m *JoinAcceptPayload) GetRxDelay() uint32
- func (m *JoinAcceptPayload) Marshal() (dAtA []byte, err error)
- func (m *JoinAcceptPayload) MarshalTo(dAtA []byte) (int, error)
- func (*JoinAcceptPayload) ProtoMessage()
- func (m *JoinAcceptPayload) Reset()
- func (m *JoinAcceptPayload) Size() (n int)
- func (this *JoinAcceptPayload) String() string
- func (m *JoinAcceptPayload) Unmarshal(dAtA []byte) error
- func (m *JoinAcceptPayload) Validate() error
- func (this *JoinAcceptPayload) VerboseEqual(that interface{}) error
- type JoinRequestPayload
- func (*JoinRequestPayload) Descriptor() ([]byte, []int)
- func (this *JoinRequestPayload) Equal(that interface{}) bool
- func (m *JoinRequestPayload) Marshal() (dAtA []byte, err error)
- func (m *JoinRequestPayload) MarshalTo(dAtA []byte) (int, error)
- func (*JoinRequestPayload) ProtoMessage()
- func (m *JoinRequestPayload) Reset()
- func (m *JoinRequestPayload) Size() (n int)
- func (this *JoinRequestPayload) String() string
- func (m *JoinRequestPayload) Unmarshal(dAtA []byte) error
- func (m *JoinRequestPayload) Validate() error
- func (this *JoinRequestPayload) VerboseEqual(that interface{}) error
- type MACCommand
- func (*MACCommand) Descriptor() ([]byte, []int)
- func (this *MACCommand) Equal(that interface{}) bool
- func (m *MACCommand) GetCid() uint32
- func (m *MACCommand) GetPayload() []byte
- func (m *MACCommand) MACCommand() (cmd lorawan.MACCommand)
- func (m *MACCommand) Marshal() (dAtA []byte, err error)
- func (m *MACCommand) MarshalTo(dAtA []byte) (int, error)
- func (*MACCommand) ProtoMessage()
- func (m *MACCommand) Reset()
- func (m *MACCommand) Size() (n int)
- func (this *MACCommand) String() string
- func (m *MACCommand) Unmarshal(dAtA []byte) error
- func (this *MACCommand) VerboseEqual(that interface{}) error
- type MACPayload
- func (*MACPayload) Descriptor() ([]byte, []int)
- func (this *MACPayload) Equal(that interface{}) bool
- func (m *MACPayload) GetFPort() int32
- func (m *MACPayload) GetFrmPayload() []byte
- func (m *MACPayload) Marshal() (dAtA []byte, err error)
- func (m *MACPayload) MarshalTo(dAtA []byte) (int, error)
- func (*MACPayload) ProtoMessage()
- func (m *MACPayload) Reset()
- func (m *MACPayload) Size() (n int)
- func (this *MACPayload) String() string
- func (m *MACPayload) Unmarshal(dAtA []byte) error
- func (m *MACPayload) Validate() error
- func (this *MACPayload) VerboseEqual(that interface{}) error
- type MHDR
- func (*MHDR) Descriptor() ([]byte, []int)
- func (this *MHDR) Equal(that interface{}) bool
- func (m *MHDR) GetMType() MType
- func (m *MHDR) GetMajor() Major
- func (m *MHDR) Marshal() (dAtA []byte, err error)
- func (m *MHDR) MarshalTo(dAtA []byte) (int, error)
- func (*MHDR) ProtoMessage()
- func (m *MHDR) Reset()
- func (m *MHDR) Size() (n int)
- func (this *MHDR) String() string
- func (m *MHDR) Unmarshal(dAtA []byte) error
- func (this *MHDR) VerboseEqual(that interface{}) error
- type MType
- type Major
- type Message
- func (m *Message) DecryptFRMPayload(appSKey types.AppSKey) error
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) EncryptFRMPayload(appSKey types.AppSKey) error
- func (this *Message) Equal(that interface{}) bool
- func (m *Message) GetJoinAcceptPayload() *JoinAcceptPayload
- func (m *Message) GetJoinRequestPayload() *JoinRequestPayload
- func (m *Message) GetMacPayload() *MACPayload
- func (m *Message) GetMic() []byte
- func (m *Message) GetPayload() isMessage_Payload
- func (m *Message) InitDownlink() *MACPayload
- func (m *Message) InitUplink() *MACPayload
- func (m *Message) IsConfirmed() bool
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) PHYPayload() (phy lorawan.PHYPayload)
- func (m *Message) PHYPayloadBytes() []byte
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) SetMIC(nwkSKey types.NwkSKey) error
- func (m *Message) Size() (n int)
- func (this *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) Validate() error
- func (m *Message) ValidateMIC(nwkSKey types.NwkSKey) error
- func (this *Message) VerboseEqual(that interface{}) error
- func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Message_JoinAcceptPayload
- func (this *Message_JoinAcceptPayload) Equal(that interface{}) bool
- func (m *Message_JoinAcceptPayload) MarshalTo(dAtA []byte) (int, error)
- func (msg *Message_JoinAcceptPayload) Payload() lorawan.Payload
- func (m *Message_JoinAcceptPayload) Size() (n int)
- func (this *Message_JoinAcceptPayload) String() string
- func (this *Message_JoinAcceptPayload) VerboseEqual(that interface{}) error
- type Message_JoinRequestPayload
- func (this *Message_JoinRequestPayload) Equal(that interface{}) bool
- func (m *Message_JoinRequestPayload) MarshalTo(dAtA []byte) (int, error)
- func (msg *Message_JoinRequestPayload) Payload() lorawan.Payload
- func (m *Message_JoinRequestPayload) Size() (n int)
- func (this *Message_JoinRequestPayload) String() string
- func (this *Message_JoinRequestPayload) VerboseEqual(that interface{}) error
- type Message_MacPayload
- func (this *Message_MacPayload) Equal(that interface{}) bool
- func (m *Message_MacPayload) MarshalTo(dAtA []byte) (int, error)
- func (msg *Message_MacPayload) Payload() lorawan.Payload
- func (m *Message_MacPayload) Size() (n int)
- func (this *Message_MacPayload) String() string
- func (this *Message_MacPayload) VerboseEqual(that interface{}) error
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (this *Metadata) Equal(that interface{}) bool
- func (m *Metadata) GetBitRate() uint32
- func (m *Metadata) GetCodingRate() string
- func (m *Metadata) GetDataRate() string
- func (m *Metadata) GetFCnt() uint32
- func (m *Metadata) GetFrequencyPlan() FrequencyPlan
- func (m *Metadata) GetLoRaWANDataRate() (dataRate band.DataRate, err error)
- func (m *Metadata) GetModulation() Modulation
- func (m *Metadata) Marshal() (dAtA []byte, err error)
- func (m *Metadata) MarshalTo(dAtA []byte) (int, error)
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) Size() (n int)
- func (this *Metadata) String() string
- func (m *Metadata) Unmarshal(dAtA []byte) error
- func (m *Metadata) Validate() error
- func (this *Metadata) VerboseEqual(that interface{}) error
- type MockDeviceManagerClient
- func (_m *MockDeviceManagerClient) DeleteDevice(ctx context.Context, in *DeviceIdentifier, opts ...grpc.CallOption) (*empty.Empty, error)
- func (_m *MockDeviceManagerClient) EXPECT() *_MockDeviceManagerClientRecorder
- func (_m *MockDeviceManagerClient) GetDevice(ctx context.Context, in *DeviceIdentifier, opts ...grpc.CallOption) (*Device, error)
- func (_m *MockDeviceManagerClient) SetDevice(ctx context.Context, in *Device, opts ...grpc.CallOption) (*empty.Empty, error)
- type MockDeviceManagerServer
- func (_m *MockDeviceManagerServer) DeleteDevice(_param0 context.Context, _param1 *DeviceIdentifier) (*empty.Empty, error)
- func (_m *MockDeviceManagerServer) EXPECT() *_MockDeviceManagerServerRecorder
- func (_m *MockDeviceManagerServer) GetDevice(_param0 context.Context, _param1 *DeviceIdentifier) (*Device, error)
- func (_m *MockDeviceManagerServer) SetDevice(_param0 context.Context, _param1 *Device) (*empty.Empty, error)
- type Modulation
- type PrefixesRequest
- func (*PrefixesRequest) Descriptor() ([]byte, []int)
- func (this *PrefixesRequest) Equal(that interface{}) bool
- func (m *PrefixesRequest) Marshal() (dAtA []byte, err error)
- func (m *PrefixesRequest) MarshalTo(dAtA []byte) (int, error)
- func (*PrefixesRequest) ProtoMessage()
- func (m *PrefixesRequest) Reset()
- func (m *PrefixesRequest) Size() (n int)
- func (this *PrefixesRequest) String() string
- func (m *PrefixesRequest) Unmarshal(dAtA []byte) error
- func (this *PrefixesRequest) VerboseEqual(that interface{}) error
- type PrefixesResponse
- func (*PrefixesResponse) Descriptor() ([]byte, []int)
- func (this *PrefixesResponse) Equal(that interface{}) bool
- func (m *PrefixesResponse) GetPrefixes() []*PrefixesResponse_PrefixMapping
- func (m *PrefixesResponse) Marshal() (dAtA []byte, err error)
- func (m *PrefixesResponse) MarshalTo(dAtA []byte) (int, error)
- func (*PrefixesResponse) ProtoMessage()
- func (m *PrefixesResponse) Reset()
- func (m *PrefixesResponse) Size() (n int)
- func (this *PrefixesResponse) String() string
- func (m *PrefixesResponse) Unmarshal(dAtA []byte) error
- func (this *PrefixesResponse) VerboseEqual(that interface{}) error
- type PrefixesResponse_PrefixMapping
- func (*PrefixesResponse_PrefixMapping) Descriptor() ([]byte, []int)
- func (this *PrefixesResponse_PrefixMapping) Equal(that interface{}) bool
- func (m *PrefixesResponse_PrefixMapping) GetPrefix() string
- func (m *PrefixesResponse_PrefixMapping) GetUsage() []string
- func (m *PrefixesResponse_PrefixMapping) Marshal() (dAtA []byte, err error)
- func (m *PrefixesResponse_PrefixMapping) MarshalTo(dAtA []byte) (int, error)
- func (*PrefixesResponse_PrefixMapping) ProtoMessage()
- func (m *PrefixesResponse_PrefixMapping) Reset()
- func (m *PrefixesResponse_PrefixMapping) Size() (n int)
- func (this *PrefixesResponse_PrefixMapping) String() string
- func (m *PrefixesResponse_PrefixMapping) Unmarshal(dAtA []byte) error
- func (this *PrefixesResponse_PrefixMapping) VerboseEqual(that interface{}) error
- type TxConfiguration
- func (*TxConfiguration) Descriptor() ([]byte, []int)
- func (this *TxConfiguration) Equal(that interface{}) bool
- func (m *TxConfiguration) GetBitRate() uint32
- func (m *TxConfiguration) GetCodingRate() string
- func (m *TxConfiguration) GetDataRate() string
- func (m *TxConfiguration) GetFCnt() uint32
- func (m *TxConfiguration) GetModulation() Modulation
- func (m *TxConfiguration) Marshal() (dAtA []byte, err error)
- func (m *TxConfiguration) MarshalTo(dAtA []byte) (int, error)
- func (*TxConfiguration) ProtoMessage()
- func (m *TxConfiguration) Reset()
- func (c *TxConfiguration) SetDataRate(dataRate band.DataRate) error
- func (m *TxConfiguration) Size() (n int)
- func (this *TxConfiguration) String() string
- func (m *TxConfiguration) Unmarshal(dAtA []byte) error
- func (m *TxConfiguration) Validate() error
- func (this *TxConfiguration) VerboseEqual(that interface{}) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthDevice = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDevice = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthDeviceAddress = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDeviceAddress = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthLorawan = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLorawan = fmt.Errorf("proto: integer overflow") )
var FrequencyPlan_name = map[int32]string{
0: "EU_863_870",
1: "US_902_928",
2: "CN_779_787",
3: "EU_433",
4: "AU_915_928",
5: "CN_470_510",
6: "AS_923",
61: "AS_920_923",
62: "AS_923_925",
7: "KR_920_923",
8: "IN_865_867",
}
var FrequencyPlan_value = map[string]int32{
"EU_863_870": 0,
"US_902_928": 1,
"CN_779_787": 2,
"EU_433": 3,
"AU_915_928": 4,
"CN_470_510": 5,
"AS_923": 6,
"AS_920_923": 61,
"AS_923_925": 62,
"KR_920_923": 7,
"IN_865_867": 8,
}
var MType_name = map[int32]string{
0: "JOIN_REQUEST",
1: "JOIN_ACCEPT",
2: "UNCONFIRMED_UP",
3: "UNCONFIRMED_DOWN",
4: "CONFIRMED_UP",
5: "CONFIRMED_DOWN",
}
var MType_value = map[string]int32{
"JOIN_REQUEST": 0,
"JOIN_ACCEPT": 1,
"UNCONFIRMED_UP": 2,
"UNCONFIRMED_DOWN": 3,
"CONFIRMED_UP": 4,
"CONFIRMED_DOWN": 5,
}
var Major_name = map[int32]string{
0: "LORAWAN_R1",
}
var Major_value = map[string]int32{
"LORAWAN_R1": 0,
}
var Modulation_name = map[int32]string{
0: "LORA",
1: "FSK",
}
var Modulation_value = map[string]int32{
"LORA": 0,
"FSK": 1,
}
Functions ¶
func RandomDownlinkPayload ¶
func RandomDownlinkPayload() []byte
RandomDownlinkPayload returns randomly generated downlink payload. Used for testing.
func RandomPayload ¶
RandomPayload returns randomly generated payload. Used for testing.
func RandomUplinkPayload ¶
func RandomUplinkPayload() []byte
RandomUplinkPayload returns randomly generated uplink payload. Used for testing.
func RegisterDevAddrManagerServer ¶
func RegisterDevAddrManagerServer(s *grpc.Server, srv DevAddrManagerServer)
func RegisterDeviceManagerServer ¶
func RegisterDeviceManagerServer(s *grpc.Server, srv DeviceManagerServer)
Types ¶
type ActivationMetadata ¶
type ActivationMetadata struct { AppEui *github_com_TheThingsNetwork_ttn_core_types.AppEUI `` /* 140-byte string literal not displayed */ DevEui *github_com_TheThingsNetwork_ttn_core_types.DevEUI `` /* 140-byte string literal not displayed */ DevAddr *github_com_TheThingsNetwork_ttn_core_types.DevAddr `` /* 144-byte string literal not displayed */ NwkSKey *github_com_TheThingsNetwork_ttn_core_types.NwkSKey `` /* 146-byte string literal not displayed */ Rx1DrOffset uint32 `protobuf:"varint,11,opt,name=rx1_dr_offset,json=rx1DrOffset,proto3" json:"rx1_dr_offset,omitempty"` Rx2Dr uint32 `protobuf:"varint,12,opt,name=rx2_dr,json=rx2Dr,proto3" json:"rx2_dr,omitempty"` RxDelay uint32 `protobuf:"varint,13,opt,name=rx_delay,json=rxDelay,proto3" json:"rx_delay,omitempty"` CfList *CFList `protobuf:"bytes,14,opt,name=cf_list,json=cfList" json:"cf_list,omitempty"` FrequencyPlan FrequencyPlan `` /* 129-byte string literal not displayed */ }
func (*ActivationMetadata) Descriptor ¶
func (*ActivationMetadata) Descriptor() ([]byte, []int)
func (*ActivationMetadata) Equal ¶
func (this *ActivationMetadata) Equal(that interface{}) bool
func (*ActivationMetadata) GetCfList ¶
func (m *ActivationMetadata) GetCfList() *CFList
func (*ActivationMetadata) GetFrequencyPlan ¶
func (m *ActivationMetadata) GetFrequencyPlan() FrequencyPlan
func (*ActivationMetadata) GetRx1DrOffset ¶
func (m *ActivationMetadata) GetRx1DrOffset() uint32
func (*ActivationMetadata) GetRx2Dr ¶
func (m *ActivationMetadata) GetRx2Dr() uint32
func (*ActivationMetadata) GetRxDelay ¶
func (m *ActivationMetadata) GetRxDelay() uint32
func (*ActivationMetadata) Marshal ¶
func (m *ActivationMetadata) Marshal() (dAtA []byte, err error)
func (*ActivationMetadata) MarshalTo ¶
func (m *ActivationMetadata) MarshalTo(dAtA []byte) (int, error)
func (*ActivationMetadata) ProtoMessage ¶
func (*ActivationMetadata) ProtoMessage()
func (*ActivationMetadata) Reset ¶
func (m *ActivationMetadata) Reset()
func (*ActivationMetadata) Size ¶
func (m *ActivationMetadata) Size() (n int)
func (*ActivationMetadata) String ¶
func (this *ActivationMetadata) String() string
func (*ActivationMetadata) Unmarshal ¶
func (m *ActivationMetadata) Unmarshal(dAtA []byte) error
func (*ActivationMetadata) Validate ¶
func (m *ActivationMetadata) Validate() error
Validate implements the api.Validator interface
func (*ActivationMetadata) VerboseEqual ¶
func (this *ActivationMetadata) VerboseEqual(that interface{}) error
type CFList ¶
type CFList struct {
Freq []uint32 `protobuf:"varint,1,rep,packed,name=freq" json:"freq,omitempty"`
}
func (*CFList) Descriptor ¶
func (*CFList) ProtoMessage ¶
func (*CFList) ProtoMessage()
func (*CFList) VerboseEqual ¶
type DLSettings ¶
type DLSettings struct { Rx1DrOffset uint32 `protobuf:"varint,1,opt,name=rx1_dr_offset,json=rx1DrOffset,proto3" json:"rx1_dr_offset,omitempty"` Rx2Dr uint32 `protobuf:"varint,2,opt,name=rx2_dr,json=rx2Dr,proto3" json:"rx2_dr,omitempty"` }
func (*DLSettings) Descriptor ¶
func (*DLSettings) Descriptor() ([]byte, []int)
func (*DLSettings) Equal ¶
func (this *DLSettings) Equal(that interface{}) bool
func (*DLSettings) GetRx1DrOffset ¶
func (m *DLSettings) GetRx1DrOffset() uint32
func (*DLSettings) GetRx2Dr ¶
func (m *DLSettings) GetRx2Dr() uint32
func (*DLSettings) Marshal ¶
func (m *DLSettings) Marshal() (dAtA []byte, err error)
func (*DLSettings) ProtoMessage ¶
func (*DLSettings) ProtoMessage()
func (*DLSettings) Reset ¶
func (m *DLSettings) Reset()
func (*DLSettings) Size ¶
func (m *DLSettings) Size() (n int)
func (*DLSettings) String ¶
func (this *DLSettings) String() string
func (*DLSettings) Unmarshal ¶
func (m *DLSettings) Unmarshal(dAtA []byte) error
func (*DLSettings) VerboseEqual ¶
func (this *DLSettings) VerboseEqual(that interface{}) error
type DevAddrManagerClient ¶
type DevAddrManagerClient interface { // Get all prefixes that are in use or available GetPrefixes(ctx context.Context, in *PrefixesRequest, opts ...grpc.CallOption) (*PrefixesResponse, error) // Request a device address GetDevAddr(ctx context.Context, in *DevAddrRequest, opts ...grpc.CallOption) (*DevAddrResponse, error) }
func NewDevAddrManagerClient ¶
func NewDevAddrManagerClient(cc *grpc.ClientConn) DevAddrManagerClient
type DevAddrManagerServer ¶
type DevAddrManagerServer interface { // Get all prefixes that are in use or available GetPrefixes(context.Context, *PrefixesRequest) (*PrefixesResponse, error) // Request a device address GetDevAddr(context.Context, *DevAddrRequest) (*DevAddrResponse, error) }
type DevAddrRequest ¶
type DevAddrRequest struct { // The usage constraints (see activation_constraints in device.proto) Usage []string `protobuf:"bytes,1,rep,name=usage" json:"usage,omitempty"` }
func (*DevAddrRequest) Descriptor ¶
func (*DevAddrRequest) Descriptor() ([]byte, []int)
func (*DevAddrRequest) Equal ¶
func (this *DevAddrRequest) Equal(that interface{}) bool
func (*DevAddrRequest) GetUsage ¶
func (m *DevAddrRequest) GetUsage() []string
func (*DevAddrRequest) Marshal ¶
func (m *DevAddrRequest) Marshal() (dAtA []byte, err error)
func (*DevAddrRequest) ProtoMessage ¶
func (*DevAddrRequest) ProtoMessage()
func (*DevAddrRequest) Reset ¶
func (m *DevAddrRequest) Reset()
func (*DevAddrRequest) Size ¶
func (m *DevAddrRequest) Size() (n int)
func (*DevAddrRequest) String ¶
func (this *DevAddrRequest) String() string
func (*DevAddrRequest) Unmarshal ¶
func (m *DevAddrRequest) Unmarshal(dAtA []byte) error
func (*DevAddrRequest) VerboseEqual ¶
func (this *DevAddrRequest) VerboseEqual(that interface{}) error
type DevAddrResponse ¶
type DevAddrResponse struct {
DevAddr *github_com_TheThingsNetwork_ttn_core_types.DevAddr `` /* 144-byte string literal not displayed */
}
func (*DevAddrResponse) Descriptor ¶
func (*DevAddrResponse) Descriptor() ([]byte, []int)
func (*DevAddrResponse) Equal ¶
func (this *DevAddrResponse) Equal(that interface{}) bool
func (*DevAddrResponse) Marshal ¶
func (m *DevAddrResponse) Marshal() (dAtA []byte, err error)
func (*DevAddrResponse) ProtoMessage ¶
func (*DevAddrResponse) ProtoMessage()
func (*DevAddrResponse) Reset ¶
func (m *DevAddrResponse) Reset()
func (*DevAddrResponse) Size ¶
func (m *DevAddrResponse) Size() (n int)
func (*DevAddrResponse) String ¶
func (this *DevAddrResponse) String() string
func (*DevAddrResponse) Unmarshal ¶
func (m *DevAddrResponse) Unmarshal(dAtA []byte) error
func (*DevAddrResponse) VerboseEqual ¶
func (this *DevAddrResponse) VerboseEqual(that interface{}) error
type Device ¶
type Device struct { // The AppEUI is a unique, 8 byte identifier for the application a device belongs to. AppEui *github_com_TheThingsNetwork_ttn_core_types.AppEUI `` /* 140-byte string literal not displayed */ // The DevEUI is a unique, 8 byte identifier for the device. DevEui *github_com_TheThingsNetwork_ttn_core_types.DevEUI `` /* 140-byte string literal not displayed */ // The AppID is a unique identifier for the application a device belongs to. It can contain lowercase letters, numbers, - and _. AppId string `protobuf:"bytes,3,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // The DevID is a unique identifier for the device. It can contain lowercase letters, numbers, - and _. DevId string `protobuf:"bytes,4,opt,name=dev_id,json=devId,proto3" json:"dev_id,omitempty"` // The DevAddr is a dynamic, 4 byte session address for the device. DevAddr *github_com_TheThingsNetwork_ttn_core_types.DevAddr `` /* 144-byte string literal not displayed */ // The NwkSKey is a 16 byte session key that is known by the device and the network. It is used for routing and MAC related functionality. // This key is negotiated during the OTAA join procedure, or statically configured using ABP. NwkSKey *github_com_TheThingsNetwork_ttn_core_types.NwkSKey `` /* 146-byte string literal not displayed */ // The AppSKey is a 16 byte session key that is known by the device and the application. It is used for payload encryption. // This key is negotiated during the OTAA join procedure, or statically configured using ABP. AppSKey *github_com_TheThingsNetwork_ttn_core_types.AppSKey `` /* 146-byte string literal not displayed */ // The AppKey is a 16 byte static key that is known by the device and the application. It is used for negotiating session keys (OTAA). AppKey *github_com_TheThingsNetwork_ttn_core_types.AppKey `` /* 140-byte string literal not displayed */ // FCntUp is the uplink frame counter for a device session. FCntUp uint32 `protobuf:"varint,9,opt,name=f_cnt_up,json=fCntUp,proto3" json:"f_cnt_up,omitempty"` // FCntDown is the downlink frame counter for a device session. FCntDown uint32 `protobuf:"varint,10,opt,name=f_cnt_down,json=fCntDown,proto3" json:"f_cnt_down,omitempty"` // The DisableFCntCheck option disables the frame counter check. Disabling this makes the device vulnerable to replay attacks, but makes ABP slightly easier. DisableFCntCheck bool `protobuf:"varint,11,opt,name=disable_f_cnt_check,json=disableFCntCheck,proto3" json:"disable_f_cnt_check,omitempty"` // The Uses32BitFCnt option indicates that the device keeps track of full 32 bit frame counters. As only the 16 lsb are actually transmitted, the 16 msb will have to be inferred. Uses32BitFCnt bool `protobuf:"varint,12,opt,name=uses32_bit_f_cnt,json=uses32BitFCnt,proto3" json:"uses32_bit_f_cnt,omitempty"` // The ActivationContstraints are used to allocate a device address for a device (comma-separated). // There are different prefixes for `otaa`, `abp`, `world`, `local`, `private`, `testing`. ActivationConstraints string `protobuf:"bytes,13,opt,name=activation_constraints,json=activationConstraints,proto3" json:"activation_constraints,omitempty"` // When the device was last seen (Unix nanoseconds) LastSeen int64 `protobuf:"varint,21,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"` }
func (*Device) Descriptor ¶
func (*Device) GetActivationConstraints ¶
func (*Device) GetDevAddr ¶
func (*Device) GetDisableFCntCheck ¶
func (*Device) GetFCntDown ¶
func (*Device) GetLastSeen ¶
func (*Device) GetUses32BitFCnt ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) VerboseEqual ¶
type DeviceIdentifier ¶
type DeviceIdentifier struct { // The AppEUI is a unique, 8 byte identifier for the application a device belongs to. AppEui *github_com_TheThingsNetwork_ttn_core_types.AppEUI `` /* 140-byte string literal not displayed */ // The DevEUI is a unique, 8 byte identifier for the device. DevEui *github_com_TheThingsNetwork_ttn_core_types.DevEUI `` /* 140-byte string literal not displayed */ }
func (*DeviceIdentifier) Descriptor ¶
func (*DeviceIdentifier) Descriptor() ([]byte, []int)
func (*DeviceIdentifier) Equal ¶
func (this *DeviceIdentifier) Equal(that interface{}) bool
func (*DeviceIdentifier) GetAppEui ¶
func (m *DeviceIdentifier) GetAppEui() *types.AppEUI
func (*DeviceIdentifier) GetDevEui ¶
func (m *DeviceIdentifier) GetDevEui() *types.DevEUI
func (*DeviceIdentifier) Marshal ¶
func (m *DeviceIdentifier) Marshal() (dAtA []byte, err error)
func (*DeviceIdentifier) ProtoMessage ¶
func (*DeviceIdentifier) ProtoMessage()
func (*DeviceIdentifier) Reset ¶
func (m *DeviceIdentifier) Reset()
func (*DeviceIdentifier) Size ¶
func (m *DeviceIdentifier) Size() (n int)
func (*DeviceIdentifier) String ¶
func (this *DeviceIdentifier) String() string
func (*DeviceIdentifier) Unmarshal ¶
func (m *DeviceIdentifier) Unmarshal(dAtA []byte) error
func (*DeviceIdentifier) Validate ¶
func (m *DeviceIdentifier) Validate() error
Validate implements the api.Validator interface
func (*DeviceIdentifier) VerboseEqual ¶
func (this *DeviceIdentifier) VerboseEqual(that interface{}) error
type DeviceManagerClient ¶
type DeviceManagerClient interface { GetDevice(ctx context.Context, in *DeviceIdentifier, opts ...grpc.CallOption) (*Device, error) SetDevice(ctx context.Context, in *Device, opts ...grpc.CallOption) (*google_protobuf.Empty, error) DeleteDevice(ctx context.Context, in *DeviceIdentifier, opts ...grpc.CallOption) (*google_protobuf.Empty, error) }
func NewDeviceManagerClient ¶
func NewDeviceManagerClient(cc *grpc.ClientConn) DeviceManagerClient
type DeviceManagerServer ¶
type DeviceManagerServer interface { GetDevice(context.Context, *DeviceIdentifier) (*Device, error) SetDevice(context.Context, *Device) (*google_protobuf.Empty, error) DeleteDevice(context.Context, *DeviceIdentifier) (*google_protobuf.Empty, error) }
type FCtrl ¶
type FCtrl struct { Adr bool `protobuf:"varint,1,opt,name=adr,proto3" json:"adr,omitempty"` AdrAckReq bool `protobuf:"varint,2,opt,name=adr_ack_req,json=adrAckReq,proto3" json:"adr_ack_req,omitempty"` Ack bool `protobuf:"varint,3,opt,name=ack,proto3" json:"ack,omitempty"` FPending bool `protobuf:"varint,4,opt,name=f_pending,json=fPending,proto3" json:"f_pending,omitempty"` }
func (*FCtrl) Descriptor ¶
func (*FCtrl) GetAdrAckReq ¶
func (*FCtrl) GetFPending ¶
func (*FCtrl) ProtoMessage ¶
func (*FCtrl) ProtoMessage()
func (*FCtrl) VerboseEqual ¶
type FHDR ¶
type FHDR struct { DevAddr github_com_TheThingsNetwork_ttn_core_types.DevAddr `` /* 134-byte string literal not displayed */ FCtrl `protobuf:"bytes,2,opt,name=f_ctrl,json=fCtrl,embedded=f_ctrl" json:"f_ctrl"` FCnt uint32 `protobuf:"varint,3,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"` FOpts []MACCommand `protobuf:"bytes,4,rep,name=f_opts,json=fOpts" json:"f_opts"` }
func (*FHDR) Descriptor ¶
func (*FHDR) GetFOpts ¶
func (m *FHDR) GetFOpts() []MACCommand
func (*FHDR) ProtoMessage ¶
func (*FHDR) ProtoMessage()
func (*FHDR) VerboseEqual ¶
type FrequencyPlan ¶
type FrequencyPlan int32
const ( FrequencyPlan_EU_863_870 FrequencyPlan = 0 FrequencyPlan_US_902_928 FrequencyPlan = 1 FrequencyPlan_CN_779_787 FrequencyPlan = 2 FrequencyPlan_EU_433 FrequencyPlan = 3 FrequencyPlan_AU_915_928 FrequencyPlan = 4 FrequencyPlan_CN_470_510 FrequencyPlan = 5 FrequencyPlan_AS_923 FrequencyPlan = 6 FrequencyPlan_AS_920_923 FrequencyPlan = 61 FrequencyPlan_AS_923_925 FrequencyPlan = 62 FrequencyPlan_KR_920_923 FrequencyPlan = 7 FrequencyPlan_IN_865_867 FrequencyPlan = 8 )
func (FrequencyPlan) EnumDescriptor ¶
func (FrequencyPlan) EnumDescriptor() ([]byte, []int)
func (FrequencyPlan) String ¶
func (x FrequencyPlan) String() string
type JoinAcceptPayload ¶
type JoinAcceptPayload struct { Encrypted []byte `protobuf:"bytes,1,opt,name=encrypted,proto3" json:"encrypted,omitempty"` AppNonce github_com_TheThingsNetwork_ttn_core_types.AppNonce `` /* 138-byte string literal not displayed */ NetId github_com_TheThingsNetwork_ttn_core_types.NetID `` /* 126-byte string literal not displayed */ DevAddr github_com_TheThingsNetwork_ttn_core_types.DevAddr `` /* 134-byte string literal not displayed */ DLSettings `protobuf:"bytes,5,opt,name=dl_settings,json=dlSettings,embedded=dl_settings" json:"dl_settings"` RxDelay uint32 `protobuf:"varint,6,opt,name=rx_delay,json=rxDelay,proto3" json:"rx_delay,omitempty"` CfList *CFList `protobuf:"bytes,7,opt,name=cf_list,json=cfList" json:"cf_list,omitempty"` }
func JoinAcceptPayloadFromPayload ¶
func JoinAcceptPayloadFromPayload(payload lorawan.Payload) (accept JoinAcceptPayload)
JoinAcceptPayloadFromPayload creates a new JoinAcceptPayload from a lorawan.Payload
func (*JoinAcceptPayload) Descriptor ¶
func (*JoinAcceptPayload) Descriptor() ([]byte, []int)
func (*JoinAcceptPayload) Equal ¶
func (this *JoinAcceptPayload) Equal(that interface{}) bool
func (*JoinAcceptPayload) GetCfList ¶
func (m *JoinAcceptPayload) GetCfList() *CFList
func (*JoinAcceptPayload) GetEncrypted ¶
func (m *JoinAcceptPayload) GetEncrypted() []byte
func (*JoinAcceptPayload) GetRxDelay ¶
func (m *JoinAcceptPayload) GetRxDelay() uint32
func (*JoinAcceptPayload) Marshal ¶
func (m *JoinAcceptPayload) Marshal() (dAtA []byte, err error)
func (*JoinAcceptPayload) MarshalTo ¶
func (m *JoinAcceptPayload) MarshalTo(dAtA []byte) (int, error)
func (*JoinAcceptPayload) ProtoMessage ¶
func (*JoinAcceptPayload) ProtoMessage()
func (*JoinAcceptPayload) Reset ¶
func (m *JoinAcceptPayload) Reset()
func (*JoinAcceptPayload) Size ¶
func (m *JoinAcceptPayload) Size() (n int)
func (*JoinAcceptPayload) String ¶
func (this *JoinAcceptPayload) String() string
func (*JoinAcceptPayload) Unmarshal ¶
func (m *JoinAcceptPayload) Unmarshal(dAtA []byte) error
func (*JoinAcceptPayload) Validate ¶
func (m *JoinAcceptPayload) Validate() error
Validate implements the api.Validator interface
func (*JoinAcceptPayload) VerboseEqual ¶
func (this *JoinAcceptPayload) VerboseEqual(that interface{}) error
type JoinRequestPayload ¶
type JoinRequestPayload struct { AppEui github_com_TheThingsNetwork_ttn_core_types.AppEUI `` /* 130-byte string literal not displayed */ DevEui github_com_TheThingsNetwork_ttn_core_types.DevEUI `` /* 130-byte string literal not displayed */ DevNonce github_com_TheThingsNetwork_ttn_core_types.DevNonce `` /* 138-byte string literal not displayed */ }
func JoinRequestPayloadFromPayload ¶
func JoinRequestPayloadFromPayload(payload lorawan.Payload) (request JoinRequestPayload)
JoinRequestPayloadFromPayload creates a new JoinRequestPayload from a lorawan.Payload
func (*JoinRequestPayload) Descriptor ¶
func (*JoinRequestPayload) Descriptor() ([]byte, []int)
func (*JoinRequestPayload) Equal ¶
func (this *JoinRequestPayload) Equal(that interface{}) bool
func (*JoinRequestPayload) Marshal ¶
func (m *JoinRequestPayload) Marshal() (dAtA []byte, err error)
func (*JoinRequestPayload) MarshalTo ¶
func (m *JoinRequestPayload) MarshalTo(dAtA []byte) (int, error)
func (*JoinRequestPayload) ProtoMessage ¶
func (*JoinRequestPayload) ProtoMessage()
func (*JoinRequestPayload) Reset ¶
func (m *JoinRequestPayload) Reset()
func (*JoinRequestPayload) Size ¶
func (m *JoinRequestPayload) Size() (n int)
func (*JoinRequestPayload) String ¶
func (this *JoinRequestPayload) String() string
func (*JoinRequestPayload) Unmarshal ¶
func (m *JoinRequestPayload) Unmarshal(dAtA []byte) error
func (*JoinRequestPayload) Validate ¶
func (m *JoinRequestPayload) Validate() error
Validate implements the api.Validator interface
func (*JoinRequestPayload) VerboseEqual ¶
func (this *JoinRequestPayload) VerboseEqual(that interface{}) error
type MACCommand ¶
type MACCommand struct { Cid uint32 `protobuf:"varint,1,opt,name=cid,proto3" json:"cid,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` }
func MACCommandFromMACCommand ¶
func MACCommandFromMACCommand(cmd lorawan.MACCommand) (m MACCommand)
MACCommandFromMACCommand creates a new MACCommand from a lorawan.MACCommand
func (*MACCommand) Descriptor ¶
func (*MACCommand) Descriptor() ([]byte, []int)
func (*MACCommand) Equal ¶
func (this *MACCommand) Equal(that interface{}) bool
func (*MACCommand) GetCid ¶
func (m *MACCommand) GetCid() uint32
func (*MACCommand) GetPayload ¶
func (m *MACCommand) GetPayload() []byte
func (*MACCommand) MACCommand ¶
func (m *MACCommand) MACCommand() (cmd lorawan.MACCommand)
MACCommand converts the MACCommand to a lorawan.MACCommand
func (*MACCommand) Marshal ¶
func (m *MACCommand) Marshal() (dAtA []byte, err error)
func (*MACCommand) ProtoMessage ¶
func (*MACCommand) ProtoMessage()
func (*MACCommand) Reset ¶
func (m *MACCommand) Reset()
func (*MACCommand) Size ¶
func (m *MACCommand) Size() (n int)
func (*MACCommand) String ¶
func (this *MACCommand) String() string
func (*MACCommand) Unmarshal ¶
func (m *MACCommand) Unmarshal(dAtA []byte) error
func (*MACCommand) VerboseEqual ¶
func (this *MACCommand) VerboseEqual(that interface{}) error
type MACPayload ¶
type MACPayload struct { FHDR `protobuf:"bytes,1,opt,name=f_hdr,json=fHdr,embedded=f_hdr" json:"f_hdr"` FPort int32 `protobuf:"varint,2,opt,name=f_port,json=fPort,proto3" json:"f_port,omitempty"` FrmPayload []byte `protobuf:"bytes,3,opt,name=frm_payload,json=frmPayload,proto3" json:"frm_payload,omitempty"` }
func MACPayloadFromPayload ¶
func MACPayloadFromPayload(payload lorawan.Payload) (mac MACPayload)
MACPayloadFromPayload creates a new MACPayload from a lorawan.Payload
func (*MACPayload) Descriptor ¶
func (*MACPayload) Descriptor() ([]byte, []int)
func (*MACPayload) Equal ¶
func (this *MACPayload) Equal(that interface{}) bool
func (*MACPayload) GetFPort ¶
func (m *MACPayload) GetFPort() int32
func (*MACPayload) GetFrmPayload ¶
func (m *MACPayload) GetFrmPayload() []byte
func (*MACPayload) Marshal ¶
func (m *MACPayload) Marshal() (dAtA []byte, err error)
func (*MACPayload) ProtoMessage ¶
func (*MACPayload) ProtoMessage()
func (*MACPayload) Reset ¶
func (m *MACPayload) Reset()
func (*MACPayload) Size ¶
func (m *MACPayload) Size() (n int)
func (*MACPayload) String ¶
func (this *MACPayload) String() string
func (*MACPayload) Unmarshal ¶
func (m *MACPayload) Unmarshal(dAtA []byte) error
func (*MACPayload) Validate ¶
func (m *MACPayload) Validate() error
Validate implements the api.Validator interface
func (*MACPayload) VerboseEqual ¶
func (this *MACPayload) VerboseEqual(that interface{}) error
type MHDR ¶
type MHDR struct { MType MType `protobuf:"varint,1,opt,name=m_type,json=mType,proto3,enum=lorawan.MType" json:"m_type,omitempty"` Major Major `protobuf:"varint,2,opt,name=major,proto3,enum=lorawan.Major" json:"major,omitempty"` }
func (*MHDR) Descriptor ¶
func (*MHDR) ProtoMessage ¶
func (*MHDR) ProtoMessage()
func (*MHDR) VerboseEqual ¶
type Message ¶
type Message struct { MHDR `protobuf:"bytes,1,opt,name=m_hdr,json=mHdr,embedded=m_hdr" json:"m_hdr"` Mic []byte `protobuf:"bytes,2,opt,name=mic,proto3" json:"mic,omitempty"` // Types that are valid to be assigned to Payload: // *Message_MacPayload // *Message_JoinRequestPayload // *Message_JoinAcceptPayload Payload isMessage_Payload `protobuf_oneof:"Payload"` }
func MessageFromPHYPayload ¶
func MessageFromPHYPayload(phy lorawan.PHYPayload) Message
MessageFromPHYPayload converts a lorawan.PHYPayload to a Message
func MessageFromPHYPayloadBytes ¶
MessageFromPHYPayloadBytes converts lorawan.PHYPayload bytes to a Message
func (*Message) DecryptFRMPayload ¶
DecryptFRMPayload decrypts the FRMPayload
func (*Message) Descriptor ¶
func (*Message) EncryptFRMPayload ¶
EncryptFRMPayload encrypts the FRMPayload
func (*Message) GetJoinAcceptPayload ¶
func (m *Message) GetJoinAcceptPayload() *JoinAcceptPayload
func (*Message) GetJoinRequestPayload ¶
func (m *Message) GetJoinRequestPayload() *JoinRequestPayload
func (*Message) GetMacPayload ¶
func (m *Message) GetMacPayload() *MACPayload
func (*Message) GetPayload ¶
func (m *Message) GetPayload() isMessage_Payload
func (*Message) InitDownlink ¶
func (m *Message) InitDownlink() *MACPayload
InitDownlink initializes an unconfirmed downlink message
func (*Message) InitUplink ¶
func (m *Message) InitUplink() *MACPayload
InitUplink initializes an unconfirmed uplink message
func (*Message) IsConfirmed ¶
IsConfirmed returns wheter the message is a confirmed message
func (*Message) PHYPayload ¶
func (m *Message) PHYPayload() (phy lorawan.PHYPayload)
PHYPayload converts the Message to a lorawan.PHYPayload
func (*Message) PHYPayloadBytes ¶
PHYPayloadBytes converts the Message to a lorawan.PHYPayload, marshals it and returns the bytes
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ValidateMIC ¶
ValidateMIC validates the MIC of the message
func (*Message) VerboseEqual ¶
type Message_JoinAcceptPayload ¶
type Message_JoinAcceptPayload struct {
JoinAcceptPayload *JoinAcceptPayload `protobuf:"bytes,5,opt,name=join_accept_payload,json=joinAcceptPayload,oneof"`
}
func (*Message_JoinAcceptPayload) Equal ¶
func (this *Message_JoinAcceptPayload) Equal(that interface{}) bool
func (*Message_JoinAcceptPayload) MarshalTo ¶
func (m *Message_JoinAcceptPayload) MarshalTo(dAtA []byte) (int, error)
func (*Message_JoinAcceptPayload) Payload ¶
func (msg *Message_JoinAcceptPayload) Payload() lorawan.Payload
Payload converts the JoinAcceptPayload to a lorawan.Payload
func (*Message_JoinAcceptPayload) Size ¶
func (m *Message_JoinAcceptPayload) Size() (n int)
func (*Message_JoinAcceptPayload) String ¶
func (this *Message_JoinAcceptPayload) String() string
func (*Message_JoinAcceptPayload) VerboseEqual ¶
func (this *Message_JoinAcceptPayload) VerboseEqual(that interface{}) error
type Message_JoinRequestPayload ¶
type Message_JoinRequestPayload struct {
JoinRequestPayload *JoinRequestPayload `protobuf:"bytes,4,opt,name=join_request_payload,json=joinRequestPayload,oneof"`
}
func (*Message_JoinRequestPayload) Equal ¶
func (this *Message_JoinRequestPayload) Equal(that interface{}) bool
func (*Message_JoinRequestPayload) MarshalTo ¶
func (m *Message_JoinRequestPayload) MarshalTo(dAtA []byte) (int, error)
func (*Message_JoinRequestPayload) Payload ¶
func (msg *Message_JoinRequestPayload) Payload() lorawan.Payload
Payload converts the JoinRequestPayload to a lorawan.Payload
func (*Message_JoinRequestPayload) Size ¶
func (m *Message_JoinRequestPayload) Size() (n int)
func (*Message_JoinRequestPayload) String ¶
func (this *Message_JoinRequestPayload) String() string
func (*Message_JoinRequestPayload) VerboseEqual ¶
func (this *Message_JoinRequestPayload) VerboseEqual(that interface{}) error
type Message_MacPayload ¶
type Message_MacPayload struct {
MacPayload *MACPayload `protobuf:"bytes,3,opt,name=mac_payload,json=macPayload,oneof"`
}
func (*Message_MacPayload) Equal ¶
func (this *Message_MacPayload) Equal(that interface{}) bool
func (*Message_MacPayload) MarshalTo ¶
func (m *Message_MacPayload) MarshalTo(dAtA []byte) (int, error)
func (*Message_MacPayload) Payload ¶
func (msg *Message_MacPayload) Payload() lorawan.Payload
Payload converts the MACPayload to a lorawan.Payload
func (*Message_MacPayload) Size ¶
func (m *Message_MacPayload) Size() (n int)
func (*Message_MacPayload) String ¶
func (this *Message_MacPayload) String() string
func (*Message_MacPayload) VerboseEqual ¶
func (this *Message_MacPayload) VerboseEqual(that interface{}) error
type Metadata ¶
type Metadata struct { Modulation Modulation `protobuf:"varint,11,opt,name=modulation,proto3,enum=lorawan.Modulation" json:"modulation,omitempty"` // LoRa data rate - SF{spreadingfactor}BW{bandwidth} DataRate string `protobuf:"bytes,12,opt,name=data_rate,json=dataRate,proto3" json:"data_rate,omitempty"` // FSK bit rate in bit/s BitRate uint32 `protobuf:"varint,13,opt,name=bit_rate,json=bitRate,proto3" json:"bit_rate,omitempty"` // LoRa coding rate CodingRate string `protobuf:"bytes,14,opt,name=coding_rate,json=codingRate,proto3" json:"coding_rate,omitempty"` // Store the full 32 bit FCnt (deprecated; do not use) FCnt uint32 `protobuf:"varint,15,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"` FrequencyPlan FrequencyPlan `` /* 129-byte string literal not displayed */ }
func RandomMetadata ¶
func RandomMetadata(modulation ...Modulation) *Metadata
RandomMetadata returns randomly generated Metadata. Used for testing.
func (*Metadata) Descriptor ¶
func (*Metadata) GetBitRate ¶
func (*Metadata) GetCodingRate ¶
func (*Metadata) GetDataRate ¶
func (*Metadata) GetFrequencyPlan ¶
func (m *Metadata) GetFrequencyPlan() FrequencyPlan
func (*Metadata) GetLoRaWANDataRate ¶
GetLoRaWANDataRate returns the band.Datarate for the current Metadata
func (*Metadata) GetModulation ¶
func (m *Metadata) GetModulation() Modulation
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) VerboseEqual ¶
type MockDeviceManagerClient ¶
type MockDeviceManagerClient struct {
// contains filtered or unexported fields
}
Mock of DeviceManagerClient interface
func NewMockDeviceManagerClient ¶
func NewMockDeviceManagerClient(ctrl *gomock.Controller) *MockDeviceManagerClient
func (*MockDeviceManagerClient) DeleteDevice ¶
func (_m *MockDeviceManagerClient) DeleteDevice(ctx context.Context, in *DeviceIdentifier, opts ...grpc.CallOption) (*empty.Empty, error)
func (*MockDeviceManagerClient) EXPECT ¶
func (_m *MockDeviceManagerClient) EXPECT() *_MockDeviceManagerClientRecorder
func (*MockDeviceManagerClient) GetDevice ¶
func (_m *MockDeviceManagerClient) GetDevice(ctx context.Context, in *DeviceIdentifier, opts ...grpc.CallOption) (*Device, error)
type MockDeviceManagerServer ¶
type MockDeviceManagerServer struct {
// contains filtered or unexported fields
}
Mock of DeviceManagerServer interface
func NewMockDeviceManagerServer ¶
func NewMockDeviceManagerServer(ctrl *gomock.Controller) *MockDeviceManagerServer
func (*MockDeviceManagerServer) DeleteDevice ¶
func (_m *MockDeviceManagerServer) DeleteDevice(_param0 context.Context, _param1 *DeviceIdentifier) (*empty.Empty, error)
func (*MockDeviceManagerServer) EXPECT ¶
func (_m *MockDeviceManagerServer) EXPECT() *_MockDeviceManagerServerRecorder
func (*MockDeviceManagerServer) GetDevice ¶
func (_m *MockDeviceManagerServer) GetDevice(_param0 context.Context, _param1 *DeviceIdentifier) (*Device, error)
type Modulation ¶
type Modulation int32
const ( Modulation_LORA Modulation = 0 Modulation_FSK Modulation = 1 )
func (Modulation) EnumDescriptor ¶
func (Modulation) EnumDescriptor() ([]byte, []int)
func (Modulation) String ¶
func (x Modulation) String() string
type PrefixesRequest ¶
type PrefixesRequest struct { }
func (*PrefixesRequest) Descriptor ¶
func (*PrefixesRequest) Descriptor() ([]byte, []int)
func (*PrefixesRequest) Equal ¶
func (this *PrefixesRequest) Equal(that interface{}) bool
func (*PrefixesRequest) Marshal ¶
func (m *PrefixesRequest) Marshal() (dAtA []byte, err error)
func (*PrefixesRequest) ProtoMessage ¶
func (*PrefixesRequest) ProtoMessage()
func (*PrefixesRequest) Reset ¶
func (m *PrefixesRequest) Reset()
func (*PrefixesRequest) Size ¶
func (m *PrefixesRequest) Size() (n int)
func (*PrefixesRequest) String ¶
func (this *PrefixesRequest) String() string
func (*PrefixesRequest) Unmarshal ¶
func (m *PrefixesRequest) Unmarshal(dAtA []byte) error
func (*PrefixesRequest) VerboseEqual ¶
func (this *PrefixesRequest) VerboseEqual(that interface{}) error
type PrefixesResponse ¶
type PrefixesResponse struct { // The prefixes that are in use or available Prefixes []*PrefixesResponse_PrefixMapping `protobuf:"bytes,1,rep,name=prefixes" json:"prefixes,omitempty"` }
func (*PrefixesResponse) Descriptor ¶
func (*PrefixesResponse) Descriptor() ([]byte, []int)
func (*PrefixesResponse) Equal ¶
func (this *PrefixesResponse) Equal(that interface{}) bool
func (*PrefixesResponse) GetPrefixes ¶
func (m *PrefixesResponse) GetPrefixes() []*PrefixesResponse_PrefixMapping
func (*PrefixesResponse) Marshal ¶
func (m *PrefixesResponse) Marshal() (dAtA []byte, err error)
func (*PrefixesResponse) ProtoMessage ¶
func (*PrefixesResponse) ProtoMessage()
func (*PrefixesResponse) Reset ¶
func (m *PrefixesResponse) Reset()
func (*PrefixesResponse) Size ¶
func (m *PrefixesResponse) Size() (n int)
func (*PrefixesResponse) String ¶
func (this *PrefixesResponse) String() string
func (*PrefixesResponse) Unmarshal ¶
func (m *PrefixesResponse) Unmarshal(dAtA []byte) error
func (*PrefixesResponse) VerboseEqual ¶
func (this *PrefixesResponse) VerboseEqual(that interface{}) error
type PrefixesResponse_PrefixMapping ¶
type PrefixesResponse_PrefixMapping struct { // The prefix that can be used Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` // Usage constraints of this prefix (see activation_constraints in device.proto) Usage []string `protobuf:"bytes,2,rep,name=usage" json:"usage,omitempty"` }
func (*PrefixesResponse_PrefixMapping) Descriptor ¶
func (*PrefixesResponse_PrefixMapping) Descriptor() ([]byte, []int)
func (*PrefixesResponse_PrefixMapping) Equal ¶
func (this *PrefixesResponse_PrefixMapping) Equal(that interface{}) bool
func (*PrefixesResponse_PrefixMapping) GetPrefix ¶
func (m *PrefixesResponse_PrefixMapping) GetPrefix() string
func (*PrefixesResponse_PrefixMapping) GetUsage ¶
func (m *PrefixesResponse_PrefixMapping) GetUsage() []string
func (*PrefixesResponse_PrefixMapping) Marshal ¶
func (m *PrefixesResponse_PrefixMapping) Marshal() (dAtA []byte, err error)
func (*PrefixesResponse_PrefixMapping) MarshalTo ¶
func (m *PrefixesResponse_PrefixMapping) MarshalTo(dAtA []byte) (int, error)
func (*PrefixesResponse_PrefixMapping) ProtoMessage ¶
func (*PrefixesResponse_PrefixMapping) ProtoMessage()
func (*PrefixesResponse_PrefixMapping) Reset ¶
func (m *PrefixesResponse_PrefixMapping) Reset()
func (*PrefixesResponse_PrefixMapping) Size ¶
func (m *PrefixesResponse_PrefixMapping) Size() (n int)
func (*PrefixesResponse_PrefixMapping) String ¶
func (this *PrefixesResponse_PrefixMapping) String() string
func (*PrefixesResponse_PrefixMapping) Unmarshal ¶
func (m *PrefixesResponse_PrefixMapping) Unmarshal(dAtA []byte) error
func (*PrefixesResponse_PrefixMapping) VerboseEqual ¶
func (this *PrefixesResponse_PrefixMapping) VerboseEqual(that interface{}) error
type TxConfiguration ¶
type TxConfiguration struct { Modulation Modulation `protobuf:"varint,11,opt,name=modulation,proto3,enum=lorawan.Modulation" json:"modulation,omitempty"` // LoRa data rate - SF{spreadingfactor}BW{bandwidth} DataRate string `protobuf:"bytes,12,opt,name=data_rate,json=dataRate,proto3" json:"data_rate,omitempty"` // FSK bit rate in bit/s BitRate uint32 `protobuf:"varint,13,opt,name=bit_rate,json=bitRate,proto3" json:"bit_rate,omitempty"` // LoRa coding rate CodingRate string `protobuf:"bytes,14,opt,name=coding_rate,json=codingRate,proto3" json:"coding_rate,omitempty"` // Store the full 32 bit FCnt (deprecated; do not use) FCnt uint32 `protobuf:"varint,15,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"` }
func RandomTxConfiguration ¶
func RandomTxConfiguration(modulation ...Modulation) *TxConfiguration
RandomTxConfiguration returns randomly generated TxConfiguration. Used for testing.
func (*TxConfiguration) Descriptor ¶
func (*TxConfiguration) Descriptor() ([]byte, []int)
func (*TxConfiguration) Equal ¶
func (this *TxConfiguration) Equal(that interface{}) bool
func (*TxConfiguration) GetBitRate ¶
func (m *TxConfiguration) GetBitRate() uint32
func (*TxConfiguration) GetCodingRate ¶
func (m *TxConfiguration) GetCodingRate() string
func (*TxConfiguration) GetDataRate ¶
func (m *TxConfiguration) GetDataRate() string
func (*TxConfiguration) GetFCnt ¶
func (m *TxConfiguration) GetFCnt() uint32
func (*TxConfiguration) GetModulation ¶
func (m *TxConfiguration) GetModulation() Modulation
func (*TxConfiguration) Marshal ¶
func (m *TxConfiguration) Marshal() (dAtA []byte, err error)
func (*TxConfiguration) ProtoMessage ¶
func (*TxConfiguration) ProtoMessage()
func (*TxConfiguration) Reset ¶
func (m *TxConfiguration) Reset()
func (*TxConfiguration) SetDataRate ¶
func (c *TxConfiguration) SetDataRate(dataRate band.DataRate) error
SetDataRate sets the dataRate for the current Metadata based from a band.Datarate
func (*TxConfiguration) Size ¶
func (m *TxConfiguration) Size() (n int)
func (*TxConfiguration) String ¶
func (this *TxConfiguration) String() string
func (*TxConfiguration) Unmarshal ¶
func (m *TxConfiguration) Unmarshal(dAtA []byte) error
func (*TxConfiguration) Validate ¶
func (m *TxConfiguration) Validate() error
Validate implements the api.Validator interface
func (*TxConfiguration) VerboseEqual ¶
func (this *TxConfiguration) VerboseEqual(that interface{}) error