Documentation ¶
Index ¶
- Variables
- func ComputeUniqueIdDown(up *AnalyticsDownlink, fullPayload []byte)
- func ComputeUniqueIdUp(up *AnalyticsUplink, fullPayload []byte)
- func RegisterAnalyticsServerServer(s grpc.ServiceRegistrar, srv AnalyticsServerServer)
- type AnalyticsDownlink
- func (*AnalyticsDownlink) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyticsDownlink) GetChannel() uint32
- func (x *AnalyticsDownlink) GetCodingRate() LoRaCodingRate
- func (m *AnalyticsDownlink) GetDataRate() isAnalyticsDownlink_DataRate
- func (x *AnalyticsDownlink) GetDataRateFSK() uint32
- func (x *AnalyticsDownlink) GetDataRateLoRa() *LoRaDataRate
- func (x *AnalyticsDownlink) GetFhdr() []byte
- func (x *AnalyticsDownlink) GetFrequency() float32
- func (x *AnalyticsDownlink) GetFskFreqDev() float32
- func (x *AnalyticsDownlink) GetImmediately() bool
- func (x *AnalyticsDownlink) GetInvertPolarity() bool
- func (x *AnalyticsDownlink) GetModulation() Modulation
- func (x *AnalyticsDownlink) GetNoCrc() bool
- func (x *AnalyticsDownlink) GetPower() float32
- func (x *AnalyticsDownlink) GetRfChain() uint32
- func (x *AnalyticsDownlink) GetRfPreamble() uint32
- func (x *AnalyticsDownlink) GetRxWallTime() int64
- func (x *AnalyticsDownlink) GetSize() uint32
- func (x *AnalyticsDownlink) GetTxGpsTime() int64
- func (x *AnalyticsDownlink) GetTxTime() int64
- func (x *AnalyticsDownlink) GetUniqueId() []byte
- func (*AnalyticsDownlink) ProtoMessage()
- func (x *AnalyticsDownlink) ProtoReflect() protoreflect.Message
- func (x *AnalyticsDownlink) Reset()
- func (x *AnalyticsDownlink) String() string
- type AnalyticsDownlink_DataRateFSK
- type AnalyticsDownlink_DataRateLoRa
- type AnalyticsMetrics
- func (*AnalyticsMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyticsMetrics) GetDownlinks() []*AnalyticsDownlink
- func (x *AnalyticsMetrics) GetGatewayEui() []byte
- func (x *AnalyticsMetrics) GetGatewayId() string
- func (x *AnalyticsMetrics) GetStats() []*AnalyticsStat
- func (x *AnalyticsMetrics) GetUplinks() []*AnalyticsUplink
- func (*AnalyticsMetrics) ProtoMessage()
- func (x *AnalyticsMetrics) ProtoReflect() protoreflect.Message
- func (x *AnalyticsMetrics) Reset()
- func (x *AnalyticsMetrics) String() string
- type AnalyticsServerClient
- type AnalyticsServerServer
- type AnalyticsStat
- func (*AnalyticsStat) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyticsStat) GetGwAltitude() float32
- func (x *AnalyticsStat) GetGwLatitude() float32
- func (x *AnalyticsStat) GetGwLongitude() float32
- func (x *AnalyticsStat) GetGwTemp() float32
- func (x *AnalyticsStat) GetGwTime() int64
- func (x *AnalyticsStat) GetIsGauge() bool
- func (x *AnalyticsStat) GetRxAckr() float32
- func (x *AnalyticsStat) GetRxForwarded() uint32
- func (x *AnalyticsStat) GetRxPackets() uint32
- func (x *AnalyticsStat) GetRxWithValidPhyCRC() uint32
- func (x *AnalyticsStat) GetTxEmitted() uint32
- func (x *AnalyticsStat) GetTxReceived() uint32
- func (*AnalyticsStat) ProtoMessage()
- func (x *AnalyticsStat) ProtoReflect() protoreflect.Message
- func (x *AnalyticsStat) Reset()
- func (x *AnalyticsStat) String() string
- type AnalyticsUplink
- func (*AnalyticsUplink) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyticsUplink) GetChannel() uint32
- func (x *AnalyticsUplink) GetCodingRate() LoRaCodingRate
- func (x *AnalyticsUplink) GetCrc() CRCStatus
- func (m *AnalyticsUplink) GetDataRate() isAnalyticsUplink_DataRate
- func (x *AnalyticsUplink) GetDataRateFSK() uint32
- func (x *AnalyticsUplink) GetDataRateLoRa() *LoRaDataRate
- func (x *AnalyticsUplink) GetFhdr() []byte
- func (x *AnalyticsUplink) GetFrequency() float32
- func (x *AnalyticsUplink) GetLsnr() float32
- func (x *AnalyticsUplink) GetModulation() Modulation
- func (x *AnalyticsUplink) GetRfChain() uint32
- func (x *AnalyticsUplink) GetRssi() float32
- func (x *AnalyticsUplink) GetRxFinishedTime() int64
- func (x *AnalyticsUplink) GetRxGpsTime() int64
- func (x *AnalyticsUplink) GetRxWallTime() int64
- func (x *AnalyticsUplink) GetSize() uint32
- func (x *AnalyticsUplink) GetUniqueId() []byte
- func (*AnalyticsUplink) ProtoMessage()
- func (x *AnalyticsUplink) ProtoReflect() protoreflect.Message
- func (x *AnalyticsUplink) Reset()
- func (x *AnalyticsUplink) String() string
- type AnalyticsUplink_DataRateFSK
- type AnalyticsUplink_DataRateLoRa
- type CRCStatus
- type LoRaBW
- type LoRaCodingRate
- func (LoRaCodingRate) Descriptor() protoreflect.EnumDescriptor
- func (x LoRaCodingRate) Enum() *LoRaCodingRate
- func (LoRaCodingRate) EnumDescriptor() ([]byte, []int)deprecated
- func (x LoRaCodingRate) Number() protoreflect.EnumNumber
- func (x LoRaCodingRate) String() string
- func (LoRaCodingRate) Type() protoreflect.EnumType
- type LoRaDataRate
- func (*LoRaDataRate) Descriptor() ([]byte, []int)deprecated
- func (x *LoRaDataRate) GetBandwidth() LoRaBW
- func (x *LoRaDataRate) GetSpreadingFactor() LoRaSF
- func (*LoRaDataRate) ProtoMessage()
- func (x *LoRaDataRate) ProtoReflect() protoreflect.Message
- func (x *LoRaDataRate) Reset()
- func (x *LoRaDataRate) String() string
- type LoRaSF
- type Modulation
- type ReqHello
- type ReqLogin
- type RespHello
- type RespLogin
- type RespPush
- type UnimplementedAnalyticsServerServer
- func (UnimplementedAnalyticsServerServer) Hello(context.Context, *ReqHello) (*RespHello, error)
- func (UnimplementedAnalyticsServerServer) Login(context.Context, *ReqLogin) (*RespLogin, error)
- func (UnimplementedAnalyticsServerServer) PushMetrics(context.Context, *AnalyticsMetrics) (*RespPush, error)
- type UnsafeAnalyticsServerServer
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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.
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.
var File_analytics_proto protoreflect.FileDescriptor
var File_api_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 ¶
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 ¶
type AnalyticsDownlink_DataRateFSK struct {
DataRateFSK uint32 `protobuf:"varint,11,opt,name=dataRateFSK,proto3,oneof"`
}
type AnalyticsDownlink_DataRateLoRa ¶
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 (*AnalyticsMetrics) GetDownlinks ¶
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 (*AnalyticsMetrics) GetUplinks ¶
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.
func NewAnalyticsServerClient ¶
func NewAnalyticsServerClient(cc grpc.ClientConnInterface) AnalyticsServerClient
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 ¶
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 ¶
type AnalyticsUplink_DataRateFSK struct {
DataRateFSK uint32 `protobuf:"varint,11,opt,name=dataRateFSK,proto3,oneof"`
}
type AnalyticsUplink_DataRateLoRa ¶
type AnalyticsUplink_DataRateLoRa struct {
DataRateLoRa *LoRaDataRate `protobuf:"bytes,10,opt,name=dataRateLoRa,proto3,oneof"`
}
type CRCStatus ¶
type CRCStatus int32
func (CRCStatus) Descriptor ¶
func (CRCStatus) Descriptor() protoreflect.EnumDescriptor
func (CRCStatus) EnumDescriptor
deprecated
func (CRCStatus) Number ¶
func (x CRCStatus) Number() protoreflect.EnumNumber
func (CRCStatus) Type ¶
func (CRCStatus) Type() protoreflect.EnumType
type LoRaBW ¶
type LoRaBW int32
func (LoRaBW) Descriptor ¶
func (LoRaBW) Descriptor() protoreflect.EnumDescriptor
func (LoRaBW) EnumDescriptor
deprecated
func (LoRaBW) Number ¶
func (x LoRaBW) Number() protoreflect.EnumNumber
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) Descriptor() protoreflect.EnumDescriptor
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 (x LoRaCodingRate) Number() protoreflect.EnumNumber
func (LoRaCodingRate) String ¶
func (x LoRaCodingRate) String() string
func (LoRaCodingRate) Type ¶
func (LoRaCodingRate) Type() protoreflect.EnumType
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
func (LoRaSF) Descriptor ¶
func (LoRaSF) Descriptor() protoreflect.EnumDescriptor
func (LoRaSF) EnumDescriptor
deprecated
func (LoRaSF) Number ¶
func (x LoRaSF) Number() protoreflect.EnumNumber
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 ¶
func (Modulation) Type() protoreflect.EnumType
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) GetVersion ¶ added in v0.1.3
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
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) GetClientId ¶ added in v0.1.3
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
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) GetChallenge ¶ added in v0.1.3
func (*RespHello) GetRevision ¶ added in v0.1.3
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
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) GetAccessToken ¶ added in v0.1.3
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
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) ProtoMessage ¶ added in v0.1.3
func (*RespPush) ProtoMessage()
func (*RespPush) ProtoReflect ¶ added in v0.1.3
func (x *RespPush) ProtoReflect() protoreflect.Message
type UnimplementedAnalyticsServerServer ¶
type UnimplementedAnalyticsServerServer struct { }
UnimplementedAnalyticsServerServer must be embedded to have forward compatible implementations.
func (UnimplementedAnalyticsServerServer) PushMetrics ¶
func (UnimplementedAnalyticsServerServer) PushMetrics(context.Context, *AnalyticsMetrics) (*RespPush, error)
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.