protocol

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: 12 Imported by: 37

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthProtocol        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProtocol          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProtocol = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ActivationMetadata

type ActivationMetadata struct {
	// Types that are valid to be assigned to Protocol:
	//	*ActivationMetadata_LoRaWAN
	Protocol             isActivationMetadata_Protocol `protobuf_oneof:"protocol"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

func NewPopulatedActivationMetadata

func NewPopulatedActivationMetadata(r randyProtocol, easy bool) *ActivationMetadata

func (*ActivationMetadata) Descriptor

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

func (*ActivationMetadata) Equal

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

func (*ActivationMetadata) GetLoRaWAN

func (*ActivationMetadata) GetProtocol

func (m *ActivationMetadata) GetProtocol() isActivationMetadata_Protocol

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_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*ActivationMetadata) XXX_Size

func (m *ActivationMetadata) XXX_Size() int

func (*ActivationMetadata) XXX_Unmarshal

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

type ActivationMetadata_LoRaWAN

type ActivationMetadata_LoRaWAN struct {
	LoRaWAN *lorawan.ActivationMetadata `protobuf:"bytes,1,opt,name=lorawan,proto3,oneof" json:"lorawan,omitempty"`
}

func NewPopulatedActivationMetadata_LoRaWAN

func NewPopulatedActivationMetadata_LoRaWAN(r randyProtocol, easy bool) *ActivationMetadata_LoRaWAN

func (*ActivationMetadata_LoRaWAN) Equal

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

func (*ActivationMetadata_LoRaWAN) MarshalTo

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

func (*ActivationMetadata_LoRaWAN) MarshalToSizedBuffer

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

func (*ActivationMetadata_LoRaWAN) Size

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

func (*ActivationMetadata_LoRaWAN) String

func (this *ActivationMetadata_LoRaWAN) String() string

func (*ActivationMetadata_LoRaWAN) Validate

func (m *ActivationMetadata_LoRaWAN) Validate() error

Validate implements the api.Validator interface

type Message

type Message struct {
	// Types that are valid to be assigned to Protocol:
	//	*Message_LoRaWAN
	Protocol             isMessage_Protocol `protobuf_oneof:"protocol"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func NewPopulatedMessage

func NewPopulatedMessage(r randyProtocol, easy bool) *Message

func (*Message) Descriptor

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

func (*Message) Equal

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

func (*Message) GetLoRaWAN

func (m *Message) GetLoRaWAN() *lorawan.Message

func (*Message) GetProtocol

func (m *Message) GetProtocol() isMessage_Protocol

func (*Message) InitLoRaWAN

func (m *Message) InitLoRaWAN() *lorawan.Message

InitLoRaWAN initializes a LoRaWAN 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) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

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

type Message_LoRaWAN struct {
	LoRaWAN *lorawan.Message `protobuf:"bytes,1,opt,name=lorawan,proto3,oneof" json:"lorawan,omitempty"`
}

func NewPopulatedMessage_LoRaWAN

func NewPopulatedMessage_LoRaWAN(r randyProtocol, easy bool) *Message_LoRaWAN

func (*Message_LoRaWAN) Equal

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

func (*Message_LoRaWAN) MarshalTo

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

func (*Message_LoRaWAN) MarshalToSizedBuffer

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

func (*Message_LoRaWAN) Size

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

func (*Message_LoRaWAN) String

func (this *Message_LoRaWAN) String() string

func (*Message_LoRaWAN) Validate

func (m *Message_LoRaWAN) Validate() error

Validate implements the api.Validator interface

type RxMetadata

