ttnpb

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Router_GatewayStatus_FullMethodName = "/router.Router/GatewayStatus"
	Router_Uplink_FullMethodName        = "/router.Router/Uplink"
	Router_Subscribe_FullMethodName     = "/router.Router/Subscribe"
)
View Source
const (
	Discovery_Get_FullMethodName = "/discovery.Discovery/Get"
)

Variables

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

Enum value maps for Modulation.

View Source
var (
	FrequencyPlan_name = map[int32]string{
		0:  "EU_863_870",
		1:  "US_902_928",
		2:  "CN_779_787",
		3:  "EU_433",
		4:  "AU_915_928",
		5:  "CN_470_510",
		6:  "AS_923",
		61: "AS_920_923",
		62: "AS_923_925",
		7:  "KR_920_923",
		8:  "IN_865_867",
		9:  "RU_864_870",
	}
	FrequencyPlan_value = map[string]int32{
		"EU_863_870": 0,
		"US_902_928": 1,
		"CN_779_787": 2,
		"EU_433":     3,
		"AU_915_928": 4,
		"CN_470_510": 5,
		"AS_923":     6,
		"AS_920_923": 61,
		"AS_923_925": 62,
		"KR_920_923": 7,
		"IN_865_867": 8,
		"RU_864_870": 9,
	}
)

Enum value maps for FrequencyPlan.

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

Enum value maps for LocationMetadata_LocationSource.

View Source
var Discovery_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "discovery.Discovery",
	HandlerType: (*DiscoveryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _Discovery_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "discovery.proto",
}

Discovery_ServiceDesc is the grpc.ServiceDesc for Discovery service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_discovery_proto protoreflect.FileDescriptor
View Source
var File_router_proto protoreflect.FileDescriptor
View Source
var Router_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "router.Router",
	HandlerType: (*RouterServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GatewayStatus",
			Handler:       _Router_GatewayStatus_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "Uplink",
			Handler:       _Router_Uplink_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "Subscribe",
			Handler:       _Router_Subscribe_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "router.proto",
}

Router_ServiceDesc is the grpc.ServiceDesc for Router service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterDiscoveryServer

func RegisterDiscoveryServer(s grpc.ServiceRegistrar, srv DiscoveryServer)

func RegisterRouterServer

func RegisterRouterServer(s grpc.ServiceRegistrar, srv RouterServer)

Types

type Announcement

