common

package
v4.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Modulation_name = map[int32]string{
		0: "LORA",
		1: "FSK",
		2: "LR_FHSS",
	}
	Modulation_value = map[string]int32{
		"LORA":    0,
		"FSK":     1,
		"LR_FHSS": 2,
	}
)

Enum value maps for Modulation.

View Source
var (
	Region_name = map[int32]string{
		0:  "EU868",
		2:  "US915",
		3:  "CN779",
		4:  "EU433",
		5:  "AU915",
		6:  "CN470",
		7:  "AS923",
		12: "AS923_2",
		13: "AS923_3",
		14: "AS923_4",
		8:  "KR920",
		9:  "IN865",
		10: "RU864",
		11: "ISM2400",
	}
	Region_value = map[string]int32{
		"EU868":   0,
		"US915":   2,
		"CN779":   3,
		"EU433":   4,
		"AU915":   5,
		"CN470":   6,
		"AS923":   7,
		"AS923_2": 12,
		"AS923_3": 13,
		"AS923_4": 14,
		"KR920":   8,
		"IN865":   9,
		"RU864":   10,
		"ISM2400": 11,
	}
)

Enum value maps for Region.

View Source
var (
	MType_name = map[int32]string{
		0: "JOIN_REQUEST",
		1: "JOIN_ACCEPT",
		2: "UNCONFIRMED_DATA_UP",
		3: "UNCONFIRMED_DATA_DOWN",
		4: "CONFIRMED_DATA_UP",
		5: "CONFIRMED_DATA_DOWN",
		6: "REJOIN_REQUEST",
		7: "PROPRIETARY",
	}
	MType_value = map[string]int32{
		"JOIN_REQUEST":          0,
		"JOIN_ACCEPT":           1,
		"UNCONFIRMED_DATA_UP":   2,
		"UNCONFIRMED_DATA_DOWN": 3,
		"CONFIRMED_DATA_UP":     4,
		"CONFIRMED_DATA_DOWN":   5,
		"REJOIN_REQUEST":        6,
		"PROPRIETARY":           7,
	}
)

Enum value maps for MType.

View Source
var (
	MacVersion_name = map[int32]string{
		0: "LORAWAN_1_0_0",
		1: "LORAWAN_1_0_1",
		2: "LORAWAN_1_0_2",
		3: "LORAWAN_1_0_3",
		4: "LORAWAN_1_0_4",
		5: "LORAWAN_1_1_0",
	}
	MacVersion_value = map[string]int32{
		"LORAWAN_1_0_0": 0,
		"LORAWAN_1_0_1": 1,
		"LORAWAN_1_0_2": 2,
		"LORAWAN_1_0_3": 3,
		"LORAWAN_1_0_4": 4,
		"LORAWAN_1_1_0": 5,
	}
)

Enum value maps for MacVersion.

View Source
var (
	RegParamsRevision_name = map[int32]string{
		0: "A",
		1: "B",
		2: "RP002_1_0_0",
		3: "RP002_1_0_1",
		4: "RP002_1_0_2",
		5: "RP002_1_0_3",
	}
	RegParamsRevision_value = map[string]int32{
		"A":           0,
		"B":           1,
		"RP002_1_0_0": 2,
		"RP002_1_0_1": 3,
		"RP002_1_0_2": 4,
		"RP002_1_0_3": 5,
	}
)

Enum value maps for RegParamsRevision.

View Source
var (
	LocationSource_name = map[int32]string{
		0: "UNKNOWN",
		1: "GPS",
		2: "CONFIG",
		3: "GEO_RESOLVER_TDOA",
		4: "GEO_RESOLVER_RSSI",
		5: "GEO_RESOLVER_GNSS",
		6: "GEO_RESOLVER_WIFI",
	}
	LocationSource_value = map[string]int32{
		"UNKNOWN":           0,
		"GPS":               1,
		"CONFIG":            2,
		"GEO_RESOLVER_TDOA": 3,
		"GEO_RESOLVER_RSSI": 4,
		"GEO_RESOLVER_GNSS": 5,
		"GEO_RESOLVER_WIFI": 6,
	}
)

Enum value maps for LocationSource.

View Source
var (
	Aggregation_name = map[int32]string{
		0: "HOUR",
		1: "DAY",
		2: "MONTH",
	}
	Aggregation_value = map[string]int32{
		"HOUR":  0,
		"DAY":   1,
		"MONTH": 2,
	}
)

Enum value maps for Aggregation.

View Source
var (
	MetricKind_name = map[int32]string{
		0: "COUNTER",
		1: "ABSOLUTE",
		2: "GAUGE",
	}
	MetricKind_value = map[string]int32{
		"COUNTER":  0,
		"ABSOLUTE": 1,
		"GAUGE":    2,
	}
)

Enum value maps for MetricKind.

