api

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CRCStatus_name = map[int32]string{
		0: "MISSING",
		1: "OK",
		2: "FAIL",
	}
	CRCStatus_value = map[string]int32{
		"MISSING": 0,
		"OK":      1,
		"FAIL":    2,
	}
)

Enum value maps for CRCStatus.

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

Enum value maps for Modulation.

View Source
var (
	LoRaCodingRate_name = map[int32]string{
		0:  "CR_OFF",
		1:  "CR_UNKNOWN",
		2:  "CR_4_5",
		3:  "CR_4_6",
		4:  "CR_4_7",
		5:  "CR_4_8",
		6:  "CR_4_9",
		7:  "CR_4_10",
		8:  "CR_4_11",
		9:  "CR_4_12",
		10: "CR_4_13",
		11: "CR_4_14",
		12: "CR_4_15",
		13: "CR_4_16",
	}
	LoRaCodingRate_value = map[string]int32{
		"CR_OFF":     0,
		"CR_UNKNOWN": 1,
		"CR_4_5":     2,
		"CR_4_6":     3,
		"CR_4_7":     4,
		"CR_4_8":     5,
		"CR_4_9":     6,
		"CR_4_10":    7,
		"CR_4_11":    8,
		"CR_4_12":    9,
		"CR_4_13":    10,
		"CR_4_14":    11,
		"CR_4_15":    12,
		"CR_4_16":    13,
	}
)

Enum value maps for LoRaCodingRate.

View Source
var (
	LoRaSF_name = map[int32]string{
		0: "SF_UNKNOWN",
		1: "SF12",
		2: "SF11",
		3: "SF10",
		4: "SF9",
		5: "SF8",
		6: "SF7",
	}
	LoRaSF_value = map[string]int32{
		"SF_UNKNOWN": 0,
		"SF12":       1,
		"SF11":       2,
		"SF10":       3,
		"SF9":        4,
		"SF8":        5,
		"SF7":        6,
	}
)

Enum value maps for LoRaSF.

View Source
var (
	LoRaBW_name = map[int32]string{
		0: "BW_UNKNOWN",
		1: "BW_125k",
		3: "BW_250k",
		2: "BW_500k",
	}
	LoRaBW_value = map[string]int32{
		"BW_UNKNOWN": 0,
		"BW_125k":    1,
		"BW_250k":    3,
		"BW_500k":    2,
	}
)

Enum value maps for LoRaBW.

View Source
var File_analytics_proto protoreflect.FileDescriptor

Functions

func ComputeUniqueIdDown added in v0.1.4

func ComputeUniqueIdDown(up *AnalyticsDownlink, fullPayload []byte)

func ComputeUniqueIdUp added in v0.1.4

func ComputeUniqueIdUp(up *AnalyticsUplink, fullPayload []byte)

func RegisterAnalyticsServerServer

func RegisterAnalyticsServerServer(s grpc.ServiceRegistrar, srv AnalyticsServerServer)

Types