type RxMetadata struct {
	// Types that are valid to be assigned to Protocol:
	//	*RxMetadata_LoRaWAN
	Protocol             isRxMetadata_Protocol `protobuf_oneof:"protocol"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func NewPopulatedRxMetadata

func NewPopulatedRxMetadata(r randyProtocol, easy bool) *RxMetadata

func RandomLoRaWANRxMetadata

func RandomLoRaWANRxMetadata(modulation ...lorawan.Modulation) *RxMetadata

RandomLoRaWANRxMetadata returns randomly generated LoRaWANRxMetadata. Used for testing.

func RandomRxMetadata

func RandomRxMetadata() *RxMetadata

RandomRxMetadata returns randomly generated RxMetadata. Used for testing.

func (*RxMetadata) Descriptor

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

func (*RxMetadata) Equal

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

func (*RxMetadata) GetLoRaWAN

func (m *RxMetadata) GetLoRaWAN() *lorawan.Metadata

func (*RxMetadata) GetProtocol

func (m *RxMetadata) GetProtocol() isRxMetadata_Protocol

func (*RxMetadata) Marshal

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

func (*RxMetadata) MarshalTo

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

func (*RxMetadata) MarshalToSizedBuffer

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

func (*RxMetadata) ProtoMessage

func (*RxMetadata) ProtoMessage()

func (*RxMetadata) Reset

func (m *RxMetadata) Reset()

func (*RxMetadata) Size

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

func (*RxMetadata) String

func (this *RxMetadata) String() string

func (*RxMetadata) Unmarshal

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

func (*RxMetadata) Validate

func (m *RxMetadata) Validate() error

Validate implements the api.Validator interface

func (*RxMetadata) XXX_DiscardUnknown

func (m *RxMetadata) XXX_DiscardUnknown()

func (*RxMetadata) XXX_Marshal

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

func (*RxMetadata) XXX_Merge

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

func (*RxMetadata) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*RxMetadata) XXX_Size

func (m *RxMetadata) XXX_Size() int

func (*RxMetadata) XXX_Unmarshal

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

type RxMetadata_LoRaWAN

type RxMetadata_LoRaWAN struct {
	LoRaWAN *lorawan.Metadata `protobuf:"bytes,1,opt,name=lorawan,proto3,oneof" json:"lorawan,omitempty"`
}

func NewPopulatedRxMetadata_LoRaWAN

func NewPopulatedRxMetadata_LoRaWAN(r randyProtocol, easy bool) *RxMetadata_LoRaWAN

func (*RxMetadata_LoRaWAN) Equal

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

func (*RxMetadata_LoRaWAN) MarshalTo

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

func (*RxMetadata_LoRaWAN) MarshalToSizedBuffer

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

func (*RxMetadata_LoRaWAN) Size

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

func (*RxMetadata_LoRaWAN) String

func (this *RxMetadata_LoRaWAN) String() string

func (*RxMetadata_LoRaWAN) Validate

func (m *RxMetadata_LoRaWAN) Validate() error

Validate implements the api.Validator interface

type TxConfiguration

type TxConfiguration struct {
	// Types that are valid to be assigned to Protocol:
	//	*TxConfiguration_LoRaWAN
	Protocol             isTxConfiguration_Protocol `protobuf_oneof:"protocol"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func NewPopulatedTxConfiguration

func NewPopulatedTxConfiguration(r randyProtocol, easy bool) *TxConfiguration

func RandomLoRaWANTxConfiguration

func RandomLoRaWANTxConfiguration(modulation ...lorawan.Modulation) *TxConfiguration

RandomLoRaWANTxConfiguration returns randomly generated LoRaWANTxConfiguration. Used for testing.

func RandomTxConfiguration

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

func (m *TxConfiguration) GetLoRaWAN() *lorawan.TxConfiguration

func (*TxConfiguration) GetProtocol

func (m *TxConfiguration) GetProtocol() isTxConfiguration_Protocol

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

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*TxConfiguration) XXX_Size

func (m *TxConfiguration) XXX_Size() int

func (*TxConfiguration) XXX_Unmarshal

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

type TxConfiguration_LoRaWAN

type TxConfiguration_LoRaWAN struct {
	LoRaWAN *lorawan.TxConfiguration `protobuf:"bytes,1,opt,name=lorawan,proto3,oneof" json:"lorawan,omitempty"`
}

func NewPopulatedTxConfiguration_LoRaWAN

func NewPopulatedTxConfiguration_LoRaWAN(r randyProtocol, easy bool) *TxConfiguration_LoRaWAN

func (*TxConfiguration_LoRaWAN) Equal

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

func (*TxConfiguration_LoRaWAN) MarshalTo

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

func (*TxConfiguration_LoRaWAN) MarshalToSizedBuffer

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

func (*TxConfiguration_LoRaWAN) Size

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

func (*TxConfiguration_LoRaWAN) String

func (this *TxConfiguration_LoRaWAN) String() string

func (*TxConfiguration_LoRaWAN) Validate

func (m *TxConfiguration_LoRaWAN) Validate() error

Validate implements the api.Validator interface

Directories

Path Synopsis
Package lorawan is a generated GoMock package.
Package lorawan is a generated GoMock package.

Jump to

Keyboard shortcuts

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