type Announcement struct {
	Id             string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ServiceName    string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ServiceVersion string `protobuf:"bytes,3,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"`
	NetAddress     string `protobuf:"bytes,11,opt,name=net_address,json=netAddress,proto3" json:"net_address,omitempty"`
	PublicKey      string `protobuf:"bytes,12,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Certificate    string `protobuf:"bytes,13,opt,name=certificate,proto3" json:"certificate,omitempty"`
	// contains filtered or unexported fields
}

func (*Announcement) Descriptor deprecated

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

Deprecated: Use Announcement.ProtoReflect.Descriptor instead.

func (*Announcement) GetCertificate

func (x *Announcement) GetCertificate() string

func (*Announcement) GetId

func (x *Announcement) GetId() string

func (*Announcement) GetNetAddress

func (x *Announcement) GetNetAddress() string

func (*Announcement) GetPublicKey

func (x *Announcement) GetPublicKey() string

func (*Announcement) GetServiceName

func (x *Announcement) GetServiceName() string

func (*Announcement) GetServiceVersion

func (x *Announcement) GetServiceVersion() string

func (*Announcement) GetTLSConfig

func (a *Announcement) GetTLSConfig() (*tls.Config, error)

GetTLSConfig returns the TLS config for the announcement.

func (*Announcement) ProtoMessage

func (*Announcement) ProtoMessage()

func (*Announcement) ProtoReflect added in v2.1.0

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

func (*Announcement) Reset

func (x *Announcement) Reset()

func (*Announcement) String

func (x *Announcement) String() string

type DiscoveryClient

type DiscoveryClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Announcement, error)
}

DiscoveryClient is the client API for Discovery 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 NewDiscoveryClient

func NewDiscoveryClient(cc grpc.ClientConnInterface) DiscoveryClient

type DiscoveryServer

type DiscoveryServer interface {
	Get(context.Context, *GetRequest) (*Announcement, error)
	// contains filtered or unexported methods
}

DiscoveryServer is the server API for Discovery service. All implementations must embed UnimplementedDiscoveryServer for forward compatibility

type DownlinkMessage

type DownlinkMessage struct {
	Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// ProtocolMessage message = 2;
	ProtocolConfiguration *ProtocolTxConfiguration `protobuf:"bytes,11,opt,name=protocol_configuration,json=protocolConfiguration,proto3" json:"protocol_configuration,omitempty"`
	GatewayConfiguration  *GatewayTxConfiguration  `protobuf:"bytes,12,opt,name=gateway_configuration,json=gatewayConfiguration,proto3" json:"gateway_configuration,omitempty"`
	Trace                 *Trace                   `protobuf:"bytes,21,opt,name=trace,proto3" json:"trace,omitempty"`
	// contains filtered or unexported fields
}

func (*DownlinkMessage) Descriptor deprecated

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

Deprecated: Use DownlinkMessage.ProtoReflect.Descriptor instead.

func (*DownlinkMessage) GetGatewayConfiguration

func (x *DownlinkMessage) GetGatewayConfiguration() *GatewayTxConfiguration

func (*DownlinkMessage) GetPayload

func (x *DownlinkMessage) GetPayload() []byte

func (*DownlinkMessage) GetProtocolConfiguration

func (x *DownlinkMessage) GetProtocolConfiguration() *ProtocolTxConfiguration

func (*DownlinkMessage) GetTrace

func (x *DownlinkMessage) GetTrace() *Trace

func (*DownlinkMessage) ProtoMessage

func (*DownlinkMessage) ProtoMessage()

func (*DownlinkMessage) ProtoReflect added in v2.1.0

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

func (*DownlinkMessage) Reset

func (x *DownlinkMessage) Reset()

func (*DownlinkMessage) String

func (x *DownlinkMessage) String() string

type FrequencyPlan

type FrequencyPlan int32
const (
	FrequencyPlan_EU_863_870 FrequencyPlan = 0
	FrequencyPlan_US_902_928 FrequencyPlan = 1
	FrequencyPlan_CN_779_787 FrequencyPlan = 2
	FrequencyPlan_EU_433     FrequencyPlan = 3
	FrequencyPlan_AU_915_928 FrequencyPlan = 4
	FrequencyPlan_CN_470_510 FrequencyPlan = 5
	FrequencyPlan_AS_923     FrequencyPlan = 6
	FrequencyPlan_AS_920_923 FrequencyPlan = 61
	FrequencyPlan_AS_923_925 FrequencyPlan = 62
	FrequencyPlan_KR_920_923 FrequencyPlan = 7
	FrequencyPlan_IN_865_867 FrequencyPlan = 8
	FrequencyPlan_RU_864_870 FrequencyPlan = 9
)

func (FrequencyPlan) Descriptor added in v2.1.0

func (FrequencyPlan) Enum added in v2.1.0

func (x FrequencyPlan) Enum() *FrequencyPlan

func (FrequencyPlan) EnumDescriptor deprecated

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

Deprecated: Use FrequencyPlan.Descriptor instead.

func (FrequencyPlan) Number added in v2.1.0

func (FrequencyPlan) String

func (x FrequencyPlan) String() string

func (FrequencyPlan) Type added in v2.1.0

type GatewayRxMetadata

type GatewayRxMetadata struct {
	GatewayId      string                       `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	GatewayTrusted bool                         `protobuf:"varint,2,opt,name=gateway_trusted,json=gatewayTrusted,proto3" json:"gateway_trusted,omitempty"`
	Timestamp      uint32                       `protobuf:"varint,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Time           int64                        `protobuf:"varint,12,opt,name=time,proto3" json:"time,omitempty"`
	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       []*GatewayRxMetadata_Antenna `protobuf:"bytes,30,rep,name=antennas,proto3" json:"antennas,omitempty"`
	Frequency      uint64                       `protobuf:"varint,31,opt,name=frequency,proto3" json:"frequency,omitempty"`
	Rssi           float32                      `protobuf:"fixed32,32,opt,name=rssi,proto3" json:"rssi,omitempty"`
	Snr            float32                      `protobuf:"fixed32,33,opt,name=snr,proto3" json:"snr,omitempty"`
	Location       *LocationMetadata            `protobuf:"bytes,41,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*GatewayRxMetadata) Descriptor deprecated

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

Deprecated: Use GatewayRxMetadata.ProtoReflect.Descriptor instead.

func (*GatewayRxMetadata) GetAntennas

func (x *GatewayRxMetadata) GetAntennas() []*GatewayRxMetadata_Antenna

func (*GatewayRxMetadata) GetChannel

func (x *GatewayRxMetadata) GetChannel() uint32

func (*GatewayRxMetadata) GetEncryptedTime

func (x *GatewayRxMetadata) GetEncryptedTime() []byte

func (*GatewayRxMetadata) GetFrequency

func (x *GatewayRxMetadata) GetFrequency() uint64

func (*GatewayRxMetadata) GetGatewayId

func (x *GatewayRxMetadata) GetGatewayId() string

func (*GatewayRxMetadata) GetGatewayTrusted

func (x *GatewayRxMetadata) GetGatewayTrusted() bool

func (*GatewayRxMetadata) GetLocation

func (x *GatewayRxMetadata) GetLocation() *LocationMetadata

func (*GatewayRxMetadata) GetRfChain

func (x *GatewayRxMetadata) GetRfChain() uint32

func (*GatewayRxMetadata) GetRssi

func (x *GatewayRxMetadata) GetRssi() float32

func (*GatewayRxMetadata) GetSnr

func (x *GatewayRxMetadata) GetSnr() float32

func (*GatewayRxMetadata) GetTime

func (x *GatewayRxMetadata) GetTime() int64

func (*GatewayRxMetadata) GetTimestamp

func (x *GatewayRxMetadata) GetTimestamp() uint32

func (*GatewayRxMetadata) ProtoMessage

func (*GatewayRxMetadata) ProtoMessage()

func (*GatewayRxMetadata) ProtoReflect added in v2.1.0

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

func (*GatewayRxMetadata) Reset

func (x *GatewayRxMetadata) Reset()

func (*GatewayRxMetadata) String

func (x *GatewayRxMetadata) String() string

type GatewayRxMetadata_Antenna

type GatewayRxMetadata_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"`
	Rssi                  float32 `protobuf:"fixed32,3,opt,name=rssi,proto3" json:"rssi,omitempty"`
	ChannelRssi           float32 `protobuf:"fixed32,5,opt,name=channel_rssi,json=channelRssi,proto3" json:"channel_rssi,omitempty"`
	RssiStandardDeviation float32 `` /* 128-byte string literal not displayed */
	FrequencyOffset       int64   `protobuf:"varint,7,opt,name=frequency_offset,json=frequencyOffset,proto3" json:"frequency_offset,omitempty"`
	Snr                   float32 `protobuf:"fixed32,4,opt,name=snr,proto3" json:"snr,omitempty"`
	EncryptedTime         []byte  `protobuf:"bytes,10,opt,name=encrypted_time,json=encryptedTime,proto3" json:"encrypted_time,omitempty"`
	FineTime              int64   `protobuf:"varint,11,opt,name=fine_time,json=fineTime,proto3" json:"fine_time,omitempty"`
	// contains filtered or unexported fields
}

