gateway

package
v0.0.0-...-2f095fc Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package gateway is a generated protocol buffer package.

It is generated from these files:

github.com/TheThingsNetwork/ttn/api/gateway/gateway.proto

It has these top-level messages:

GPSMetadata
RxMetadata
TxConfiguration
Status

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")
)
View Source
var StatusMessageProperties = []string{
	"timestamp",
	"time",
	"ip",
	"platform",
	"contact_email",
	"description",
	"region",
	"gps.time",
	"gps.latitude",
	"gps.longitude",
	"gps.altitude",
	"rtt",
	"rx_in",
	"rx_ok",
	"tx_in",
	"tx_ok",
}

StatusMessageProperties contains all properties of a StatusMessage that can be stored in Redis.

Functions

This section is empty.

Types

type GPSMetadata

type GPSMetadata 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"`
}

func (*GPSMetadata) Descriptor

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

func (GPSMetadata) IsZero

func (m GPSMetadata) IsZero() bool

func (*GPSMetadata) Marshal

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

func (*GPSMetadata) MarshalTo

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

func (*GPSMetadata) ProtoMessage

func (*GPSMetadata) ProtoMessage()

func (*GPSMetadata) Reset

func (m *GPSMetadata) Reset()

func (*GPSMetadata) Size

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

func (*GPSMetadata) String

func (m *GPSMetadata) String() string

func (*GPSMetadata) Unmarshal

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

func (*GPSMetadata) Validate

func (m *GPSMetadata) Validate() error

Validate implements the api.Validator interface

type RxMetadata

type RxMetadata struct {
	GatewayId string       `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,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"`
	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"`
	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"`
	Gps       *GPSMetadata `protobuf:"bytes,41,opt,name=gps" json:"gps,omitempty"`
}

func (*RxMetadata) Descriptor

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

func (*RxMetadata) GetGps

func (m *RxMetadata) GetGps() *GPSMetadata

func (*RxMetadata) Marshal

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

func (*RxMetadata) MarshalTo

func (m *RxMetadata) MarshalTo(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 (m *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

type Status

type Status 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"`
	Ip           []string     `protobuf:"bytes,11,rep,name=ip" 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"`
	Region       string       `protobuf:"bytes,15,opt,name=region,proto3" json:"region,omitempty"`
	Gps          *GPSMetadata `protobuf:"bytes,21,opt,name=gps" json:"gps,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"`
}

message Status represents a status update from a Gateway. See https://gist.github.com/htdvisser/b2b1078005ed770233278a366430f992#stat

func (*Status) Descriptor

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

func (*Status) FromStringStringMap

func (status *Status) FromStringStringMap(input map[string]string) error

FromStringStringMap imports known values from the input to a Status.

func (*Status) GetGps

func (m *Status) GetGps() *GPSMetadata

func (*Status) Marshal

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

func (*Status) MarshalTo

func (m *Status) MarshalTo(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 (m *Status) String() string

func (*Status) ToStringStringMap

func (status *Status) ToStringStringMap(properties ...string) (map[string]string, error)

ToStringStringMap converts the given properties of Status to a map[string]string for storage in Redis.

func (*Status) Unmarshal

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

func (*Status) Validate

func (m *Status) Validate() error

Validate implements the api.Validator interface

type TxConfiguration

type TxConfiguration 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"`
}

func (*TxConfiguration) Descriptor

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

func (*TxConfiguration) Marshal

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

func (*TxConfiguration) MarshalTo

func (m *TxConfiguration) MarshalTo(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 (m *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

Jump to

Keyboard shortcuts

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