lorawan

package
v0.0.0-...-228f33a Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 25 Imported by: 92

Documentation

Overview

Package lorawan is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDevice        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDevice          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDevice = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDeviceAddress        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDeviceAddress          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDeviceAddress = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthLorawan        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLorawan          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLorawan = fmt.Errorf("proto: unexpected end of group")
)
View Source
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",
	9:  "RU_864_870",
}
View Source
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,
	"RU_864_870": 9,
}
View Source
var MType_name = map[int32]string{
	0: "JOIN_REQUEST",
	1: "JOIN_ACCEPT",
	2: "UNCONFIRMED_UP",
	3: "UNCONFIRMED_DOWN",
	4: "CONFIRMED_UP",
	5: "CONFIRMED_DOWN",
}
View Source
var MType_value = map[string]int32{
	"JOIN_REQUEST":     0,
	"JOIN_ACCEPT":      1,
	"UNCONFIRMED_UP":   2,
	"UNCONFIRMED_DOWN": 3,
	"CONFIRMED_UP":     4,
	"CONFIRMED_DOWN":   5,
}
View Source
var Major_name = map[int32]string{
	0: "LORAWAN_R1",
}
View Source
var Major_value = map[string]int32{
	"LORAWAN_R1": 0,
}
View Source
var Modulation_name = map[int32]string{
	0: "LORA",
	1: "FSK",
}
View Source
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