func (*GatewayRxMetadata_Antenna) Descriptor deprecated

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

Deprecated: Use GatewayRxMetadata_Antenna.ProtoReflect.Descriptor instead.

func (*GatewayRxMetadata_Antenna) GetAntenna

func (x *GatewayRxMetadata_Antenna) GetAntenna() uint32

func (*GatewayRxMetadata_Antenna) GetChannel

func (x *GatewayRxMetadata_Antenna) GetChannel() uint32

func (*GatewayRxMetadata_Antenna) GetChannelRssi

func (x *GatewayRxMetadata_Antenna) GetChannelRssi() float32

func (*GatewayRxMetadata_Antenna) GetEncryptedTime

func (x *GatewayRxMetadata_Antenna) GetEncryptedTime() []byte

func (*GatewayRxMetadata_Antenna) GetFineTime

func (x *GatewayRxMetadata_Antenna) GetFineTime() int64

func (*GatewayRxMetadata_Antenna) GetFrequencyOffset

func (x *GatewayRxMetadata_Antenna) GetFrequencyOffset() int64

func (*GatewayRxMetadata_Antenna) GetRssi

func (x *GatewayRxMetadata_Antenna) GetRssi() float32

func (*GatewayRxMetadata_Antenna) GetRssiStandardDeviation

func (x *GatewayRxMetadata_Antenna) GetRssiStandardDeviation() float32

func (*GatewayRxMetadata_Antenna) GetSnr

func (x *GatewayRxMetadata_Antenna) GetSnr() float32

func (*GatewayRxMetadata_Antenna) ProtoMessage

func (*GatewayRxMetadata_Antenna) ProtoMessage()

func (*GatewayRxMetadata_Antenna) ProtoReflect added in v2.1.0

func (*GatewayRxMetadata_Antenna) Reset

func (x *GatewayRxMetadata_Antenna) Reset()

func (*GatewayRxMetadata_Antenna) String

func (x *GatewayRxMetadata_Antenna) String() string

type GatewayTxConfiguration

type GatewayTxConfiguration struct {
	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             uint64 `protobuf:"varint,22,opt,name=frequency,proto3" json:"frequency,omitempty"`
	Power                 int32  `protobuf:"varint,23,opt,name=power,proto3" json:"power,omitempty"`
	PolarizationInversion bool   `` /* 126-byte string literal not displayed */
	FrequencyDeviation    uint32 `protobuf:"varint,32,opt,name=frequency_deviation,json=frequencyDeviation,proto3" json:"frequency_deviation,omitempty"`
	// contains filtered or unexported fields
}