type AnalyticsDownlink struct {
	TxTime     int64          `protobuf:"varint,1,opt,name=txTime,proto3" json:"txTime,omitempty"`
	TxGpsTime  int64          `protobuf:"varint,2,opt,name=txGpsTime,proto3" json:"txGpsTime,omitempty"`
	FskFreqDev float32        `protobuf:"fixed32,3,opt,name=fskFreqDev,proto3" json:"fskFreqDev,omitempty"`
	Frequency  float32        `protobuf:"fixed32,4,opt,name=frequency,proto3" json:"frequency,omitempty"`
	Channel    uint32         `protobuf:"varint,5,opt,name=channel,proto3" json:"channel,omitempty"` // Not included in UDP semtech
	RfChain    uint32         `protobuf:"varint,6,opt,name=rfChain,proto3" json:"rfChain,omitempty"`
	Power      float32        `protobuf:"fixed32,7,opt,name=power,proto3" json:"power,omitempty"`
	Modulation Modulation     `protobuf:"varint,8,opt,name=modulation,proto3,enum=api.Modulation" json:"modulation,omitempty"`
	CodingRate LoRaCodingRate `protobuf:"varint,9,opt,name=codingRate,proto3,enum=api.LoRaCodingRate" json:"codingRate,omitempty"`
	// Types that are assignable to DataRate:
	//	*AnalyticsDownlink_DataRateLoRa
	//	*AnalyticsDownlink_DataRateFSK
	DataRate       isAnalyticsDownlink_DataRate `protobuf_oneof:"dataRate"`
	InvertPolarity bool                         `protobuf:"varint,12,opt,name=invertPolarity,proto3" json:"invertPolarity,omitempty"`
	Immediately    bool                         `protobuf:"varint,13,opt,name=immediately,proto3" json:"immediately,omitempty"`
	RfPreamble     uint32                       `protobuf:"varint,14,opt,name=rfPreamble,proto3" json:"rfPreamble,omitempty"`
	Size           uint32                       `protobuf:"varint,15,opt,name=size,proto3" json:"size,omitempty"`
	Fhdr           []byte                       `protobuf:"bytes,16,opt,name=fhdr,proto3" json:"fhdr,omitempty"`
	NoCrc          bool                         `protobuf:"varint,17,opt,name=noCrc,proto3" json:"noCrc,omitempty"`
	RxWallTime     int64                        `protobuf:"varint,18,opt,name=rxWallTime,proto3" json:"rxWallTime,omitempty"`
	UniqueId       []byte                       `protobuf:"bytes,19,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"`
	// contains filtered or unexported fields
}

* Downlink Analytics Message (Received from the server)

func (*AnalyticsDownlink) Descriptor deprecated

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

Deprecated: Use AnalyticsDownlink.ProtoReflect.Descriptor instead.

func (*AnalyticsDownlink) GetChannel

func (x *AnalyticsDownlink) GetChannel() uint32

func (*AnalyticsDownlink) GetCodingRate

func (x *AnalyticsDownlink) GetCodingRate() LoRaCodingRate

func (*AnalyticsDownlink) GetDataRate

func (m *AnalyticsDownlink) GetDataRate() isAnalyticsDownlink_DataRate

func (*AnalyticsDownlink) GetDataRateFSK

func (x *AnalyticsDownlink) GetDataRateFSK() uint32

func (*AnalyticsDownlink) GetDataRateLoRa

func (x *AnalyticsDownlink) GetDataRateLoRa() *LoRaDataRate

func (*AnalyticsDownlink) GetFhdr

func (x *AnalyticsDownlink) GetFhdr() []byte

func (*AnalyticsDownlink) GetFrequency

func (x *AnalyticsDownlink) GetFrequency() float32

func (*AnalyticsDownlink) GetFskFreqDev

func (x *AnalyticsDownlink) GetFskFreqDev() float32

func (*AnalyticsDownlink) GetImmediately

func (x *AnalyticsDownlink) GetImmediately() bool

func (*AnalyticsDownlink) GetInvertPolarity

func (x *AnalyticsDownlink) GetInvertPolarity() bool

func (*AnalyticsDownlink) GetModulation

func (x *AnalyticsDownlink) GetModulation() Modulation

func (*AnalyticsDownlink) GetNoCrc

func (x *AnalyticsDownlink) GetNoCrc() bool

func (*AnalyticsDownlink) GetPower

func (x *AnalyticsDownlink) GetPower() float32

func (*AnalyticsDownlink) GetRfChain

func (x *AnalyticsDownlink) GetRfChain() uint32

func (*AnalyticsDownlink) GetRfPreamble

func (x *AnalyticsDownlink) GetRfPreamble() uint32

func (*AnalyticsDownlink) GetRxWallTime added in v0.1.3

func (x *AnalyticsDownlink) GetRxWallTime() int64

func (*AnalyticsDownlink) GetSize

func (x *AnalyticsDownlink) GetSize() uint32