func RandomPayload(mType ...MType) []byte

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   `` /* 130-byte string literal not displayed */
	DevEUI               github_com_TheThingsNetwork_ttn_core_types.DevEUI   `` /* 130-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,proto3" json:"cf_list,omitempty"`
	FrequencyPlan        FrequencyPlan                                       `` /* 129-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                            `json:"-"`
	XXX_sizecache        int32                                               `json:"-"`
}

func NewPopulatedActivationMetadata

func NewPopulatedActivationMetadata(r randyLorawan, easy bool) *ActivationMetadata

func (*ActivationMetadata) Descriptor

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

func (*ActivationMetadata) Equal

func (this *ActivationMetadata) Equal(that interface{}) bool

func (*ActivationMetadata) GetAppEUI

func (m *ActivationMetadata) GetAppEUI() (eui types.AppEUI)

func (*ActivationMetadata) GetCFList

func (m *ActivationMetadata) GetCFList() *CFList

func (*ActivationMetadata) GetDevAddr

func (m *ActivationMetadata) GetDevAddr() (addr types.DevAddr)

func (*ActivationMetadata) GetDevEUI

func (m *ActivationMetadata) GetDevEUI() (eui types.DevEUI)

func (*ActivationMetadata) GetFrequencyPlan

func (m *ActivationMetadata) GetFrequencyPlan() FrequencyPlan

func (*ActivationMetadata) GetNwkSKey

func (m *ActivationMetadata) GetNwkSKey() (eui types.NwkSKey)

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) MarshalToSizedBuffer

func (m *ActivationMetadata) MarshalToSizedBuffer(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) XXX_DiscardUnknown

func (m *ActivationMetadata) XXX_DiscardUnknown()

func (*ActivationMetadata) XXX_Marshal

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

func (*ActivationMetadata) XXX_Merge

func (m *ActivationMetadata) XXX_Merge(src proto.Message)

func (*ActivationMetadata) XXX_Size

func (m *ActivationMetadata) XXX_Size() int

func (*ActivationMetadata) XXX_Unmarshal

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

type CFList

type CFList struct {
	Freq                 []uint32 `protobuf:"varint,1,rep,packed,name=freq,proto3" json:"freq,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedCFList

func NewPopulatedCFList(r randyLorawan, easy bool) *CFList

func (*CFList) Descriptor

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

func (*CFList) Equal

func (this *CFList) Equal(that interface{}) bool

func (*CFList) GetFreq

func (m *CFList) GetFreq() []uint32

func (*CFList) Marshal

func (m *CFList) Marshal() (dAtA []byte, err error)

func (*CFList) MarshalTo

func (m *CFList) MarshalTo(dAtA []byte) (int, error)

func (*CFList) MarshalToSizedBuffer

func (m *CFList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CFList) ProtoMessage

func (*CFList) ProtoMessage()

func (*CFList) Reset

func (m *CFList) Reset()

func (*CFList) Size

func (m *CFList) Size() (n int)

func (*CFList) String

func (this *CFList) String() string

func (*CFList) Unmarshal

func (m *CFList) Unmarshal(dAtA []byte) error

func (*CFList) XXX_DiscardUnknown

func (m *CFList) XXX_DiscardUnknown()

func (*CFList) XXX_Marshal

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

func (*CFList) XXX_Merge

func (m *CFList) XXX_Merge(src proto.Message)

func (*CFList) XXX_Size

func (m *CFList) XXX_Size() int

func (*CFList) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedDLSettings

func NewPopulatedDLSettings(r randyLorawan, easy bool) *DLSettings

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) MarshalTo

func (m *DLSettings) MarshalTo(dAtA []byte) (int, error)

func (*DLSettings) MarshalToSizedBuffer

func (m *DLSettings) MarshalToSizedBuffer(dAtA []byte) (int, 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) XXX_DiscardUnknown

func (m *DLSettings) XXX_DiscardUnknown()

func (*DLSettings) XXX_Marshal

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

func (*DLSettings) XXX_Merge

func (m *DLSettings) XXX_Merge(src proto.Message)

func (*DLSettings) XXX_Size

func (m *DLSettings) XXX_Size() int

func (*DLSettings) XXX_Unmarshal

func (m *DLSettings) XXX_Unmarshal(b []byte) 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)
}

DevAddrManagerClient is the client API for DevAddrManager service.

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

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)
}

DevAddrManagerServer is the server API for DevAddrManager service.

type DevAddrRequest

type DevAddrRequest struct {
	// The usage constraints (see activation_constraints in device.proto)
	Usage                []string `protobuf:"bytes,1,rep,name=usage,proto3" json:"usage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedDevAddrRequest

func NewPopulatedDevAddrRequest(r randyDeviceAddress, easy bool) *DevAddrRequest

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) MarshalTo

func (m *DevAddrRequest) MarshalTo(dAtA []byte) (int, error)

func (*DevAddrRequest) MarshalToSizedBuffer

func (m *DevAddrRequest) MarshalToSizedBuffer(dAtA []byte) (int, 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) XXX_DiscardUnknown

func (m *DevAddrRequest) XXX_DiscardUnknown()

func (*DevAddrRequest) XXX_Marshal

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

func (*DevAddrRequest) XXX_Merge

func (m *DevAddrRequest) XXX_Merge(src proto.Message)

func (*DevAddrRequest) XXX_Size

func (m *DevAddrRequest) XXX_Size() int

func (*DevAddrRequest) XXX_Unmarshal

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

type DevAddrResponse

type DevAddrResponse struct {
	DevAddr              github_com_TheThingsNetwork_ttn_core_types.DevAddr `` /* 134-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                           `json:"-"`
	XXX_sizecache        int32                                              `json:"-"`
}

func NewPopulatedDevAddrResponse

func NewPopulatedDevAddrResponse(r randyDeviceAddress, easy bool) *DevAddrResponse

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) MarshalTo

func (m *DevAddrResponse) MarshalTo(dAtA []byte) (int, error)

func (*DevAddrResponse) MarshalToSizedBuffer

func (m *DevAddrResponse) MarshalToSizedBuffer(dAtA []byte) (int, 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) XXX_DiscardUnknown

func (m *DevAddrResponse) XXX_DiscardUnknown()

func (*DevAddrResponse) XXX_Marshal

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

func (*DevAddrResponse) XXX_Merge

func (m *DevAddrResponse) XXX_Merge(src proto.Message)

func (*DevAddrResponse) XXX_Size

func (m *DevAddrResponse) XXX_Size() int

func (*DevAddrResponse) XXX_Unmarshal

func (m *DevAddrResponse) XXX_Unmarshal(b []byte) 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 `` /* 130-byte string literal not displayed */
	// The DevEUI is a unique, 8 byte identifier for the device.
	DevEUI github_com_TheThingsNetwork_ttn_core_types.DevEUI `` /* 130-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"`
	// The DevNonces that have been used in joins. This field is read-only. Reset the nonces by changing the AppKey.
	UsedDevNonces []github_com_TheThingsNetwork_ttn_core_types.DevNonce `` /* 166-byte string literal not displayed */
	// The AppNonces that have been used in joins. This field is read-only. Reset the nonces by changing the AppKey.
	UsedAppNonces []github_com_TheThingsNetwork_ttn_core_types.AppNonce `` /* 166-byte string literal not displayed */
	// When the device was last seen (Unix nanoseconds)
	LastSeen             int64    `protobuf:"varint,21,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedDevice

func NewPopulatedDevice(r randyDevice, easy bool) *Device

func (*Device) Descriptor

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

func (*Device) Equal

func (this *Device) Equal(that interface{}) bool

func (*Device) GetActivationConstraints

func (m *Device) GetActivationConstraints() string

func (*Device) GetAppEUI

func (m *Device) GetAppEUI() (eui types.AppEUI)

func (*Device) GetAppID

func (m *Device) GetAppID() string

func (*Device) GetAppKey

func (m *Device) GetAppKey() (key types.AppKey)

func (*Device) GetAppSKey

func (m *Device) GetAppSKey() (eui types.AppSKey)

func (*Device) GetDevAddr

func (m *Device) GetDevAddr() (addr types.DevAddr)

func (*Device) GetDevEUI

func (m *Device) GetDevEUI() (eui types.DevEUI)

func (*Device) GetDevID

func (m *Device) GetDevID() string

func (*Device) GetDisableFCntCheck

func (m *Device) GetDisableFCntCheck() bool

func (*Device) GetFCntDown

func (m *Device) GetFCntDown() uint32

func (*Device) GetFCntUp

func (m *Device) GetFCntUp() uint32

func (*Device) GetLastSeen

func (m *Device) GetLastSeen() int64

func (*Device) GetNwkSKey

func (m *Device) GetNwkSKey() (eui types.NwkSKey)

func (*Device) GetUses32BitFCnt

func (m *Device) GetUses32BitFCnt() bool

func (*Device) Marshal

func (m *Device) Marshal() (dAtA []byte, err error)

func (*Device) MarshalTo

func (m *Device) MarshalTo(dAtA []byte) (int, error)

func (*Device) MarshalToSizedBuffer

func (m *Device) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) Reset

func (m *Device) Reset()

func (*Device) Size

func (m *Device) Size() (n int)

func (*Device) String

func (this *Device) String() string

func (*Device) Unmarshal

func (m *Device) Unmarshal(dAtA []byte) error

func (*Device) Validate

func (m *Device) Validate() error

Validate implements the api.Validator interface

func (*Device) XXX_DiscardUnknown

func (m *Device) XXX_DiscardUnknown()

func (*Device) XXX_Marshal

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

func (*Device) XXX_Merge

func (m *Device) XXX_Merge(src proto.Message)

func (*Device) XXX_Size

func (m *Device) XXX_Size() int

func (*Device) XXX_Unmarshal

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

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 `` /* 130-byte string literal not displayed */
	// The DevEUI is a unique, 8 byte identifier for the device.
	DevEUI               github_com_TheThingsNetwork_ttn_core_types.DevEUI `` /* 130-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                          `json:"-"`
	XXX_sizecache        int32                                             `json:"-"`
}

func NewPopulatedDeviceIdentifier

func NewPopulatedDeviceIdentifier(r randyDevice, easy bool) *DeviceIdentifier

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() (eui types.AppEUI)

func (*DeviceIdentifier) GetDevEUI

func (m *DeviceIdentifier) GetDevEUI() (eui types.DevEUI)

func (*DeviceIdentifier) Marshal

func (m *DeviceIdentifier) Marshal() (dAtA []byte, err error)

func (*DeviceIdentifier) MarshalTo

func (m *DeviceIdentifier) MarshalTo(dAtA []byte) (int, error)

func (*DeviceIdentifier) MarshalToSizedBuffer

func (m *DeviceIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, 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) XXX_DiscardUnknown

func (m *DeviceIdentifier) XXX_DiscardUnknown()

func (*DeviceIdentifier) XXX_Marshal

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

func (*DeviceIdentifier) XXX_Merge

func (m *DeviceIdentifier) XXX_Merge(src proto.Message)

func (*DeviceIdentifier) XXX_Size

func (m *DeviceIdentifier) XXX_Size() int

func (*DeviceIdentifier) XXX_Unmarshal

func (m *DeviceIdentifier) XXX_Unmarshal(b []byte) 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) (*types.Empty, error)
	DeleteDevice(ctx context.Context, in *DeviceIdentifier, opts ...grpc.CallOption) (*types.Empty, error)
}

DeviceManagerClient is the client API for DeviceManager service.

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

func NewDeviceManagerClient

func NewDeviceManagerClient(cc *grpc.ClientConn) DeviceManagerClient

type DeviceManagerServer

type DeviceManagerServer interface {
	GetDevice(context.Context, *DeviceIdentifier) (*Device, error)
	SetDevice(context.Context, *Device) (*types.Empty, error)
	DeleteDevice(context.Context, *DeviceIdentifier) (*types.Empty, error)
}

DeviceManagerServer is the server API for DeviceManager service.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedFCtrl

func NewPopulatedFCtrl(r randyLorawan, easy bool) *FCtrl

func (*FCtrl) Descriptor

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

func (*FCtrl) Equal

func (this *FCtrl) Equal(that interface{}) bool

func (*FCtrl) GetADR

func (m *FCtrl) GetADR() bool

func (*FCtrl) GetADRAckReq

func (m *FCtrl) GetADRAckReq() bool

func (*FCtrl) GetAck

func (m *FCtrl) GetAck() bool

func (*FCtrl) GetFPending

func (m *FCtrl) GetFPending() bool

func (*FCtrl) Marshal

func (m *FCtrl) Marshal() (dAtA []byte, err error)

func (*FCtrl) MarshalTo

func (m *FCtrl) MarshalTo(dAtA []byte) (int, error)

func (*FCtrl) MarshalToSizedBuffer

func (m *FCtrl) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FCtrl) ProtoMessage

func (*FCtrl) ProtoMessage()

func (*FCtrl) Reset

func (m *FCtrl) Reset()

func (*FCtrl) Size

func (m *FCtrl) Size() (n int)

func (*FCtrl) String

func (this *FCtrl) String() string

func (*FCtrl) Unmarshal

func (m *FCtrl) Unmarshal(dAtA []byte) error

func (*FCtrl) XXX_DiscardUnknown

func (m *FCtrl) XXX_DiscardUnknown()

func (*FCtrl) XXX_Marshal

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

func (*FCtrl) XXX_Merge

func (m *FCtrl) XXX_Merge(src proto.Message)

func (*FCtrl) XXX_Size

func (m *FCtrl) XXX_Size() int

func (*FCtrl) XXX_Unmarshal

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

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,proto3,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,proto3" json:"f_opts"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func NewPopulatedFHDR

func NewPopulatedFHDR(r randyLorawan, easy bool) *FHDR

func (*FHDR) Descriptor

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

func (*FHDR) Equal

func (this *FHDR) Equal(that interface{}) bool

func (*FHDR) GetFCnt

func (m *FHDR) GetFCnt() uint32

func (*FHDR) GetFOpts

func (m *FHDR) GetFOpts() []MACCommand

func (*FHDR) Marshal

func (m *FHDR) Marshal() (dAtA []byte, err error)

func (*FHDR) MarshalTo

func (m *FHDR) MarshalTo(dAtA []byte) (int, error)

func (*FHDR) MarshalToSizedBuffer

func (m *FHDR) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FHDR) ProtoMessage

func (*FHDR) ProtoMessage()

func (*FHDR) Reset

func (m *FHDR) Reset()

func (*FHDR) Size

func (m *FHDR) Size() (n int)

func (*FHDR) String

func (this *FHDR) String() string

func (*FHDR) Unmarshal

func (m *FHDR) Unmarshal(dAtA []byte) error

func (*FHDR) XXX_DiscardUnknown

func (m *FHDR) XXX_DiscardUnknown()

func (*FHDR) XXX_Marshal

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

func (*FHDR) XXX_Merge

func (m *FHDR) XXX_Merge(src proto.Message)

func (*FHDR) XXX_Size

func (m *FHDR) XXX_Size() int

func (*FHDR) XXX_Unmarshal

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

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
	FrequencyPlan_RU_864_870 FrequencyPlan = 9
)

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,proto3,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,proto3" json:"cf_list,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func JoinAcceptPayloadFromPayload

func JoinAcceptPayloadFromPayload(payload lorawan.Payload) (accept JoinAcceptPayload)

JoinAcceptPayloadFromPayload creates a new JoinAcceptPayload from a lorawan.Payload

func NewPopulatedJoinAcceptPayload

func NewPopulatedJoinAcceptPayload(r randyLorawan, easy bool) *JoinAcceptPayload

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) MarshalToSizedBuffer

func (m *JoinAcceptPayload) MarshalToSizedBuffer(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) XXX_DiscardUnknown

func (m *JoinAcceptPayload) XXX_DiscardUnknown()

func (*JoinAcceptPayload) XXX_Marshal

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

func (*JoinAcceptPayload) XXX_Merge

func (m *JoinAcceptPayload) XXX_Merge(src proto.Message)

func (*JoinAcceptPayload) XXX_Size

func (m *JoinAcceptPayload) XXX_Size() int

func (*JoinAcceptPayload) XXX_Unmarshal

func (m *JoinAcceptPayload) XXX_Unmarshal(b []byte) 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 */
	XXX_NoUnkeyedLiteral struct{}                                            `json:"-"`
	XXX_sizecache        int32                                               `json:"-"`
}

func JoinRequestPayloadFromPayload

func JoinRequestPayloadFromPayload(payload lorawan.Payload) (request JoinRequestPayload)

JoinRequestPayloadFromPayload creates a new JoinRequestPayload from a lorawan.Payload

func NewPopulatedJoinRequestPayload

func NewPopulatedJoinRequestPayload(r randyLorawan, easy bool) *JoinRequestPayload

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) MarshalToSizedBuffer

func (m *JoinRequestPayload) MarshalToSizedBuffer(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) XXX_DiscardUnknown

func (m *JoinRequestPayload) XXX_DiscardUnknown()

func (*JoinRequestPayload) XXX_Marshal

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

func (*JoinRequestPayload) XXX_Merge

func (m *JoinRequestPayload) XXX_Merge(src proto.Message)

func (*JoinRequestPayload) XXX_Size

func (m *JoinRequestPayload) XXX_Size() int

func (*JoinRequestPayload) XXX_Unmarshal

func (m *JoinRequestPayload) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func MACCommandFromMACCommand

func MACCommandFromMACCommand(cmd lorawan.MACCommand) (m MACCommand)

MACCommandFromMACCommand creates a new MACCommand from a lorawan.MACCommand

func NewPopulatedMACCommand

func NewPopulatedMACCommand(r randyLorawan, easy bool) *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) MarshalTo

func (m *MACCommand) MarshalTo(dAtA []byte) (int, error)

func (*MACCommand) MarshalToSizedBuffer

func (m *MACCommand) MarshalToSizedBuffer(dAtA []byte) (int, 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) XXX_DiscardUnknown

func (m *MACCommand) XXX_DiscardUnknown()

func (*MACCommand) XXX_Marshal

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

func (*MACCommand) XXX_Merge

func (m *MACCommand) XXX_Merge(src proto.Message)

func (*MACCommand) XXX_Size

func (m *MACCommand) XXX_Size() int

func (*MACCommand) XXX_Unmarshal

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

type MACPayload

type MACPayload struct {
	FHDR                 `protobuf:"bytes,1,opt,name=f_hdr,json=fHdr,proto3,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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func MACPayloadFromPayload