func (*GatewayTxConfiguration) Descriptor deprecated

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

Deprecated: Use GatewayTxConfiguration.ProtoReflect.Descriptor instead.

func (*GatewayTxConfiguration) GetFrequency

func (x *GatewayTxConfiguration) GetFrequency() uint64

func (*GatewayTxConfiguration) GetFrequencyDeviation

func (x *GatewayTxConfiguration) GetFrequencyDeviation() uint32

func (*GatewayTxConfiguration) GetPolarizationInversion

func (x *GatewayTxConfiguration) GetPolarizationInversion() bool

func (*GatewayTxConfiguration) GetPower

func (x *GatewayTxConfiguration) GetPower() int32

func (*GatewayTxConfiguration) GetRfChain

func (x *GatewayTxConfiguration) GetRfChain() uint32

func (*GatewayTxConfiguration) GetTimestamp

func (x *GatewayTxConfiguration) GetTimestamp() uint32

func (*GatewayTxConfiguration) ProtoMessage

func (*GatewayTxConfiguration) ProtoMessage()

func (*GatewayTxConfiguration) ProtoReflect added in v2.1.0

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

func (*GatewayTxConfiguration) Reset

func (x *GatewayTxConfiguration) Reset()

func (*GatewayTxConfiguration) String

func (x *GatewayTxConfiguration) String() string

type GetRequest

type GetRequest struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetId

func (x *GetRequest) GetId() string

func (*GetRequest) GetServiceName

func (x *GetRequest) GetServiceName() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect added in v2.1.0

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type LoRaWANMetadata

type LoRaWANMetadata struct {
	Modulation    Modulation    `protobuf:"varint,11,opt,name=modulation,proto3,enum=router.Modulation" json:"modulation,omitempty"`
	DataRate      string        `protobuf:"bytes,12,opt,name=data_rate,json=dataRate,proto3" json:"data_rate,omitempty"`
	BitRate       uint32        `protobuf:"varint,13,opt,name=bit_rate,json=bitRate,proto3" json:"bit_rate,omitempty"`
	CodingRate    string        `protobuf:"bytes,14,opt,name=coding_rate,json=codingRate,proto3" json:"coding_rate,omitempty"`
	FCnt          uint32        `protobuf:"varint,15,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
	FrequencyPlan FrequencyPlan `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LoRaWANMetadata) Descriptor deprecated

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

Deprecated: Use LoRaWANMetadata.ProtoReflect.Descriptor instead.

func (*LoRaWANMetadata) GetBitRate

func (x *LoRaWANMetadata) GetBitRate() uint32

func (*LoRaWANMetadata) GetCodingRate

func (x *LoRaWANMetadata) GetCodingRate() string

func (*LoRaWANMetadata) GetDataRate

func (x *LoRaWANMetadata) GetDataRate() string

func (*LoRaWANMetadata) GetFCnt

func (x *LoRaWANMetadata) GetFCnt() uint32

func (*LoRaWANMetadata) GetFrequencyPlan

func (x *LoRaWANMetadata) GetFrequencyPlan() FrequencyPlan

func (*LoRaWANMetadata) GetModulation

func (x *LoRaWANMetadata) GetModulation() Modulation

func (*LoRaWANMetadata) ProtoMessage

func (*LoRaWANMetadata) ProtoMessage()

func (*LoRaWANMetadata) ProtoReflect added in v2.1.0

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

func (*LoRaWANMetadata) Reset

func (x *LoRaWANMetadata) Reset()

func (*LoRaWANMetadata) String

func (x *LoRaWANMetadata) String() string

type LoRaWANTxConfiguration