func (*AnalyticsDownlink) GetTxGpsTime

func (x *AnalyticsDownlink) GetTxGpsTime() int64

func (*AnalyticsDownlink) GetTxTime

func (x *AnalyticsDownlink) GetTxTime() int64

func (*AnalyticsDownlink) GetUniqueId added in v0.1.4

func (x *AnalyticsDownlink) GetUniqueId() []byte

func (*AnalyticsDownlink) ProtoMessage

func (*AnalyticsDownlink) ProtoMessage()

func (*AnalyticsDownlink) ProtoReflect

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

func (*AnalyticsDownlink) Reset

func (x *AnalyticsDownlink) Reset()

func (*AnalyticsDownlink) String

func (x *AnalyticsDownlink) String() string
type AnalyticsDownlink_DataRateFSK struct {
	DataRateFSK uint32 `protobuf:"varint,11,opt,name=dataRateFSK,proto3,oneof"`
}
type AnalyticsDownlink_DataRateLoRa struct {
	DataRateLoRa *LoRaDataRate `protobuf:"bytes,10,opt,name=dataRateLoRa,proto3,oneof"`
}

type AnalyticsMetrics

type AnalyticsMetrics struct {
	GatewayId  string               `protobuf:"bytes,1,opt,name=gatewayId,proto3" json:"gatewayId,omitempty"`
	GatewayEui []byte               `protobuf:"bytes,5,opt,name=gatewayEui,proto3" json:"gatewayEui,omitempty"`
	Uplinks    []*AnalyticsUplink   `protobuf:"bytes,2,rep,name=uplinks,proto3" json:"uplinks,omitempty"`
	Downlinks  []*AnalyticsDownlink `protobuf:"bytes,3,rep,name=downlinks,proto3" json:"downlinks,omitempty"`
	Stats      []*AnalyticsStat     `protobuf:"bytes,4,rep,name=stats,proto3" json:"stats,omitempty"`
	// contains filtered or unexported fields
}

* A bulk of analytics data to be sent to the erver

func (*AnalyticsMetrics) Descriptor deprecated

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

Deprecated: Use AnalyticsMetrics.ProtoReflect.Descriptor instead.

func (x *AnalyticsMetrics) GetDownlinks() []*AnalyticsDownlink

func (*AnalyticsMetrics) GetGatewayEui added in v0.1.3

func (x *AnalyticsMetrics) GetGatewayEui() []byte

func (*AnalyticsMetrics) GetGatewayId

func (x *AnalyticsMetrics) GetGatewayId() string

func (*AnalyticsMetrics) GetStats

func (x *AnalyticsMetrics) GetStats() []*AnalyticsStat
func (x *AnalyticsMetrics) GetUplinks() []*AnalyticsUplink

func (*AnalyticsMetrics) ProtoMessage

func (*AnalyticsMetrics) ProtoMessage()

func (*AnalyticsMetrics) ProtoReflect

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

func (*AnalyticsMetrics) Reset

func (x *AnalyticsMetrics) Reset()

func (*AnalyticsMetrics) String

func (x *AnalyticsMetrics) String() string

type AnalyticsServerClient

type AnalyticsServerClient interface {
	// Logs in to the remote service
	Hello(ctx context.Context, in *ReqHello, opts ...grpc.CallOption) (*RespHello, error)
	Login(ctx context.Context, in *ReqLogin, opts ...grpc.CallOption) (*RespLogin, error)
	// Pushes analytics data to the server
	PushMetrics(ctx context.Context, in *AnalyticsMetrics, opts ...grpc.CallOption) (*RespPush, error)
}

AnalyticsServerClient is the client API for AnalyticsServer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AnalyticsServerServer

type AnalyticsServerServer interface {
	// Logs in to the remote service
	Hello(context.Context, *ReqHello) (*RespHello, error)
	Login(context.Context, *ReqLogin) (*RespLogin, error)
	// Pushes analytics data to the server
	PushMetrics(context.Context, *AnalyticsMetrics) (*RespPush, error)
	// contains filtered or unexported methods
}