func MACPayloadFromPayload(payload lorawan.Payload) (mac MACPayload)

MACPayloadFromPayload creates a new MACPayload from a lorawan.Payload

func NewPopulatedMACPayload

func NewPopulatedMACPayload(r randyLorawan, easy bool) *MACPayload

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) MarshalTo

func (m *MACPayload) MarshalTo(dAtA []byte) (int, error)

func (*MACPayload) MarshalToSizedBuffer

func (m *MACPayload) MarshalToSizedBuffer(dAtA []byte) (int, 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) XXX_DiscardUnknown

func (m *MACPayload) XXX_DiscardUnknown()

func (*MACPayload) XXX_Marshal

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

func (*MACPayload) XXX_Merge

func (m *MACPayload) XXX_Merge(src proto.Message)

func (*MACPayload) XXX_Size

func (m *MACPayload) XXX_Size() int

func (*MACPayload) XXX_Unmarshal

func (m *MACPayload) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedMHDR

func NewPopulatedMHDR(r randyLorawan, easy bool) *MHDR

func (*MHDR) Descriptor

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

func (*MHDR) Equal

func (this *MHDR) Equal(that interface{}) bool

func (*MHDR) GetMType

func (m *MHDR) GetMType() MType

func (*MHDR) GetMajor

func (m *MHDR) GetMajor() Major