type LoRaWANTxConfiguration struct {
	Modulation Modulation `protobuf:"varint,11,opt,name=modulation,proto3,enum=router.Modulation" json:"modulation,omitempty"`
	DataRate   string     `protobuf:"bytes,12,opt,name=data_rate,json=dataRate,proto3" json:"data_rate,omitempty"`
	BitRate    uint32     `protobuf:"varint,13,opt,name=bit_rate,json=bitRate,proto3" json:"bit_rate,omitempty"`
	CodingRate string     `protobuf:"bytes,14,opt,name=coding_rate,json=codingRate,proto3" json:"coding_rate,omitempty"`
	FCnt       uint32     `protobuf:"varint,15,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
	// contains filtered or unexported fields
}

func (*LoRaWANTxConfiguration) Descriptor deprecated

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

Deprecated: Use LoRaWANTxConfiguration.ProtoReflect.Descriptor instead.

func (*LoRaWANTxConfiguration) GetBitRate

func (x *LoRaWANTxConfiguration) GetBitRate() uint32

func (*LoRaWANTxConfiguration) GetCodingRate

func (x *LoRaWANTxConfiguration) GetCodingRate() string

func (*LoRaWANTxConfiguration) GetDataRate

func (x *LoRaWANTxConfiguration) GetDataRate() string

func (*LoRaWANTxConfiguration) GetFCnt

func (x *LoRaWANTxConfiguration) GetFCnt() uint32

func (*LoRaWANTxConfiguration) GetModulation

func (x *LoRaWANTxConfiguration) GetModulation() Modulation

func (*LoRaWANTxConfiguration) ProtoMessage

func (*LoRaWANTxConfiguration) ProtoMessage()

func (*LoRaWANTxConfiguration) ProtoReflect added in v2.1.0

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

func (*LoRaWANTxConfiguration) Reset

func (x *LoRaWANTxConfiguration) Reset()

func (*LoRaWANTxConfiguration) String

func (x *LoRaWANTxConfiguration) String() string

type LocationMetadata

type LocationMetadata struct {
	Time      int64                           `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
	Latitude  float32                         `protobuf:"fixed32,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude float32                         `protobuf:"fixed32,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Altitude  int32                           `protobuf:"varint,4,opt,name=altitude,proto3" json:"altitude,omitempty"`
	Accuracy  int32                           `protobuf:"varint,5,opt,name=accuracy,proto3" json:"accuracy,omitempty"`
	Source    LocationMetadata_LocationSource `protobuf:"varint,6,opt,name=source,proto3,enum=router.LocationMetadata_LocationSource" json:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*LocationMetadata) Descriptor deprecated

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

Deprecated: Use LocationMetadata.ProtoReflect.Descriptor instead.

func (*LocationMetadata) GetAccuracy

func (x *LocationMetadata) GetAccuracy() int32

func (*LocationMetadata) GetAltitude

func (x *LocationMetadata) GetAltitude() int32

func (*LocationMetadata) GetLatitude

func (x *LocationMetadata) GetLatitude() float32

func (*LocationMetadata) GetLongitude

func (x *LocationMetadata) GetLongitude() float32

func (*LocationMetadata) GetSource

func (*LocationMetadata) GetTime

func (x *LocationMetadata) GetTime() int64

func (*LocationMetadata) ProtoMessage

func (*LocationMetadata) ProtoMessage()

func (*LocationMetadata) ProtoReflect added in v2.1.0

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

func (*LocationMetadata) Reset

func (x *LocationMetadata) Reset()

func (*LocationMetadata) String

func (x *LocationMetadata) String() string

func (*LocationMetadata) Validate

func (m *LocationMetadata) Validate() bool

Validate validates the location.

type LocationMetadata_LocationSource

type LocationMetadata_LocationSource int32
const (
	LocationMetadata_UNKNOWN        LocationMetadata_LocationSource = 0
	LocationMetadata_GPS            LocationMetadata_LocationSource = 1
	LocationMetadata_CONFIG         LocationMetadata_LocationSource = 2
	LocationMetadata_REGISTRY       LocationMetadata_LocationSource = 3
	LocationMetadata_IP_GEOLOCATION LocationMetadata_LocationSource = 4
)

func (LocationMetadata_LocationSource) Descriptor added in v2.1.0

func (LocationMetadata_LocationSource) Enum added in v2.1.0

func (LocationMetadata_LocationSource) EnumDescriptor deprecated

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

Deprecated: Use LocationMetadata_LocationSource.Descriptor instead.

func (LocationMetadata_LocationSource) Number added in v2.1.0

func (LocationMetadata_LocationSource) String

func (LocationMetadata_LocationSource) Type added in v2.1.0

type Modulation

type Modulation int32
const (
	Modulation_LORA Modulation = 0
	Modulation_FSK  Modulation = 1
)

func (Modulation) Descriptor added in v2.1.0

func (Modulation) Descriptor() protoreflect.EnumDescriptor

func (Modulation) Enum added in v2.1.0

func (x Modulation) Enum() *Modulation

func (Modulation) EnumDescriptor deprecated

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

Deprecated: Use Modulation.Descriptor instead.

func (Modulation) Number added in v2.1.0

func (x Modulation) Number() protoreflect.EnumNumber

func (Modulation) String

func (x Modulation) String() string

func (Modulation) Type added in v2.1.0

type ProtocolRxMetadata

type ProtocolRxMetadata struct {
	Lorawan *LoRaWANMetadata `protobuf:"bytes,1,opt,name=lorawan,proto3" json:"lorawan,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtocolRxMetadata) Descriptor deprecated

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

Deprecated: Use ProtocolRxMetadata.ProtoReflect.Descriptor instead.

func (*ProtocolRxMetadata) GetLorawan

func (x *ProtocolRxMetadata) GetLorawan() *LoRaWANMetadata

func (*ProtocolRxMetadata) ProtoMessage

func (*ProtocolRxMetadata) ProtoMessage()

func (*ProtocolRxMetadata) ProtoReflect added in v2.1.0

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

func (*ProtocolRxMetadata) Reset

func (x *ProtocolRxMetadata) Reset()

func (*ProtocolRxMetadata) String

func (x *ProtocolRxMetadata) String() string

type ProtocolTxConfiguration

type ProtocolTxConfiguration struct {
	Lorawan *LoRaWANTxConfiguration `protobuf:"bytes,1,opt,name=lorawan,proto3" json:"lorawan,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtocolTxConfiguration) Descriptor deprecated

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

Deprecated: Use ProtocolTxConfiguration.ProtoReflect.Descriptor instead.

func (*ProtocolTxConfiguration) GetLorawan

func (*ProtocolTxConfiguration) ProtoMessage

func (*ProtocolTxConfiguration) ProtoMessage()

func (*ProtocolTxConfiguration) ProtoReflect added in v2.1.0

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

func (*ProtocolTxConfiguration) Reset

func (x *ProtocolTxConfiguration) Reset()

func (*ProtocolTxConfiguration) String

func (x *ProtocolTxConfiguration) String() string

type RouterClient

type RouterClient interface {
	GatewayStatus(ctx context.Context, opts ...grpc.CallOption) (Router_GatewayStatusClient, error)
	Uplink(ctx context.Context, opts ...grpc.CallOption) (Router_UplinkClient, error)
	Subscribe(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Router_SubscribeClient, error)
}

RouterClient is the client API for Router 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 NewRouterClient

func NewRouterClient(cc grpc.ClientConnInterface) RouterClient

type RouterServer

type RouterServer interface {
	GatewayStatus(Router_GatewayStatusServer) error
	Uplink(Router_UplinkServer) error
	Subscribe(*emptypb.Empty, Router_SubscribeServer) error
	// contains filtered or unexported methods
}

RouterServer is the server API for Router service. All implementations must embed UnimplementedRouterServer for forward compatibility

type Router_GatewayStatusClient

type Router_GatewayStatusClient interface {
	Send(*StatusMessage) error
	CloseAndRecv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type Router_GatewayStatusServer

type Router_GatewayStatusServer interface {
	SendAndClose(*emptypb.Empty) error
	Recv() (*StatusMessage, error)
	grpc.ServerStream
}

type Router_SubscribeClient

type Router_SubscribeClient interface {
	Recv() (*DownlinkMessage, error)
	grpc.ClientStream
}

type Router_SubscribeServer

type Router_SubscribeServer interface {
	Send(*DownlinkMessage) error
	grpc.ServerStream
}

type Router_UplinkClient

type Router_UplinkClient interface {
	Send(*UplinkMessage) error
	CloseAndRecv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type Router_UplinkServer

type Router_UplinkServer interface {
	SendAndClose(*emptypb.Empty) error
	Recv() (*UplinkMessage, error)
	grpc.ServerStream
}

type StatusMessage

type StatusMessage struct {
	Timestamp      uint32                   `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Time           int64                    `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
	GatewayTrusted bool                     `protobuf:"varint,3,opt,name=gateway_trusted,json=gatewayTrusted,proto3" json:"gateway_trusted,omitempty"`
	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"`
	FrequencyPlan  string                   `protobuf:"bytes,15,opt,name=frequency_plan,json=frequencyPlan,proto3" json:"frequency_plan,omitempty"`
	Bridge         string                   `protobuf:"bytes,16,opt,name=bridge,proto3" json:"bridge,omitempty"`
	Router         string                   `protobuf:"bytes,17,opt,name=router,proto3" json:"router,omitempty"`
	Fpga           uint32                   `protobuf:"varint,18,opt,name=fpga,proto3" json:"fpga,omitempty"`
	Dsp            uint32                   `protobuf:"varint,19,opt,name=dsp,proto3" json:"dsp,omitempty"`
	Hal            string                   `protobuf:"bytes,20,opt,name=hal,proto3" json:"hal,omitempty"`
	Location       *LocationMetadata        `protobuf:"bytes,21,opt,name=location,proto3" json:"location,omitempty"`
	Rtt            uint32                   `protobuf:"varint,31,opt,name=rtt,proto3" json:"rtt,omitempty"`
	RxIn           uint32                   `protobuf:"varint,41,opt,name=rx_in,json=rxIn,proto3" json:"rx_in,omitempty"`
	RxOk           uint32                   `protobuf:"varint,42,opt,name=rx_ok,json=rxOk,proto3" json:"rx_ok,omitempty"`
	TxIn           uint32                   `protobuf:"varint,43,opt,name=tx_in,json=txIn,proto3" json:"tx_in,omitempty"`
	TxOk           uint32                   `protobuf:"varint,44,opt,name=tx_ok,json=txOk,proto3" json:"tx_ok,omitempty"`
	LmOk           uint32                   `protobuf:"varint,45,opt,name=lm_ok,json=lmOk,proto3" json:"lm_ok,omitempty"`
	LmSt           uint32                   `protobuf:"varint,46,opt,name=lm_st,json=lmSt,proto3" json:"lm_st,omitempty"`
	LmNw           uint32                   `protobuf:"varint,47,opt,name=lm_nw,json=lmNw,proto3" json:"lm_nw,omitempty"`
	LPps           uint32                   `protobuf:"varint,48,opt,name=l_pps,json=lPps,proto3" json:"l_pps,omitempty"`
	Os             *StatusMessage_OSMetrics `protobuf:"bytes,51,opt,name=os,proto3" json:"os,omitempty"`
	Messages       []string                 `protobuf:"bytes,52,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusMessage) Descriptor deprecated

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

Deprecated: Use StatusMessage.ProtoReflect.Descriptor instead.

func (*StatusMessage) GetBootTime

func (x *StatusMessage) GetBootTime() int64

func (*StatusMessage) GetBridge

func (x *StatusMessage) GetBridge() string

func (*StatusMessage) GetContactEmail

func (x *StatusMessage) GetContactEmail() string

func (*StatusMessage) GetDescription

func (x *StatusMessage) GetDescription() string

func (*StatusMessage) GetDsp

func (x *StatusMessage) GetDsp() uint32

func (*StatusMessage) GetFpga

func (x *StatusMessage) GetFpga() uint32

func (*StatusMessage) GetFrequencyPlan

func (x *StatusMessage) GetFrequencyPlan() string

func (*StatusMessage) GetGatewayTrusted

func (x *StatusMessage) GetGatewayTrusted() bool

func (*StatusMessage) GetHal

func (x *StatusMessage) GetHal() string

func (*StatusMessage) GetIp

func (x *StatusMessage) GetIp() []string

func (*StatusMessage) GetLPps

func (x *StatusMessage) GetLPps() uint32

func (*StatusMessage) GetLmNw

func (x *StatusMessage) GetLmNw() uint32

func (*StatusMessage) GetLmOk

func (x *StatusMessage) GetLmOk() uint32

func (*StatusMessage) GetLmSt

func (x *StatusMessage) GetLmSt() uint32

func (*StatusMessage) GetLocation

func (x *StatusMessage) GetLocation() *LocationMetadata

func (*StatusMessage) GetMessages

func (x *StatusMessage) GetMessages() []string

func (*StatusMessage) GetOs

func (*StatusMessage) GetPlatform

func (x *StatusMessage) GetPlatform() string

func (*StatusMessage) GetRouter

func (x *StatusMessage) GetRouter() string

func (*StatusMessage) GetRtt

func (x *StatusMessage) GetRtt() uint32

func (*StatusMessage) GetRxIn

func (x *StatusMessage) GetRxIn() uint32

func (*StatusMessage) GetRxOk

func (x *StatusMessage) GetRxOk() uint32

func (*StatusMessage) GetTime

func (x *StatusMessage) GetTime() int64

func (*StatusMessage) GetTimestamp

func (x *StatusMessage) GetTimestamp() uint32

func (*StatusMessage) GetTxIn

func (x *StatusMessage) GetTxIn() uint32

func (*StatusMessage) GetTxOk

func (x *StatusMessage) GetTxOk() uint32

func (*StatusMessage) ProtoMessage

func (*StatusMessage) ProtoMessage()

func (*StatusMessage) ProtoReflect added in v2.1.0

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

func (*StatusMessage) Reset

func (x *StatusMessage) Reset()

func (*StatusMessage) String

func (x *StatusMessage) String() string

type StatusMessage_OSMetrics

type StatusMessage_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"`
	// contains filtered or unexported fields
}

func (*StatusMessage_OSMetrics) Descriptor deprecated

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

Deprecated: Use StatusMessage_OSMetrics.ProtoReflect.Descriptor instead.

func (*StatusMessage_OSMetrics) GetCpuPercentage

func (x *StatusMessage_OSMetrics) GetCpuPercentage() float32

func (*StatusMessage_OSMetrics) GetLoad_1

func (x *StatusMessage_OSMetrics) GetLoad_1() float32

func (*StatusMessage_OSMetrics) GetLoad_15

func (x *StatusMessage_OSMetrics) GetLoad_15() float32

func (*StatusMessage_OSMetrics) GetLoad_5

func (x *StatusMessage_OSMetrics) GetLoad_5() float32

func (*StatusMessage_OSMetrics) GetMemoryPercentage

func (x *StatusMessage_OSMetrics) GetMemoryPercentage() float32

func (*StatusMessage_OSMetrics) GetTemperature

func (x *StatusMessage_OSMetrics) GetTemperature() float32

func (*StatusMessage_OSMetrics) ProtoMessage

func (*StatusMessage_OSMetrics) ProtoMessage()

func (*StatusMessage_OSMetrics) ProtoReflect added in v2.1.0

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

func (*StatusMessage_OSMetrics) Reset

func (x *StatusMessage_OSMetrics) Reset()

func (*StatusMessage_OSMetrics) String

func (x *StatusMessage_OSMetrics) String() string

type Trace

type Trace struct {
	Id          string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Time        int64             `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
	ServiceId   string            `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	ServiceName string            `protobuf:"bytes,4,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	Event       string            `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"`
	Metadata    map[string]string `` /* 157-byte string literal not displayed */
	Parents     []*Trace          `protobuf:"bytes,11,rep,name=parents,proto3" json:"parents,omitempty"`
	// contains filtered or unexported fields
}

func (*Trace) Descriptor deprecated

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

Deprecated: Use Trace.ProtoReflect.Descriptor instead.

func (*Trace) GetEvent

func (x *Trace) GetEvent() string

func (*Trace) GetId

func (x *Trace) GetId() string

func (*Trace) GetMetadata

func (x *Trace) GetMetadata() map[string]string

func (*Trace) GetParents

func (x *Trace) GetParents() []*Trace

func (*Trace) GetServiceId

func (x *Trace) GetServiceId() string

func (*Trace) GetServiceName

func (x *Trace) GetServiceName() string

func (*Trace) GetTime

func (x *Trace) GetTime() int64

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) ProtoReflect added in v2.1.0

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