View Source
var (
	DeviceClass_name = map[int32]string{
		0: "CLASS_A",
		1: "CLASS_B",
		2: "CLASS_C",
	}
	DeviceClass_value = map[string]int32{
		"CLASS_A": 0,
		"CLASS_B": 1,
		"CLASS_C": 2,
	}
)

Enum value maps for DeviceClass.

View Source
var File_common_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Aggregation

type Aggregation int32
const (
	// Hour.
	Aggregation_HOUR Aggregation = 0
	// Day.
	Aggregation_DAY Aggregation = 1
	// Month.
	Aggregation_MONTH Aggregation = 2
)

func (Aggregation) Descriptor

func (Aggregation) Enum

func (x Aggregation) Enum() *Aggregation

func (Aggregation) EnumDescriptor deprecated

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

Deprecated: Use Aggregation.Descriptor instead.

func (Aggregation) Number

func (x Aggregation) Number() protoreflect.EnumNumber

func (Aggregation) String

func (x Aggregation) String() string

func (Aggregation) Type

type DeviceClass added in v4.4.0

type DeviceClass int32
const (
	// Class-A.
	DeviceClass_CLASS_A DeviceClass = 0
	// Class-B.
	DeviceClass_CLASS_B DeviceClass = 1
	// Class-C.
	DeviceClass_CLASS_C DeviceClass = 2
)

func (DeviceClass) Descriptor added in v4.4.0

func (DeviceClass) Enum added in v4.4.0

func (x DeviceClass) Enum() *DeviceClass

func (DeviceClass) EnumDescriptor deprecated added in v4.4.0

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

Deprecated: Use DeviceClass.Descriptor instead.

func (DeviceClass) Number added in v4.4.0

func (x DeviceClass) Number() protoreflect.EnumNumber

func (DeviceClass) String added in v4.4.0

func (x DeviceClass) String() string

func (DeviceClass) Type added in v4.4.0

type JoinServerContext added in v4.7.0

type JoinServerContext struct {

	// Session-key ID.
	SessionKeyId string `protobuf:"bytes,1,opt,name=session_key_id,json=sessionKeyId,proto3" json:"session_key_id,omitempty"`
	// AppSKey envelope.
	AppSKey *KeyEnvelope `protobuf:"bytes,2,opt,name=app_s_key,json=appSKey,proto3" json:"app_s_key,omitempty"`
	// contains filtered or unexported fields
}

Join-Server context.

func (*JoinServerContext) Descriptor deprecated added in v4.7.0

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

Deprecated: Use JoinServerContext.ProtoReflect.Descriptor instead.

func (*JoinServerContext) GetAppSKey added in v4.7.0

func (x *JoinServerContext) GetAppSKey() *KeyEnvelope

func (*JoinServerContext) GetSessionKeyId added in v4.7.0

func (x *JoinServerContext) GetSessionKeyId() string

func (*JoinServerContext) ProtoMessage added in v4.7.0

func (*JoinServerContext) ProtoMessage()

func (*JoinServerContext) ProtoReflect added in v4.7.0

func (x *JoinServerContext) ProtoReflect() protoreflect.Message

func (*JoinServerContext) Reset added in v4.7.0

func (x *JoinServerContext) Reset()

func (*JoinServerContext) String added in v4.7.0

func (x *JoinServerContext) String() string

type KeyEnvelope