func (*MHDR) Marshal

func (m *MHDR) Marshal() (dAtA []byte, err error)

func (*MHDR) MarshalTo

func (m *MHDR) MarshalTo(dAtA []byte) (int, error)

func (*MHDR) MarshalToSizedBuffer

func (m *MHDR) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MHDR) ProtoMessage

func (*MHDR) ProtoMessage()

func (*MHDR) Reset

func (m *MHDR) Reset()

func (*MHDR) Size

func (m *MHDR) Size() (n int)

func (*MHDR) String

func (this *MHDR) String() string

func (*MHDR) Unmarshal

func (m *MHDR) Unmarshal(dAtA []byte) error

func (*MHDR) XXX_DiscardUnknown

func (m *MHDR) XXX_DiscardUnknown()

func (*MHDR) XXX_Marshal

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

func (*MHDR) XXX_Merge

func (m *MHDR) XXX_Merge(src proto.Message)

func (*MHDR) XXX_Size

func (m *MHDR) XXX_Size() int

func (*MHDR) XXX_Unmarshal

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

type MType

type MType int32
const (
	MType_JOIN_REQUEST     MType = 0
	MType_JOIN_ACCEPT      MType = 1
	MType_UNCONFIRMED_UP   MType = 2
	MType_UNCONFIRMED_DOWN MType = 3
	MType_CONFIRMED_UP     MType = 4
	MType_CONFIRMED_DOWN   MType = 5
)