AnalyticsServerServer is the server API for AnalyticsServer service. All implementations must embed UnimplementedAnalyticsServerServer for forward compatibility

type AnalyticsStat

type AnalyticsStat struct {
	GwTime            int64   `protobuf:"varint,1,opt,name=gwTime,proto3" json:"gwTime,omitempty"`
	GwLatitude        float32 `protobuf:"fixed32,2,opt,name=gwLatitude,proto3" json:"gwLatitude,omitempty"`
	GwLongitude       float32 `protobuf:"fixed32,3,opt,name=gwLongitude,proto3" json:"gwLongitude,omitempty"`
	GwAltitude        float32 `protobuf:"fixed32,4,opt,name=gwAltitude,proto3" json:"gwAltitude,omitempty"`
	RxPackets         uint32  `protobuf:"varint,5,opt,name=rxPackets,proto3" json:"rxPackets,omitempty"`
	RxWithValidPhyCRC uint32  `protobuf:"varint,6,opt,name=rxWithValidPhyCRC,proto3" json:"rxWithValidPhyCRC,omitempty"`
	RxForwarded       uint32  `protobuf:"varint,7,opt,name=rxForwarded,proto3" json:"rxForwarded,omitempty"`
	RxAckr            float32 `protobuf:"fixed32,8,opt,name=rxAckr,proto3" json:"rxAckr,omitempty"`
	TxReceived        uint32  `protobuf:"varint,9,opt,name=txReceived,proto3" json:"txReceived,omitempty"`
	TxEmitted         uint32  `protobuf:"varint,10,opt,name=txEmitted,proto3" json:"txEmitted,omitempty"`
	// When set to `true` the values are gauges, meaning that
	// they replace any previous value. Otherwise they are
	// counters, which means they are added on top of the previous
	// values.
	IsGauge bool `protobuf:"varint,11,opt,name=isGauge,proto3" json:"isGauge,omitempty"`
	// Gateway temperature
	GwTemp *float32 `protobuf:"fixed32,12,opt,name=gwTemp,proto3,oneof" json:"gwTemp,omitempty"`
	// contains filtered or unexported fields
}

* Analytics Status Message (Sent from the gateway)

func (*AnalyticsStat) Descriptor deprecated

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

Deprecated: Use AnalyticsStat.ProtoReflect.Descriptor instead.

func (*AnalyticsStat) GetGwAltitude

func (x *AnalyticsStat) GetGwAltitude() float32

func (*AnalyticsStat) GetGwLatitude

func (x *AnalyticsStat) GetGwLatitude() float32

func (*AnalyticsStat) GetGwLongitude

func (x *AnalyticsStat) GetGwLongitude() float32

func (*AnalyticsStat) GetGwTemp added in v0.1.3

func (x *AnalyticsStat) GetGwTemp() float32

func (*AnalyticsStat) GetGwTime

func (x *AnalyticsStat) GetGwTime() int64

func (*AnalyticsStat) GetIsGauge added in v0.1.3

func (x *AnalyticsStat) GetIsGauge() bool

func (*AnalyticsStat) GetRxAckr

func (x *AnalyticsStat) GetRxAckr() float32

func (*AnalyticsStat) GetRxForwarded

func (x *AnalyticsStat) GetRxForwarded() uint32

func (*AnalyticsStat) GetRxPackets

func (x *AnalyticsStat) GetRxPackets() uint32

func (*AnalyticsStat) GetRxWithValidPhyCRC

func (x *AnalyticsStat) GetRxWithValidPhyCRC() uint32

func (*AnalyticsStat) GetTxEmitted

func (x *AnalyticsStat) GetTxEmitted() uint32

func (*AnalyticsStat) GetTxReceived

func (x *AnalyticsStat) GetTxReceived() uint32

func (*AnalyticsStat) ProtoMessage