type KeyEnvelope struct {

	// KEK label.
	KekLabel string `protobuf:"bytes,1,opt,name=kek_label,json=kekLabel,proto3" json:"kek_label,omitempty"`
	// AES key (when the kek_label is set, this value must first be decrypted).
	AesKey []byte `protobuf:"bytes,2,opt,name=aes_key,json=aesKey,proto3" json:"aes_key,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyEnvelope) Descriptor deprecated

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

Deprecated: Use KeyEnvelope.ProtoReflect.Descriptor instead.

func (*KeyEnvelope) GetAesKey

func (x *KeyEnvelope) GetAesKey() []byte

func (*KeyEnvelope) GetKekLabel

func (x *KeyEnvelope) GetKekLabel() string

func (*KeyEnvelope) ProtoMessage

func (*KeyEnvelope) ProtoMessage()

func (*KeyEnvelope) ProtoReflect

func (x *KeyEnvelope) ProtoReflect() protoreflect.Message

func (*KeyEnvelope) Reset

func (x *KeyEnvelope) Reset()

func (*KeyEnvelope) String

func (x *KeyEnvelope) String() string

type Location

type Location struct {

	// Latitude.
	Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
	// Longitude.
	Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
	// Altitude.
	Altitude float64 `protobuf:"fixed64,3,opt,name=altitude,proto3" json:"altitude,omitempty"`
	// Location source.
	Source LocationSource `protobuf:"varint,4,opt,name=source,proto3,enum=common.LocationSource" json:"source,omitempty"`
	// Accuracy.
	Accuracy float32 `protobuf:"fixed32,5,opt,name=accuracy,proto3" json:"accuracy,omitempty"`
	// contains filtered or unexported fields
}

func (*Location) Descriptor deprecated

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

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetAccuracy

func (x *Location) GetAccuracy() float32

func (*Location) GetAltitude

func (x *Location) GetAltitude() float64

func (*Location) GetLatitude

func (x *Location) GetLatitude() float64

func (*Location) GetLongitude

func (x *Location) GetLongitude() float64

func (*Location) GetSource

func (x *Location) GetSource() LocationSource

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type LocationSource

type LocationSource int32
const (
	// Unknown.
	LocationSource_UNKNOWN LocationSource = 0
	// GPS.
	LocationSource_GPS LocationSource = 1
	// Manually configured.
	LocationSource_CONFIG LocationSource = 2
	// Geo resolver (TDOA).
	LocationSource_GEO_RESOLVER_TDOA LocationSource = 3
	// Geo resolver (RSSI).
	LocationSource_GEO_RESOLVER_RSSI LocationSource = 4
	// Geo resolver (GNSS).
	LocationSource_GEO_RESOLVER_GNSS LocationSource = 5
	// Geo resolver (WIFI).
	LocationSource_GEO_RESOLVER_WIFI LocationSource = 6
)

func (LocationSource) Descriptor

func (LocationSource) Enum

func (x LocationSource) Enum() *LocationSource

func (LocationSource) EnumDescriptor deprecated

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

Deprecated: Use LocationSource.Descriptor instead.

func (LocationSource) Number

func (LocationSource) String

func (x LocationSource) String() string

func (LocationSource) Type

type MType

type MType int32
const (
	// JoinRequest.
	MType_JOIN_REQUEST MType = 0
	// JoinAccept.
	MType_JOIN_ACCEPT MType = 1
	// UnconfirmedDataUp.
	MType_UNCONFIRMED_DATA_UP MType = 2
	// UnconfirmedDataDown.
	MType_UNCONFIRMED_DATA_DOWN MType = 3
	// ConfirmedDataUp.
	MType_CONFIRMED_DATA_UP MType = 4
	// ConfirmedDataDown.
	MType_CONFIRMED_DATA_DOWN MType = 5
	// RejoinRequest.
	MType_REJOIN_REQUEST MType = 6
	// Proprietary.
	MType_PROPRIETARY MType = 7
)

func (MType) Descriptor

func (MType) Descriptor() protoreflect.EnumDescriptor

func (MType) Enum

func (x MType) Enum() *MType

func (MType) EnumDescriptor deprecated

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

Deprecated: Use MType.Descriptor instead.

func (MType) Number

func (x MType) Number() protoreflect.EnumNumber

func (MType) String

func (x MType) String() string

func (MType) Type

func (MType) Type() protoreflect.EnumType

type MacVersion

type MacVersion int32
const (
	MacVersion_LORAWAN_1_0_0 MacVersion = 0
	MacVersion_LORAWAN_1_0_1 MacVersion = 1
	MacVersion_LORAWAN_1_0_2 MacVersion = 2
	MacVersion_LORAWAN_1_0_3 MacVersion = 3
	MacVersion_LORAWAN_1_0_4 MacVersion = 4
	MacVersion_LORAWAN_1_1_0 MacVersion = 5
)

func (MacVersion) Descriptor

func (MacVersion) Descriptor() protoreflect.EnumDescriptor

func (MacVersion) Enum

func (x MacVersion) Enum() *MacVersion

func (MacVersion) EnumDescriptor deprecated

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

Deprecated: Use MacVersion.Descriptor instead.

func (MacVersion) Number

func (x MacVersion) Number() protoreflect.EnumNumber

func (MacVersion) String

func (x MacVersion) String() string

func (MacVersion) Type

type Metric

type Metric struct {

	// Name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Timestamps.
	Timestamps []*timestamppb.Timestamp `protobuf:"bytes,2,rep,name=timestamps,proto3" json:"timestamps,omitempty"`
	// Datasets.
	Datasets []*MetricDataset `protobuf:"bytes,3,rep,name=datasets,proto3" json:"datasets,omitempty"`
	// Kind.
	Kind MetricKind `protobuf:"varint,4,opt,name=kind,proto3,enum=common.MetricKind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*Metric) Descriptor deprecated

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

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetDatasets

func (x *Metric) GetDatasets() []*MetricDataset

func (*Metric) GetKind

func (x *Metric) GetKind() MetricKind

func (*Metric) GetName

func (x *Metric) GetName() string

func (*Metric) GetTimestamps

func (x *Metric) GetTimestamps() []*timestamppb.Timestamp

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) ProtoReflect