func (MType) EnumDescriptor

func (MType) EnumDescriptor() ([]byte, []int)

func (MType) String

func (x MType) String() string

type Major

type Major int32
const (
	Major_LORAWAN_R1 Major = 0
)

func (Major) EnumDescriptor

func (Major) EnumDescriptor() ([]byte, []int)

func (Major) String

func (x Major) String() string

type Message

type Message struct {
	MHDR `protobuf:"bytes,1,opt,name=m_hdr,json=mHdr,proto3,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"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func MessageFromPHYPayload

func MessageFromPHYPayload(phy lorawan.PHYPayload) Message

MessageFromPHYPayload converts a lorawan.PHYPayload to a Message

func MessageFromPHYPayloadBytes

func MessageFromPHYPayloadBytes(payload []byte) (msg Message, err error)

MessageFromPHYPayloadBytes converts lorawan.PHYPayload bytes to a Message

func NewPopulatedMessage

func NewPopulatedMessage(r randyLorawan, easy bool) *Message

func (*Message) DecryptFRMPayload

func (m *Message) DecryptFRMPayload(appSKey types.AppSKey) error

DecryptFRMPayload decrypts the FRMPayload

func (*Message) Descriptor

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

func (*Message) EncryptFRMPayload

func (m *Message) EncryptFRMPayload(appSKey types.AppSKey) error

EncryptFRMPayload encrypts the FRMPayload

func (*Message) Equal

func (this *Message) Equal(that interface{}) bool

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) GetMIC

func (m *Message) GetMIC() []byte

func (*Message) GetPayload

func (m *Message) GetPayload() isMessage_Payload
func (m *Message) InitDownlink() *MACPayload

InitDownlink initializes an unconfirmed downlink message

func (m *Message) InitUplink() *MACPayload

InitUplink initializes an unconfirmed uplink message

func (*Message) IsConfirmed

func (m *Message) IsConfirmed() bool

IsConfirmed returns wheter the message is a confirmed message

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) PHYPayload

func (m *Message) PHYPayload() (phy lorawan.PHYPayload)

PHYPayload converts the Message to a lorawan.PHYPayload

func (*Message) PHYPayloadBytes

func (m *Message) PHYPayloadBytes() []byte

PHYPayloadBytes converts the Message to a lorawan.PHYPayload, marshals it and returns the bytes

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) SetMIC

func (m *Message) SetMIC(nwkSKey types.NwkSKey) error

SetMIC sets the MIC of the message

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (this *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) Validate

func (m *Message) Validate() error

Validate implements the api.Validator interface

func (*Message) ValidateMIC

func (m *Message) ValidateMIC(nwkSKey types.NwkSKey) error

ValidateMIC validates the MIC of the message

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_OneofWrappers

func (*Message) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type Message_JoinAcceptPayload

type Message_JoinAcceptPayload struct {
	JoinAcceptPayload *JoinAcceptPayload `protobuf:"bytes,5,opt,name=join_accept_payload,json=joinAcceptPayload,proto3,oneof" json:"join_accept_payload,omitempty"`
}

func NewPopulatedMessage_JoinAcceptPayload

func NewPopulatedMessage_JoinAcceptPayload(r randyLorawan, easy bool) *Message_JoinAcceptPayload

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) MarshalToSizedBuffer

func (m *Message_JoinAcceptPayload) MarshalToSizedBuffer(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

type Message_JoinRequestPayload

type Message_JoinRequestPayload struct {
	JoinRequestPayload *JoinRequestPayload `protobuf:"bytes,4,opt,name=join_request_payload,json=joinRequestPayload,proto3,oneof" json:"join_request_payload,omitempty"`
}

func NewPopulatedMessage_JoinRequestPayload

func NewPopulatedMessage_JoinRequestPayload(r randyLorawan, easy bool) *Message_JoinRequestPayload

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) MarshalToSizedBuffer

func (m *Message_JoinRequestPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_JoinRequestPayload) 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

type Message_MACPayload

type Message_MACPayload struct {
	MACPayload *MACPayload `protobuf:"bytes,3,opt,name=mac_payload,json=macPayload,proto3,oneof" json:"mac_payload,omitempty"`
}

func NewPopulatedMessage_MACPayload

func NewPopulatedMessage_MACPayload(r randyLorawan, easy bool) *Message_MACPayload

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) MarshalToSizedBuffer

func (m *Message_MACPayload) MarshalToSizedBuffer(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

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 */
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func NewPopulatedMetadata

func NewPopulatedMetadata(r randyLorawan, easy bool) *Metadata

func RandomMetadata

func RandomMetadata(modulation ...Modulation) *Metadata

RandomMetadata returns randomly generated Metadata. Used for testing.

func (*Metadata) Descriptor

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

func (*Metadata) Equal

func (this *Metadata) Equal(that interface{}) bool

func (*Metadata) GetBitRate

func (m *Metadata) GetBitRate() uint32

func (*Metadata) GetCodingRate

func (m *Metadata) GetCodingRate() string

func (*Metadata) GetDataRate

func (m *Metadata) GetDataRate() string

func (*Metadata) GetFCnt

func (m *Metadata) GetFCnt() uint32

func (*Metadata) GetFrequencyPlan

func (m *Metadata) GetFrequencyPlan() FrequencyPlan

func (*Metadata) GetLoRaWANDataRate

func (m *Metadata) GetLoRaWANDataRate() (dataRate band.DataRate, err error)

GetLoRaWANDataRate returns the band.Datarate for the current Metadata

func (*Metadata) GetModulation

func (m *Metadata) GetModulation() Modulation

func (*Metadata) Marshal

func (m *Metadata) Marshal() (dAtA []byte, err error)

func (*Metadata) MarshalTo

func (m *Metadata) MarshalTo(dAtA []byte) (int, error)

func (*Metadata) MarshalToSizedBuffer

func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) Size

func (m *Metadata) Size() (n int)

func (*Metadata) String

func (this *Metadata) String() string

func (*Metadata) Unmarshal

func (m *Metadata) Unmarshal(dAtA []byte) error

func (*Metadata) Validate

func (m *Metadata) Validate() error

Validate implements the api.Validator interface

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

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

func (*Metadata) XXX_Merge

func (m *Metadata) XXX_Merge(src proto.Message)

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

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

type MockDeviceManagerClient

type MockDeviceManagerClient struct {
	// contains filtered or unexported fields
}

MockDeviceManagerClient is a mock of DeviceManagerClient interface

func NewMockDeviceManagerClient

func NewMockDeviceManagerClient(ctrl *gomock.Controller) *MockDeviceManagerClient

NewMockDeviceManagerClient creates a new mock instance

func (*MockDeviceManagerClient) DeleteDevice

func (m *MockDeviceManagerClient) DeleteDevice(ctx context.Context, in *DeviceIdentifier, opts ...grpc.CallOption) (*types.Empty, error)

DeleteDevice mocks base method

func (*MockDeviceManagerClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDeviceManagerClient) GetDevice

func (m *MockDeviceManagerClient) GetDevice(ctx context.Context, in *DeviceIdentifier, opts ...grpc.CallOption) (*Device, error)

GetDevice mocks base method

func (*MockDeviceManagerClient) SetDevice

func (m *MockDeviceManagerClient) SetDevice(ctx context.Context, in *Device, opts ...grpc.CallOption) (*types.Empty, error)

SetDevice mocks base method

type MockDeviceManagerClientMockRecorder

type MockDeviceManagerClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockDeviceManagerClientMockRecorder is the mock recorder for MockDeviceManagerClient

func (*MockDeviceManagerClientMockRecorder) DeleteDevice

func (mr *MockDeviceManagerClientMockRecorder) DeleteDevice(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteDevice indicates an expected call of DeleteDevice

func (*MockDeviceManagerClientMockRecorder) GetDevice

func (mr *MockDeviceManagerClientMockRecorder) GetDevice(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetDevice indicates an expected call of GetDevice

func (*MockDeviceManagerClientMockRecorder) SetDevice

func (mr *MockDeviceManagerClientMockRecorder) SetDevice(ctx, in interface{}, opts ...interface{}) *gomock.Call

SetDevice indicates an expected call of SetDevice

type MockDeviceManagerServer

type MockDeviceManagerServer struct {
	// contains filtered or unexported fields
}

MockDeviceManagerServer is a mock of DeviceManagerServer interface

func NewMockDeviceManagerServer

func NewMockDeviceManagerServer(ctrl *gomock.Controller) *MockDeviceManagerServer

NewMockDeviceManagerServer creates a new mock instance

func (*MockDeviceManagerServer) DeleteDevice

func (m *MockDeviceManagerServer) DeleteDevice(arg0 context.Context, arg1 *DeviceIdentifier) (*types.Empty, error)

DeleteDevice mocks base method

func (*MockDeviceManagerServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDeviceManagerServer) GetDevice

func (m *MockDeviceManagerServer) GetDevice(arg0 context.Context, arg1 *DeviceIdentifier) (*Device, error)

GetDevice mocks base method

func (*MockDeviceManagerServer) SetDevice

func (m *MockDeviceManagerServer) SetDevice(arg0 context.Context, arg1 *Device) (*types.Empty, error)

SetDevice mocks base method

type MockDeviceManagerServerMockRecorder

type MockDeviceManagerServerMockRecorder struct {
	// contains filtered or unexported fields
}

MockDeviceManagerServerMockRecorder is the mock recorder for MockDeviceManagerServer

func (*MockDeviceManagerServerMockRecorder) DeleteDevice

func (mr *MockDeviceManagerServerMockRecorder) DeleteDevice(arg0, arg1 interface{}) *gomock.Call

DeleteDevice indicates an expected call of DeleteDevice

func (*MockDeviceManagerServerMockRecorder) GetDevice

func (mr *MockDeviceManagerServerMockRecorder) GetDevice(arg0, arg1 interface{}) *gomock.Call

GetDevice indicates an expected call of GetDevice

func (*MockDeviceManagerServerMockRecorder) SetDevice

func (mr *MockDeviceManagerServerMockRecorder) SetDevice(arg0, arg1 interface{}) *gomock.Call

SetDevice indicates an expected call of SetDevice

type MockrandyDevice

type MockrandyDevice struct {
	// contains filtered or unexported fields
}

MockrandyDevice is a mock of randyDevice interface

func NewMockrandyDevice

func NewMockrandyDevice(ctrl *gomock.Controller) *MockrandyDevice

NewMockrandyDevice creates a new mock instance

func (*MockrandyDevice) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockrandyDevice) Float32

func (m *MockrandyDevice) Float32() float32

Float32 mocks base method

func (*MockrandyDevice) Float64

func (m *MockrandyDevice) Float64() float64

Float64 mocks base method

func (*MockrandyDevice) Int31

func (m *MockrandyDevice) Int31() int32

Int31 mocks base method

func (*MockrandyDevice) Int63

func (m *MockrandyDevice) Int63() int64

Int63 mocks base method

func (*MockrandyDevice) Intn

func (m *MockrandyDevice) Intn(n int) int

Intn mocks base method

func (*MockrandyDevice) Uint32

func (m *MockrandyDevice) Uint32() uint32

Uint32 mocks base method

type MockrandyDeviceMockRecorder

type MockrandyDeviceMockRecorder struct {
	// contains filtered or unexported fields
}

MockrandyDeviceMockRecorder is the mock recorder for MockrandyDevice

func (*MockrandyDeviceMockRecorder) Float32

func (mr *MockrandyDeviceMockRecorder) Float32() *gomock.Call

Float32 indicates an expected call of Float32

func (*MockrandyDeviceMockRecorder) Float64

func (mr *MockrandyDeviceMockRecorder) Float64() *gomock.Call

Float64 indicates an expected call of Float64

func (*MockrandyDeviceMockRecorder) Int31

Int31 indicates an expected call of Int31

func (*MockrandyDeviceMockRecorder) Int63

Int63 indicates an expected call of Int63

func (*MockrandyDeviceMockRecorder) Intn

func (mr *MockrandyDeviceMockRecorder) Intn(n interface{}) *gomock.Call

Intn indicates an expected call of Intn

func (*MockrandyDeviceMockRecorder) Uint32

func (mr *MockrandyDeviceMockRecorder) Uint32() *gomock.Call

Uint32 indicates an expected call of Uint32

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 {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedPrefixesRequest

func NewPopulatedPrefixesRequest(r randyDeviceAddress, easy bool) *PrefixesRequest

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) MarshalTo

func (m *PrefixesRequest) MarshalTo(dAtA []byte) (int, error)

func (*PrefixesRequest) MarshalToSizedBuffer

func (m *PrefixesRequest) MarshalToSizedBuffer(dAtA []byte) (int, 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) XXX_DiscardUnknown

func (m *PrefixesRequest) XXX_DiscardUnknown()

func (*PrefixesRequest) XXX_Marshal

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

func (*PrefixesRequest) XXX_Merge

func (m *PrefixesRequest) XXX_Merge(src proto.Message)

func (*PrefixesRequest) XXX_Size

func (m *PrefixesRequest) XXX_Size() int

func (*PrefixesRequest) XXX_Unmarshal

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

type PrefixesResponse

type PrefixesResponse struct {
	// The prefixes that are in use or available
	Prefixes             []*PrefixesResponse_PrefixMapping `protobuf:"bytes,1,rep,name=prefixes,proto3" json:"prefixes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

func NewPopulatedPrefixesResponse

func NewPopulatedPrefixesResponse(r randyDeviceAddress, easy bool) *PrefixesResponse

func (*PrefixesResponse) Descriptor

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

func (*PrefixesResponse) Equal

func (this *PrefixesResponse) Equal(that interface{}) bool

func (*PrefixesResponse) GetPrefixes

func (*PrefixesResponse) Marshal

func (m *PrefixesResponse) Marshal() (dAtA []byte, err error)

func (*PrefixesResponse) MarshalTo

func (m *PrefixesResponse) MarshalTo(dAtA []byte) (int, error)

func (*PrefixesResponse) MarshalToSizedBuffer

func (m *PrefixesResponse) MarshalToSizedBuffer(dAtA []byte) (int, 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) XXX_DiscardUnknown

func (m *PrefixesResponse) XXX_DiscardUnknown()

func (*PrefixesResponse) XXX_Marshal

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

func (*PrefixesResponse) XXX_Merge

func (m *PrefixesResponse) XXX_Merge(src proto.Message)

func (*PrefixesResponse) XXX_Size

func (m *PrefixesResponse) XXX_Size() int

func (*PrefixesResponse) XXX_Unmarshal

func (m *PrefixesResponse) XXX_Unmarshal(b []byte) 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,proto3" json:"usage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedPrefixesResponse_PrefixMapping

func NewPopulatedPrefixesResponse_PrefixMapping(r randyDeviceAddress, easy bool) *PrefixesResponse_PrefixMapping

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) MarshalToSizedBuffer