func (*AnalyticsStat) ProtoMessage()

func (*AnalyticsStat) ProtoReflect

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

func (*AnalyticsStat) Reset

func (x *AnalyticsStat) Reset()

func (*AnalyticsStat) String

func (x *AnalyticsStat) String() string
type AnalyticsUplink struct {
	RxWallTime     int64          `protobuf:"varint,1,opt,name=rxWallTime,proto3" json:"rxWallTime,omitempty"`
	RxGpsTime      int64          `protobuf:"varint,2,opt,name=rxGpsTime,proto3" json:"rxGpsTime,omitempty"`
	RxFinishedTime int64          `protobuf:"varint,3,opt,name=rxFinishedTime,proto3" json:"rxFinishedTime,omitempty"`
	Frequency      float32        `protobuf:"fixed32,4,opt,name=frequency,proto3" json:"frequency,omitempty"`
	Channel        uint32         `protobuf:"varint,5,opt,name=channel,proto3" json:"channel,omitempty"`
	RfChain        uint32         `protobuf:"varint,6,opt,name=rfChain,proto3" json:"rfChain,omitempty"`
	Crc            CRCStatus      `protobuf:"varint,7,opt,name=crc,proto3,enum=api.CRCStatus" json:"crc,omitempty"`
	Modulation     Modulation     `protobuf:"varint,8,opt,name=modulation,proto3,enum=api.Modulation" json:"modulation,omitempty"`
	CodingRate     LoRaCodingRate `protobuf:"varint,9,opt,name=codingRate,proto3,enum=api.LoRaCodingRate" json:"codingRate,omitempty"`
	// Types that are assignable to DataRate:
	//	*AnalyticsUplink_DataRateLoRa
	//	*AnalyticsUplink_DataRateFSK
	DataRate isAnalyticsUplink_DataRate `protobuf_oneof:"dataRate"`
	Rssi     float32                    `protobuf:"fixed32,12,opt,name=rssi,proto3" json:"rssi,omitempty"`
	Lsnr     float32                    `protobuf:"fixed32,13,opt,name=lsnr,proto3" json:"lsnr,omitempty"`
	Size     uint32                     `protobuf:"varint,14,opt,name=size,proto3" json:"size,omitempty"`
	Fhdr     []byte                     `protobuf:"bytes,15,opt,name=fhdr,proto3" json:"fhdr,omitempty"`
	UniqueId []byte                     `protobuf:"bytes,16,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"`
	// contains filtered or unexported fields
}

* Uplink Analytics Message (Sent from a mote)

func (*AnalyticsUplink) Descriptor deprecated

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

Deprecated: Use AnalyticsUplink.ProtoReflect.Descriptor instead.

func (*AnalyticsUplink) GetChannel

func (x *AnalyticsUplink) GetChannel() uint32

func (*AnalyticsUplink) GetCodingRate

func (x *AnalyticsUplink) GetCodingRate() LoRaCodingRate

func (*AnalyticsUplink) GetCrc

func (x *AnalyticsUplink) GetCrc() CRCStatus

func (*AnalyticsUplink) GetDataRate

func (m *AnalyticsUplink) GetDataRate() isAnalyticsUplink_DataRate

func (*AnalyticsUplink) GetDataRateFSK

func (x *AnalyticsUplink) GetDataRateFSK() uint32

func (*AnalyticsUplink) GetDataRateLoRa

func (x *AnalyticsUplink) GetDataRateLoRa() *LoRaDataRate

func (*AnalyticsUplink) GetFhdr

func (x *AnalyticsUplink) GetFhdr() []byte

func (*AnalyticsUplink) GetFrequency

func (x *AnalyticsUplink) GetFrequency() float32

func (*AnalyticsUplink) GetLsnr

func (x *AnalyticsUplink) GetLsnr() float32

func (*AnalyticsUplink) GetModulation

func (x *AnalyticsUplink) GetModulation() Modulation

func (*AnalyticsUplink) GetRfChain

