gateway

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: 16 Imported by: 89

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGateway        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGateway          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGateway = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLatitude  = errors.NewErrInvalidArgument("LocationMetadata", "invalid latitude")
	ErrInvalidLongitude = errors.NewErrInvalidArgument("LocationMetadata", "invalid longitude")
	ErrLocationZero     = errors.NewErrInvalidArgument("LocationMetadata", "is zero, so should be nil")
)

Location metadata errors

View Source
var LocationMetadata_LocationSource_name = map[int32]string{
	0: "UNKNOWN",
	1: "GPS",
	2: "CONFIG",
	3: "REGISTRY",
	4: "IP_GEOLOCATION",
}
View Source
var LocationMetadata_LocationSource_value = map[string]int32{
	"UNKNOWN":        0,
	"GPS":            1,
	"CONFIG":         2,
	"REGISTRY":       3,
	"IP_GEOLOCATION": 4,
}

Functions

This section is empty.

Types

type LocationMetadata

type LocationMetadata struct {
	// Time (unix nanoseconds)
	Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
	// the north–south position (degrees; -90 to +90), where 0 is the equator, north pole is positive, south pole is negative
	Latitude float32 `protobuf:"fixed32,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
	// the east-west position (degrees; -180 to +180), where 0 is the Prime Meridian (Greenwich), east is positive , west is negative
	Longitude float32 `protobuf:"fixed32,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
	// the altitude (meters), where 0 is the mean sea level
	Altitude int32 `protobuf:"varint,4,opt,name=altitude,proto3" json:"altitude,omitempty"`
	// the accuracy of the location (meters)
	Accuracy             int32                           `protobuf:"varint,5,opt,name=accuracy,proto3" json:"accuracy,omitempty"`
	Source               LocationMetadata_LocationSource `protobuf:"varint,6,opt,name=source,proto3,enum=gateway.LocationMetadata_LocationSource" json:"source,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

func NewPopulatedLocationMetadata

func NewPopulatedLocationMetadata(r randyGateway, easy bool) *LocationMetadata

func RandomLocation

func RandomLocation() (gps *LocationMetadata)

RandomLocation returns randomly generated gateway location. Used for testing.

func (*LocationMetadata) Descriptor

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

func (*LocationMetadata) Equal

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

func (*LocationMetadata) GetAccuracy

func (m *LocationMetadata) GetAccuracy() int32

func (*LocationMetadata) GetAltitude

func (m *LocationMetadata) GetAltitude() int32

func (*LocationMetadata) GetLatitude

func (m *LocationMetadata) GetLatitude() float32

func (*LocationMetadata) GetLongitude

func (m *LocationMetadata) GetLongitude() float32

func (*LocationMetadata) GetSource

func (*LocationMetadata) GetTime

func (m *LocationMetadata) GetTime() int64

func (LocationMetadata) IsZero

func (m LocationMetadata) IsZero() bool

IsZero returns whether the location is close enough to zero (and should be nil)

func (*LocationMetadata) Marshal

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

func (*LocationMetadata) MarshalTo

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

func (*LocationMetadata) MarshalToSizedBuffer

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

func (*LocationMetadata) ProtoMessage

func (*LocationMetadata) ProtoMessage()

func (*LocationMetadata) Reset

func (m *LocationMetadata) Reset()

func (*LocationMetadata) Size

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

func (*LocationMetadata) String

func (this *LocationMetadata) String() string

func (*LocationMetadata) Unmarshal

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

func (LocationMetadata) Validate

func (m LocationMetadata) Validate() error

Validate implements the api.Validator interface

func (*LocationMetadata) XXX_DiscardUnknown

func (m *LocationMetadata) XXX_DiscardUnknown()

func (*LocationMetadata) XXX_Marshal

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

func (*LocationMetadata) XXX_Merge

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

func (*LocationMetadata) XXX_Size

func (m *LocationMetadata) XXX_Size() int

func (*LocationMetadata) XXX_Unmarshal

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

type LocationMetadata_LocationSource

type LocationMetadata_LocationSource int32
const (
	// The source of the location is not known or not set
	LocationMetadata_UNKNOWN LocationMetadata_LocationSource = 0
	// The location is determined by GPS
	LocationMetadata_GPS LocationMetadata_LocationSource = 1
	// The location is fixed by configuration
	LocationMetadata_CONFIG LocationMetadata_LocationSource = 2
	// The location is set in and updated from a registry
	LocationMetadata_REGISTRY LocationMetadata_LocationSource = 3
	// The location is estimated with IP Geolocation
	LocationMetadata_IP_GEOLOCATION LocationMetadata_LocationSource = 4
)

func (LocationMetadata_LocationSource) EnumDescriptor

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

func (LocationMetadata_LocationSource) String

type RxMetadata

type RxMetadata struct {
	GatewayID string `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// Indicates whether the gateway is trusted. Components that are able to verify gateway trust MUST do so and set this value accordingly
	GatewayTrusted bool `protobuf:"varint,2,opt,name=gateway_trusted,json=gatewayTrusted,proto3" json:"gateway_trusted,omitempty"`
	// Timestamp (uptime of LoRa module) in microseconds with rollover
	Timestamp uint32 `protobuf:"varint,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Time in Unix nanoseconds
	Time int64 `protobuf:"varint,12,opt,name=time,proto3" json:"time,omitempty"`
	// Encrypted time from the Gateway FPGA
	EncryptedTime []byte                `protobuf:"bytes,13,opt,name=encrypted_time,json=encryptedTime,proto3" json:"encrypted_time,omitempty"`
	RfChain       uint32                `protobuf:"varint,21,opt,name=rf_chain,json=rfChain,proto3" json:"rf_chain,omitempty"`
	Channel       uint32                `protobuf:"varint,22,opt,name=channel,proto3" json:"channel,omitempty"`
	Antennas      []*RxMetadata_Antenna `protobuf:"bytes,30,rep,name=antennas,proto3" json:"antennas,omitempty"`
	// Frequency in Hz
	Frequency uint64 `protobuf:"varint,31,opt,name=frequency,proto3" json:"frequency,omitempty"`
	// Received signal strength in dBm
	RSSI float32 `protobuf:"fixed32,32,opt,name=rssi,proto3" json:"rssi,omitempty"`
	// Signal-to-noise-ratio in dB
	SNR                  float32           `protobuf:"fixed32,33,opt,name=snr,proto3" json:"snr,omitempty"`
	Location             *LocationMetadata `protobuf:"bytes,41,opt,name=location,proto3" json:"location,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func NewPopulatedRxMetadata

func NewPopulatedRxMetadata(r randyGateway, easy bool) *RxMetadata

func RandomRxMetadata

func RandomRxMetadata() *RxMetadata

RandomRxMetadata returns randomly generated gateway rx metadata. Used for testing.

func (*RxMetadata) Descriptor

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

func (*RxMetadata) Equal

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

func (*RxMetadata) GetAntennas

func (m *RxMetadata) GetAntennas() []*RxMetadata_Antenna

func (*RxMetadata) GetChannel

func (m *RxMetadata) GetChannel() uint32

func (*RxMetadata) GetEncryptedTime

func (m *RxMetadata) GetEncryptedTime() []byte

func (*RxMetadata) GetFrequency

func (m *RxMetadata) GetFrequency() uint64

func (*RxMetadata) GetGatewayID

func (m *RxMetadata) GetGatewayID() string

func (*RxMetadata) GetGatewayTrusted

func (m *RxMetadata) GetGatewayTrusted() bool

func (*RxMetadata) GetLocation

func (m *RxMetadata) GetLocation() *LocationMetadata

func (*RxMetadata) GetRSSI

func (m *RxMetadata) GetRSSI() float32

func (*RxMetadata) GetRfChain

func (m *RxMetadata) GetRfChain() uint32

func (*RxMetadata) GetSNR

func (m *RxMetadata) GetSNR() float32

func (*RxMetadata) GetTime

func (m *RxMetadata) GetTime() int64

func (*RxMetadata) GetTimestamp

func (m *RxMetadata) GetTimestamp() uint32

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_Size

func (m *RxMetadata) XXX_Size() int

func (*RxMetadata) XXX_Unmarshal

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

type RxMetadata_Antenna

type RxMetadata_Antenna struct {
	Antenna uint32 `protobuf:"varint,1,opt,name=antenna,proto3" json:"antenna,omitempty"`
	Channel uint32 `protobuf:"varint,2,opt,name=channel,proto3" json:"channel,omitempty"`
	// Received signal power in dBm
	RSSI float32 `protobuf:"fixed32,3,opt,name=rssi,proto3" json:"rssi,omitempty"`
	// Received channel power in dBm
	ChannelRSSI float32 `protobuf:"fixed32,5,opt,name=channel_rssi,json=channelRssi,proto3" json:"channel_rssi,omitempty"`
	// Standard deviation of the RSSI
	RSSIStandardDeviation float32 `` /* 128-byte string literal not displayed */
	// Frequency offset (Hz)
	FrequencyOffset int64 `protobuf:"varint,7,opt,name=frequency_offset,json=frequencyOffset,proto3" json:"frequency_offset,omitempty"`
	// Signal-to-noise-ratio in dB
	SNR float32 `protobuf:"fixed32,4,opt,name=snr,proto3" json:"snr,omitempty"`
	// Encrypted fine timestamp from the Gateway FPGA
	EncryptedTime []byte `protobuf:"bytes,10,opt,name=encrypted_time,json=encryptedTime,proto3" json:"encrypted_time,omitempty"`
	// Fine timestamp from the Gateway FPGA (decrypted)
	FineTime             int64    `protobuf:"varint,11,opt,name=fine_time,json=fineTime,proto3" json:"fine_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedRxMetadata_Antenna

func NewPopulatedRxMetadata_Antenna(r randyGateway, easy bool) *RxMetadata_Antenna

func (*RxMetadata_Antenna) Descriptor

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

func (*RxMetadata_Antenna) Equal

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

func (*RxMetadata_Antenna) GetAntenna

func (m *RxMetadata_Antenna) GetAntenna() uint32

func (*RxMetadata_Antenna) GetChannel

func (m *RxMetadata_Antenna) GetChannel() uint32

func (*RxMetadata_Antenna) GetChannelRSSI

func (m *RxMetadata_Antenna) GetChannelRSSI() float32

func (*RxMetadata_Antenna) GetEncryptedTime

func (m *RxMetadata_Antenna) GetEncryptedTime() []byte

func (*RxMetadata_Antenna) GetFineTime

func (m *RxMetadata_Antenna) GetFineTime() int64

func (*RxMetadata_Antenna) GetFrequencyOffset

func (m *RxMetadata_Antenna) GetFrequencyOffset() int64

func (*RxMetadata_Antenna) GetRSSI

func (m *RxMetadata_Antenna) GetRSSI() float32

func (*RxMetadata_Antenna) GetRSSIStandardDeviation

func (m *RxMetadata_Antenna) GetRSSIStandardDeviation() float32

func (*RxMetadata_Antenna) GetSNR

func (m *RxMetadata_Antenna) GetSNR() float32

func (*RxMetadata_Antenna) Marshal

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

func (*RxMetadata_Antenna) MarshalTo

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

func (*RxMetadata_Antenna) MarshalToSizedBuffer

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

func (*RxMetadata_Antenna) ProtoMessage

func (*RxMetadata_Antenna) ProtoMessage()

func (*RxMetadata_Antenna) Reset

func (m *RxMetadata_Antenna) Reset()

func (*RxMetadata_Antenna) Size

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

func (*RxMetadata_Antenna) String

func (this *RxMetadata_Antenna) String() string

func (*RxMetadata_Antenna) Unmarshal

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

func (*RxMetadata_Antenna) XXX_DiscardUnknown

func (m *RxMetadata_Antenna) XXX_DiscardUnknown()

func (*RxMetadata_Antenna) XXX_Marshal

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

func (*RxMetadata_Antenna) XXX_Merge

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

func (*RxMetadata_Antenna) XXX_Size

func (m *RxMetadata_Antenna) XXX_Size() int

func (*RxMetadata_Antenna) XXX_Unmarshal

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

type Status

type Status struct {
	// Timestamp (uptime of gateway) in microseconds with rollover
	Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Time in Unix nanoseconds
	Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
	// Indicates whether the gateway is trusted. Components that are able to verify gateway trust MUST do so and set this value accordingly
	GatewayTrusted bool `protobuf:"varint,3,opt,name=gateway_trusted,json=gatewayTrusted,proto3" json:"gateway_trusted,omitempty"`
	// Boot time in Unix nanoseconds
	BootTime     int64    `protobuf:"varint,4,opt,name=boot_time,json=bootTime,proto3" json:"boot_time,omitempty"`
	IP           []string `protobuf:"bytes,11,rep,name=ip,proto3" json:"ip,omitempty"`
	Platform     string   `protobuf:"bytes,12,opt,name=platform,proto3" json:"platform,omitempty"`
	ContactEmail string   `protobuf:"bytes,13,opt,name=contact_email,json=contactEmail,proto3" json:"contact_email,omitempty"`
	Description  string   `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"`
	// The gateway's frequency plan: one of EU_863_870, US_902_928, CN_779_787, EU_433, AU_915_928, CN_470_510, AS_923, AS_920_923, AS_923_925, KR_920_923
	FrequencyPlan string `protobuf:"bytes,15,opt,name=frequency_plan,json=frequencyPlan,proto3" json:"frequency_plan,omitempty"`
	// The value of Bridge is set by the Bridge
	Bridge string `protobuf:"bytes,16,opt,name=bridge,proto3" json:"bridge,omitempty"`
	// The value of Router is set by the Router
	Router string `protobuf:"bytes,17,opt,name=router,proto3" json:"router,omitempty"`
	// Version of Gateway FPGA
	FPGA uint32 `protobuf:"varint,18,opt,name=fpga,proto3" json:"fpga,omitempty"`
	// Version of Gateway DSP software
	DSP uint32 `protobuf:"varint,19,opt,name=dsp,proto3" json:"dsp,omitempty"`
	// Version of gateway driver (in X.X.X format)
	HAL      string            `protobuf:"bytes,20,opt,name=hal,proto3" json:"hal,omitempty"`
	Location *LocationMetadata `protobuf:"bytes,21,opt,name=location,proto3" json:"location,omitempty"`
	// Round-trip time to the server in milliseconds
	RTT uint32 `protobuf:"varint,31,opt,name=rtt,proto3" json:"rtt,omitempty"`
	// Total number of received uplink packets since boot
	RxIn uint32 `protobuf:"varint,41,opt,name=rx_in,json=rxIn,proto3" json:"rx_in,omitempty"`
	// Total number of successful (correct) uplink packets since boot
	RxOk uint32 `protobuf:"varint,42,opt,name=rx_ok,json=rxOk,proto3" json:"rx_ok,omitempty"`
	// Total number of received downlink packets since boot
	TxIn uint32 `protobuf:"varint,43,opt,name=tx_in,json=txIn,proto3" json:"tx_in,omitempty"`
	// Total number of successfully sent downlink packets since boot
	TxOk uint32 `protobuf:"varint,44,opt,name=tx_ok,json=txOk,proto3" json:"tx_ok,omitempty"`
	// Total number of packets received from link testing mote, with CRC OK
	LmOk uint32 `protobuf:"varint,45,opt,name=lm_ok,json=lmOk,proto3" json:"lm_ok,omitempty"`
	// Sequence number of the first packet received from the link testing mote
	LmSt uint32 `protobuf:"varint,46,opt,name=lm_st,json=lmSt,proto3" json:"lm_st,omitempty"`
	// Sequence number of the last packet received from the link testing mote
	LmNw uint32 `protobuf:"varint,47,opt,name=lm_nw,json=lmNw,proto3" json:"lm_nw,omitempty"`
	// Number of lost PPS pulses
	LPPS uint32            `protobuf:"varint,48,opt,name=l_pps,json=lPps,proto3" json:"l_pps,omitempty"`
	OS   *Status_OSMetrics `protobuf:"bytes,51,opt,name=os,proto3" json:"os,omitempty"`
	// debug or warning messages from the gateway
	Messages             []string `protobuf:"bytes,52,rep,name=messages,proto3" json:"messages,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

message Status represents a status update from a Gateway.

func NewPopulatedStatus

func NewPopulatedStatus(r randyGateway, easy bool) *Status

func RandomStatus

func RandomStatus() *Status

RandomStatus returns randomly generated gateway status. Used for testing.

func (*Status) Descriptor

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

func (*Status) Equal

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

func (*Status) GetBootTime

func (m *Status) GetBootTime() int64

func (*Status) GetBridge

func (m *Status) GetBridge() string

func (*Status) GetContactEmail

func (m *Status) GetContactEmail() string

func (*Status) GetDSP

func (m *Status) GetDSP() uint32

func (*Status) GetDescription

func (m *Status) GetDescription() string

func (*Status) GetFPGA

func (m *Status) GetFPGA() uint32

func (*Status) GetFrequencyPlan

func (m *Status) GetFrequencyPlan() string

func (*Status) GetGatewayTrusted

func (m *Status) GetGatewayTrusted() bool

func (*Status) GetHAL

func (m *Status) GetHAL() string

func (*Status) GetIP

func (m *Status) GetIP() []string

func (*Status) GetLPPS

func (m *Status) GetLPPS() uint32

func (*Status) GetLmNw

func (m *Status) GetLmNw() uint32

func (*Status) GetLmOk

func (m *Status) GetLmOk() uint32

func (*Status) GetLmSt

func (m *Status) GetLmSt() uint32

func (*Status) GetLocation

func (m *Status) GetLocation() *LocationMetadata

func (*Status) GetMessages

func (m *Status) GetMessages() []string

func (*Status) GetOS

func (m *Status) GetOS() *Status_OSMetrics

func (*Status) GetPlatform

func (m *Status) GetPlatform() string

func (*Status) GetRTT

func (m *Status) GetRTT() uint32

func (*Status) GetRouter

func (m *Status) GetRouter() string

func (*Status) GetRxIn

func (m *Status) GetRxIn() uint32

func (*Status) GetRxOk

func (m *Status) GetRxOk() uint32

func (*Status) GetTime

func (m *Status) GetTime() int64

func (*Status) GetTimestamp

func (m *Status) GetTimestamp() uint32

func (*Status) GetTxIn

func (m *Status) GetTxIn() uint32

func (*Status) GetTxOk

func (m *Status) GetTxOk() uint32

func (*Status) Marshal

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

func (*Status) MarshalTo

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

func (*Status) MarshalToSizedBuffer

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

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) Size

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

func (*Status) String

func (this *Status) String() string

func (*Status) Unmarshal

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

func (*Status) Validate

func (m *Status) Validate() error

Validate implements the api.Validator interface

func (*Status) XXX_DiscardUnknown

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal

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

func (*Status) XXX_Merge

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

func (*Status) XXX_Size

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal

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

type Status_OSMetrics

type Status_OSMetrics struct {
	Load_1               float32  `protobuf:"fixed32,1,opt,name=load_1,json=load1,proto3" json:"load_1,omitempty"`
	Load_5               float32  `protobuf:"fixed32,2,opt,name=load_5,json=load5,proto3" json:"load_5,omitempty"`
	Load_15              float32  `protobuf:"fixed32,3,opt,name=load_15,json=load15,proto3" json:"load_15,omitempty"`
	CPUPercentage        float32  `protobuf:"fixed32,11,opt,name=cpu_percentage,json=cpuPercentage,proto3" json:"cpu_percentage,omitempty"`
	MemoryPercentage     float32  `protobuf:"fixed32,21,opt,name=memory_percentage,json=memoryPercentage,proto3" json:"memory_percentage,omitempty"`
	Temperature          float32  `protobuf:"fixed32,31,opt,name=temperature,proto3" json:"temperature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Additional metrics from the operating system

func NewPopulatedStatus_OSMetrics

func NewPopulatedStatus_OSMetrics(r randyGateway, easy bool) *Status_OSMetrics

func (*Status_OSMetrics) Descriptor

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

func (*Status_OSMetrics) Equal

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

func (*Status_OSMetrics) GetCPUPercentage

func (m *Status_OSMetrics) GetCPUPercentage() float32

func (*Status_OSMetrics) GetLoad_1

func (m *Status_OSMetrics) GetLoad_1() float32

func (*Status_OSMetrics) GetLoad_15

func (m *Status_OSMetrics) GetLoad_15() float32

func (*Status_OSMetrics) GetLoad_5

func (m *Status_OSMetrics) GetLoad_5() float32

func (*Status_OSMetrics) GetMemoryPercentage

func (m *Status_OSMetrics) GetMemoryPercentage() float32

func (*Status_OSMetrics) GetTemperature

func (m *Status_OSMetrics) GetTemperature() float32

func (*Status_OSMetrics) Marshal

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

func (*Status_OSMetrics) MarshalTo

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

func (*Status_OSMetrics) MarshalToSizedBuffer

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

func (*Status_OSMetrics) ProtoMessage

func (*Status_OSMetrics) ProtoMessage()

func (*Status_OSMetrics) Reset

func (m *Status_OSMetrics) Reset()

func (*Status_OSMetrics) Size

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

func (*Status_OSMetrics) String

func (this *Status_OSMetrics) String() string

func (*Status_OSMetrics) Unmarshal

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

func (*Status_OSMetrics) XXX_DiscardUnknown

func (m *Status_OSMetrics) XXX_DiscardUnknown()

func (*Status_OSMetrics) XXX_Marshal

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

func (*Status_OSMetrics) XXX_Merge

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

func (*Status_OSMetrics) XXX_Size

func (m *Status_OSMetrics) XXX_Size() int

func (*Status_OSMetrics) XXX_Unmarshal

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

type TxConfiguration

type TxConfiguration struct {
	// Timestamp (uptime of LoRa module) in microseconds with rollover
	Timestamp uint32 `protobuf:"varint,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	RfChain   uint32 `protobuf:"varint,21,opt,name=rf_chain,json=rfChain,proto3" json:"rf_chain,omitempty"`
	// Frequency in Hz
	Frequency uint64 `protobuf:"varint,22,opt,name=frequency,proto3" json:"frequency,omitempty"`
	// Transmit power in dBm
	Power int32 `protobuf:"varint,23,opt,name=power,proto3" json:"power,omitempty"`
	// LoRa polarization inversion (basically always true for messages from gateway to node)
	PolarizationInversion bool `` /* 126-byte string literal not displayed */
	// FSK frequency deviation in Hz
	FrequencyDeviation   uint32   `protobuf:"varint,32,opt,name=frequency_deviation,json=frequencyDeviation,proto3" json:"frequency_deviation,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedTxConfiguration

func NewPopulatedTxConfiguration(r randyGateway, easy bool) *TxConfiguration

func RandomTxConfiguration

func RandomTxConfiguration() *TxConfiguration

RandomTxConfiguration returns randomly generated gateway tx configuration. Used for testing.

func (*TxConfiguration) Descriptor

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

func (*TxConfiguration) Equal

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

func (*TxConfiguration) GetFrequency

func (m *TxConfiguration) GetFrequency() uint64

func (*TxConfiguration) GetFrequencyDeviation

func (m *TxConfiguration) GetFrequencyDeviation() uint32

func (*TxConfiguration) GetPolarizationInversion

func (m *TxConfiguration) GetPolarizationInversion() bool

func (*TxConfiguration) GetPower

func (m *TxConfiguration) GetPower() int32

func (*TxConfiguration) GetRfChain

func (m *TxConfiguration) GetRfChain() uint32

func (*TxConfiguration) GetTimestamp

func (m *TxConfiguration) GetTimestamp() uint32

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_Size

func (m *TxConfiguration) XXX_Size() int

func (*TxConfiguration) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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