func (m *PrefixesResponse_PrefixMapping) MarshalToSizedBuffer(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) XXX_DiscardUnknown

func (m *PrefixesResponse_PrefixMapping) XXX_DiscardUnknown()

func (*PrefixesResponse_PrefixMapping) XXX_Marshal

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

func (*PrefixesResponse_PrefixMapping) XXX_Merge

func (m *PrefixesResponse_PrefixMapping) XXX_Merge(src proto.Message)

func (*PrefixesResponse_PrefixMapping) XXX_Size

func (m *PrefixesResponse_PrefixMapping) XXX_Size() int

func (*PrefixesResponse_PrefixMapping) XXX_Unmarshal

func (m *PrefixesResponse_PrefixMapping) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedTxConfiguration

func NewPopulatedTxConfiguration(r randyLorawan, easy bool) *TxConfiguration

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) MarshalTo

func (m *TxConfiguration) MarshalTo(dAtA []byte) (int, error)

func (*TxConfiguration) MarshalToSizedBuffer

func (m *TxConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, 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) XXX_DiscardUnknown

func (m *TxConfiguration) XXX_DiscardUnknown()

func (*TxConfiguration) XXX_Marshal

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

func (*TxConfiguration) XXX_Merge

func (m *TxConfiguration) XXX_Merge(src proto.Message)

func (*TxConfiguration) XXX_Size

func (m *TxConfiguration) XXX_Size() int

func (*TxConfiguration) XXX_Unmarshal

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

type UnimplementedDevAddrManagerServer

type UnimplementedDevAddrManagerServer struct {
}

UnimplementedDevAddrManagerServer can be embedded to have forward compatible implementations.

func (*UnimplementedDevAddrManagerServer) GetDevAddr

func (*UnimplementedDevAddrManagerServer) GetPrefixes

type UnimplementedDeviceManagerServer

type UnimplementedDeviceManagerServer struct {
}

UnimplementedDeviceManagerServer can be embedded to have forward compatible implementations.

func (*UnimplementedDeviceManagerServer) DeleteDevice

func (*UnimplementedDeviceManagerServer) GetDevice

func (*UnimplementedDeviceManagerServer) SetDevice

Jump to

Keyboard shortcuts

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