func (x *AnalyticsUplink) GetRfChain() uint32

func (*AnalyticsUplink) GetRssi

func (x *AnalyticsUplink) GetRssi() float32

func (*AnalyticsUplink) GetRxFinishedTime

func (x *AnalyticsUplink) GetRxFinishedTime() int64

func (*AnalyticsUplink) GetRxGpsTime

func (x *AnalyticsUplink) GetRxGpsTime() int64

func (*AnalyticsUplink) GetRxWallTime

func (x *AnalyticsUplink) GetRxWallTime() int64

func (*AnalyticsUplink) GetSize

func (x *AnalyticsUplink) GetSize() uint32

func (*AnalyticsUplink) GetUniqueId added in v0.1.4

func (x *AnalyticsUplink) GetUniqueId() []byte

func (*AnalyticsUplink) ProtoMessage

func (*AnalyticsUplink) ProtoMessage()

func (*AnalyticsUplink) ProtoReflect

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

func (*AnalyticsUplink) Reset

func (x *AnalyticsUplink) Reset()

func (*AnalyticsUplink) String

func (x *AnalyticsUplink) String() string
type AnalyticsUplink_DataRateFSK struct {
	DataRateFSK uint32 `protobuf:"varint,11,opt,name=dataRateFSK,proto3,oneof"`
}
type AnalyticsUplink_DataRateLoRa struct {
	DataRateLoRa *LoRaDataRate `protobuf:"bytes,10,opt,name=dataRateLoRa,proto3,oneof"`
}

type CRCStatus

type CRCStatus int32
const (
	CRCStatus_MISSING CRCStatus = 0
	CRCStatus_OK      CRCStatus = 1
	CRCStatus_FAIL    CRCStatus = 2
)

func (CRCStatus) Descriptor

func (CRCStatus) Descriptor() protoreflect.EnumDescriptor

func (CRCStatus) Enum

func (x CRCStatus) Enum() *CRCStatus

func (CRCStatus) EnumDescriptor deprecated

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

Deprecated: Use CRCStatus.Descriptor instead.

func (CRCStatus) Number

func (x CRCStatus) Number() protoreflect.EnumNumber

func (CRCStatus) String

func (x CRCStatus) String() string

func (CRCStatus) Type

type LoRaBW

type LoRaBW int32
const (
	LoRaBW_BW_UNKNOWN LoRaBW = 0
	LoRaBW_BW_125k    LoRaBW = 1
	LoRaBW_BW_250k    LoRaBW = 3
	LoRaBW_BW_500k    LoRaBW = 2
)

func (LoRaBW) Descriptor

func (LoRaBW) Descriptor() protoreflect.EnumDescriptor

func (LoRaBW) Enum

func (x LoRaBW) Enum() *LoRaBW

func (LoRaBW) EnumDescriptor deprecated

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

Deprecated: Use LoRaBW.Descriptor instead.

func (LoRaBW) Number

func (x LoRaBW) Number() protoreflect.EnumNumber

func (LoRaBW) String

func (x LoRaBW) String() string

func (LoRaBW) Type

func (LoRaBW) Type() protoreflect.EnumType

type LoRaCodingRate

type LoRaCodingRate int32
const (
	LoRaCodingRate_CR_OFF     LoRaCodingRate = 0
	LoRaCodingRate_CR_UNKNOWN LoRaCodingRate = 1
	LoRaCodingRate_CR_4_5     LoRaCodingRate = 2
	LoRaCodingRate_CR_4_6     LoRaCodingRate = 3
	LoRaCodingRate_CR_4_7     LoRaCodingRate = 4
	LoRaCodingRate_CR_4_8     LoRaCodingRate = 5
	LoRaCodingRate_CR_4_9     LoRaCodingRate = 6
	LoRaCodingRate_CR_4_10    LoRaCodingRate = 7
	LoRaCodingRate_CR_4_11    LoRaCodingRate = 8
	LoRaCodingRate_CR_4_12    LoRaCodingRate = 9
	LoRaCodingRate_CR_4_13    LoRaCodingRate = 10
	LoRaCodingRate_CR_4_14    LoRaCodingRate = 11
	LoRaCodingRate_CR_4_15    LoRaCodingRate = 12
	LoRaCodingRate_CR_4_16    LoRaCodingRate = 13
)