func (*Trace) Reset

func (x *Trace) Reset()

func (*Trace) String

func (x *Trace) String() string

type UnimplementedDiscoveryServer

type UnimplementedDiscoveryServer struct {
}

UnimplementedDiscoveryServer must be embedded to have forward compatible implementations.

func (UnimplementedDiscoveryServer) Get

type UnimplementedRouterServer

type UnimplementedRouterServer struct {
}

UnimplementedRouterServer must be embedded to have forward compatible implementations.

func (UnimplementedRouterServer) GatewayStatus

func (UnimplementedRouterServer) Subscribe

type UnsafeDiscoveryServer added in v2.1.0

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

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

type UnsafeRouterServer added in v2.1.0

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

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

type UplinkMessage

type UplinkMessage struct {
	Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// ProtocolMessage message = 2;
	ProtocolMetadata *ProtocolRxMetadata `protobuf:"bytes,11,opt,name=protocol_metadata,json=protocolMetadata,proto3" json:"protocol_metadata,omitempty"`
	GatewayMetadata  *GatewayRxMetadata  `protobuf:"bytes,12,opt,name=gateway_metadata,json=gatewayMetadata,proto3" json:"gateway_metadata,omitempty"`
	Trace            *Trace              `protobuf:"bytes,21,opt,name=trace,proto3" json:"trace,omitempty"`
	// contains filtered or unexported fields
}

func (*UplinkMessage) Descriptor deprecated

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

Deprecated: Use UplinkMessage.ProtoReflect.Descriptor instead.

func (*UplinkMessage) GetGatewayMetadata

func (x *UplinkMessage) GetGatewayMetadata() *GatewayRxMetadata

func (*UplinkMessage) GetPayload

func (x *UplinkMessage) GetPayload() []byte

func (*UplinkMessage) GetProtocolMetadata

func (x *UplinkMessage) GetProtocolMetadata() *ProtocolRxMetadata

func (*UplinkMessage) GetTrace

func (x *UplinkMessage) GetTrace() *Trace

func (*UplinkMessage) ProtoMessage

func (*UplinkMessage) ProtoMessage()

func (*UplinkMessage) ProtoReflect added in v2.1.0

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

func (*UplinkMessage) Reset

func (x *UplinkMessage) Reset()

func (*UplinkMessage) String

func (x *UplinkMessage) String() string

Jump to

Keyboard shortcuts

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