func (x *Metric) ProtoReflect() protoreflect.Message

func (*Metric) Reset

func (x *Metric) Reset()

func (*Metric) String

func (x *Metric) String() string

type MetricDataset

type MetricDataset struct {

	// Label.
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// Data.
	// Each value index corresponds with the same timestamp index of the Metric.
	Data []float32 `protobuf:"fixed32,2,rep,packed,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricDataset) Descriptor deprecated

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

Deprecated: Use MetricDataset.ProtoReflect.Descriptor instead.

func (*MetricDataset) GetData

func (x *MetricDataset) GetData() []float32

func (*MetricDataset) GetLabel

func (x *MetricDataset) GetLabel() string

func (*MetricDataset) ProtoMessage

func (*MetricDataset) ProtoMessage()

func (*MetricDataset) ProtoReflect

func (x *MetricDataset) ProtoReflect() protoreflect.Message

func (*MetricDataset) Reset

func (x *MetricDataset) Reset()

func (*MetricDataset) String

func (x *MetricDataset) String() string

type MetricKind

type MetricKind int32
const (
	// Incrementing counters that never decrease (these are not reset on each
	// reading).
	MetricKind_COUNTER MetricKind = 0
	// Counters that do get reset upon reading.
	MetricKind_ABSOLUTE MetricKind = 1
	// E.g. a temperature value.
	MetricKind_GAUGE MetricKind = 2
)

func (MetricKind) Descriptor

func (MetricKind) Descriptor() protoreflect.EnumDescriptor

func (MetricKind) Enum

func (x MetricKind) Enum() *MetricKind

func (MetricKind) EnumDescriptor deprecated

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

Deprecated: Use MetricKind.Descriptor instead.

func (MetricKind) Number

func (x MetricKind) Number() protoreflect.EnumNumber

func (MetricKind) String

func (x MetricKind) String() string

func (MetricKind) Type

type Modulation

type Modulation int32
const (
	// LoRa
	Modulation_LORA Modulation = 0
	// FSK
	Modulation_FSK Modulation = 1
	// LR-FHSS
	Modulation_LR_FHSS Modulation = 2
)

func (Modulation) Descriptor

func (Modulation) Descriptor() protoreflect.EnumDescriptor

func (Modulation) Enum

func (x Modulation) Enum() *Modulation

func (Modulation) EnumDescriptor deprecated

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

Deprecated: Use Modulation.Descriptor instead.

func (Modulation) Number

func (x Modulation) Number() protoreflect.EnumNumber

func (Modulation) String

func (x Modulation) String() string

func (Modulation) Type

type RegParamsRevision

type RegParamsRevision int32
const (
	RegParamsRevision_A           RegParamsRevision = 0
	RegParamsRevision_B           RegParamsRevision = 1
	RegParamsRevision_RP002_1_0_0 RegParamsRevision = 2
	RegParamsRevision_RP002_1_0_1 RegParamsRevision = 3
	RegParamsRevision_RP002_1_0_2 RegParamsRevision = 4
	RegParamsRevision_RP002_1_0_3 RegParamsRevision = 5
)

func (RegParamsRevision) Descriptor

func (RegParamsRevision) Enum

func (RegParamsRevision) EnumDescriptor deprecated

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

Deprecated: Use RegParamsRevision.Descriptor instead.

func (RegParamsRevision) Number

func (RegParamsRevision) String

func (x RegParamsRevision) String() string

func (RegParamsRevision) Type

type Region

type Region int32
const (
	// EU868
	Region_EU868 Region = 0
	// US915
	Region_US915 Region = 2
	// CN779
	Region_CN779 Region = 3
	// EU433
	Region_EU433 Region = 4
	// AU915
	Region_AU915 Region = 5
	// CN470
	Region_CN470 Region = 6
	// AS923
	Region_AS923 Region = 7
	// AS923 with -1.80 MHz frequency offset
	Region_AS923_2 Region = 12
	// AS923 with -6.60 MHz frequency offset
	Region_AS923_3 Region = 13
	// (AS923 with -5.90 MHz frequency offset).
	Region_AS923_4 Region = 14
	// KR920
	Region_KR920 Region = 8
	// IN865
	Region_IN865 Region = 9
	// RU864
	Region_RU864 Region = 10
	// ISM2400 (LoRaWAN 2.4 GHz)
	Region_ISM2400 Region = 11
)

func (Region) Descriptor

func (Region) Descriptor() protoreflect.EnumDescriptor

func (Region) Enum

func (x Region) Enum() *Region

func (Region) EnumDescriptor deprecated

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

Deprecated: Use Region.Descriptor instead.

func (Region) Number

func (x Region) Number() protoreflect.EnumNumber

func (Region) String

func (x Region) String() string

func (Region) Type

func (Region) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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