func (LoRaCodingRate) Descriptor

func (LoRaCodingRate) Enum

func (x LoRaCodingRate) Enum() *LoRaCodingRate

func (LoRaCodingRate) EnumDescriptor deprecated

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

Deprecated: Use LoRaCodingRate.Descriptor instead.

func (LoRaCodingRate) Number

func (LoRaCodingRate) String

func (x LoRaCodingRate) String() string

func (LoRaCodingRate) Type

type LoRaDataRate

type LoRaDataRate struct {
	SpreadingFactor LoRaSF `protobuf:"varint,1,opt,name=spreadingFactor,proto3,enum=api.LoRaSF" json:"spreadingFactor,omitempty"`
	Bandwidth       LoRaBW `protobuf:"varint,2,opt,name=bandwidth,proto3,enum=api.LoRaBW" json:"bandwidth,omitempty"`
	// contains filtered or unexported fields
}

func (*LoRaDataRate) Descriptor deprecated

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

Deprecated: Use LoRaDataRate.ProtoReflect.Descriptor instead.

func (*LoRaDataRate) GetBandwidth

func (x *LoRaDataRate) GetBandwidth() LoRaBW

func (*LoRaDataRate) GetSpreadingFactor

func (x *LoRaDataRate) GetSpreadingFactor() LoRaSF

func (*LoRaDataRate) ProtoMessage

func (*LoRaDataRate) ProtoMessage()

func (*LoRaDataRate) ProtoReflect

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

func (*LoRaDataRate) Reset

func (x *LoRaDataRate) Reset()

func (*LoRaDataRate) String

func (x *LoRaDataRate) String() string

type LoRaSF

type LoRaSF int32
const (
	LoRaSF_SF_UNKNOWN LoRaSF = 0
	LoRaSF_SF12       LoRaSF = 1
	LoRaSF_SF11       LoRaSF = 2
	LoRaSF_SF10       LoRaSF = 3
	LoRaSF_SF9        LoRaSF = 4
	LoRaSF_SF8        LoRaSF = 5
	LoRaSF_SF7        LoRaSF = 6
)

func (LoRaSF) Descriptor

func (LoRaSF) Descriptor() protoreflect.EnumDescriptor

func (LoRaSF) Enum

func (x LoRaSF) Enum() *LoRaSF

func (LoRaSF) EnumDescriptor deprecated

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

Deprecated: Use LoRaSF.Descriptor instead.

func (LoRaSF) Number

func (x LoRaSF) Number() protoreflect.EnumNumber

func (LoRaSF) String

func (x LoRaSF) String() string

func (LoRaSF) Type

func (LoRaSF) Type() protoreflect.EnumType

type Modulation

type Modulation int32
const (
	Modulation_UNKNOWN Modulation = 0
	Modulation_LORA    Modulation = 1
	Modulation_FSK     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 ReqHello added in v0.1.3

type ReqHello struct {
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

Sends the current client version

func (*ReqHello) Descriptor deprecated added in v0.1.3

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

Deprecated: Use ReqHello.ProtoReflect.Descriptor instead.

func (*ReqHello) GetVersion added in v0.1.3

func (x *ReqHello) GetVersion() int32

func (*ReqHello) ProtoMessage added in v0.1.3

func (*ReqHello) ProtoMessage()

func (*ReqHello) ProtoReflect added in v0.1.3

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

func (*ReqHello) Reset added in v0.1.3

func (x *ReqHello) Reset()

func (*ReqHello) String added in v0.1.3

func (x *ReqHello) String() string

type ReqLogin added in v0.1.3

type ReqLogin struct {
	ClientId []byte `protobuf:"bytes,1,opt,name=clientId,proto3" json:"clientId,omitempty"`
	Hash     []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

Identifies using the given client ID and a hash computed using the challenge received from the handshake and the well-known client key

func (*ReqLogin) Descriptor deprecated added in v0.1.3

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

Deprecated: Use ReqLogin.ProtoReflect.Descriptor instead.

func (*ReqLogin) GetClientId added in v0.1.3

func (x *ReqLogin) GetClientId() []byte

func (*ReqLogin) GetHash added in v0.1.3

func (x *ReqLogin) GetHash() []byte

func (*ReqLogin) ProtoMessage added in v0.1.3

func (*ReqLogin) ProtoMessage()

func (*ReqLogin) ProtoReflect added in v0.1.3

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

func (*ReqLogin) Reset added in v0.1.3

func (x *ReqLogin) Reset()

func (*ReqLogin) String added in v0.1.3

func (x *ReqLogin) String() string

type RespHello added in v0.1.3

type RespHello struct {
	Revision  int32  `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	Challenge []byte `protobuf:"bytes,2,opt,name=challenge,proto3" json:"challenge,omitempty"`
	// contains filtered or unexported fields
}

Receives the server version & a challenge code

func (*RespHello) Descriptor deprecated added in v0.1.3

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

Deprecated: Use RespHello.ProtoReflect.Descriptor instead.

func (*RespHello) GetChallenge added in v0.1.3

func (x *RespHello) GetChallenge() []byte

func (*RespHello) GetRevision added in v0.1.3

func (x *RespHello) GetRevision() int32

func (*RespHello) ProtoMessage added in v0.1.3

func (*RespHello) ProtoMessage()

func (*RespHello) ProtoReflect added in v0.1.3

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

func (*RespHello) Reset added in v0.1.3

func (x *RespHello) Reset()

func (*RespHello) String added in v0.1.3

func (x *RespHello) String() string

type RespLogin added in v0.1.3

type RespLogin struct {
	AccessToken string `protobuf:"bytes,2,opt,name=accessToken,proto3" json:"accessToken,omitempty"`
	// contains filtered or unexported fields
}

Receives the access token that can be used for pushing metrics

func (*RespLogin) Descriptor deprecated added in v0.1.3

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

Deprecated: Use RespLogin.ProtoReflect.Descriptor instead.

func (*RespLogin) GetAccessToken added in v0.1.3

func (x *RespLogin) GetAccessToken() string

func (*RespLogin) ProtoMessage added in v0.1.3

func (*RespLogin) ProtoMessage()

func (*RespLogin) ProtoReflect added in v0.1.3

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

func (*RespLogin) Reset added in v0.1.3

func (x *RespLogin) Reset()

func (*RespLogin) String added in v0.1.3

func (x *RespLogin) String() string

type RespPush added in v0.1.3

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

Pushes metrics to the analytics endpoint

func (*RespPush) Descriptor deprecated added in v0.1.3

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

Deprecated: Use RespPush.ProtoReflect.Descriptor instead.

func (*RespPush) ProtoMessage added in v0.1.3

func (*RespPush) ProtoMessage()

func (*RespPush) ProtoReflect added in v0.1.3

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

func (*RespPush) Reset added in v0.1.3

func (x *RespPush) Reset()

func (*RespPush) String added in v0.1.3

func (x *RespPush) String() string

type UnimplementedAnalyticsServerServer

type UnimplementedAnalyticsServerServer struct {
}

UnimplementedAnalyticsServerServer must be embedded to have forward compatible implementations.

func (UnimplementedAnalyticsServerServer) Hello

func (UnimplementedAnalyticsServerServer) Login

func (UnimplementedAnalyticsServerServer) PushMetrics

type UnsafeAnalyticsServerServer

type UnsafeAnalyticsServerServer interface {
	// contains filtered or unexported methods
}

UnsafeAnalyticsServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AnalyticsServerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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