api

package
v2.7.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: MIT Imports: 15 Imported by: 120

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

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

It has these top-level messages:

Percentiles
Rates
SystemStats
ComponentStats

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi   = fmt.Errorf("proto: integer overflow")
)
View Source
var AllowInsecureFallback = false

AllowInsecureFallback can be set to true if you need to connect with a server that does not use TLS

View Source
var WaitForStreams = 100 * time.Millisecond

WaitForStreams indicates how long should be waited for a stream to start

Functions

func Dial

func Dial(target string) (*grpc.ClientConn, error)

Dial an address with default TLS config

func DialWithCert

func DialWithCert(target string, cert string) (*grpc.ClientConn, error)

DialWithCert dials the target using the given TLS cert

func NotEmptyAndValidID

func NotEmptyAndValidID(id string, argument string) error

NotEmptyAndValidID checks if the ID is not empty AND has a valid format

func NotNilAndValid

func NotNilAndValid(in interface{}, argument string) error

NotNilAndValid checks if the given interface is not nil AND validates it

func ValidID

func ValidID(id string) bool

ValidID returns true if the given ID is a valid application or device ID

func Validate

func Validate(in interface{}) error

Validate the given object if it implements the Validator interface Must not be called with nil values!

Types

type ComponentStats

type ComponentStats struct {
	Uptime        uint64                      `protobuf:"varint,1,opt,name=uptime,proto3" json:"uptime,omitempty"`
	Cpu           *ComponentStats_CPUStats    `protobuf:"bytes,2,opt,name=cpu" json:"cpu,omitempty"`
	Memory        *ComponentStats_MemoryStats `protobuf:"bytes,3,opt,name=memory" json:"memory,omitempty"`
	Goroutines    uint64                      `protobuf:"varint,4,opt,name=goroutines,proto3" json:"goroutines,omitempty"`
	GcCpuFraction float32                     `protobuf:"fixed32,5,opt,name=gc_cpu_fraction,json=gcCpuFraction,proto3" json:"gc_cpu_fraction,omitempty"`
}

func (*ComponentStats) Descriptor

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

func (*ComponentStats) Equal

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

func (*ComponentStats) GetCpu

func (*ComponentStats) GetGcCpuFraction

func (m *ComponentStats) GetGcCpuFraction() float32

func (*ComponentStats) GetGoroutines

func (m *ComponentStats) GetGoroutines() uint64

func (*ComponentStats) GetMemory

func (*ComponentStats) GetUptime

func (m *ComponentStats) GetUptime() uint64

func (*ComponentStats) Marshal

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

func (*ComponentStats) MarshalTo

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

func (*ComponentStats) ProtoMessage

func (*ComponentStats) ProtoMessage()

func (*ComponentStats) Reset

func (m *ComponentStats) Reset()

func (*ComponentStats) Size

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

func (*ComponentStats) String

func (this *ComponentStats) String() string

func (*ComponentStats) Unmarshal

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

func (*ComponentStats) VerboseEqual

func (this *ComponentStats) VerboseEqual(that interface{}) error

type ComponentStats_CPUStats

type ComponentStats_CPUStats struct {
	User       float32 `protobuf:"fixed32,1,opt,name=user,proto3" json:"user,omitempty"`
	System     float32 `protobuf:"fixed32,2,opt,name=system,proto3" json:"system,omitempty"`
	Idle       float32 `protobuf:"fixed32,3,opt,name=idle,proto3" json:"idle,omitempty"`
	Percentage float32 `protobuf:"fixed32,4,opt,name=percentage,proto3" json:"percentage,omitempty"`
}

func (*ComponentStats_CPUStats) Descriptor

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

func (*ComponentStats_CPUStats) Equal

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

func (*ComponentStats_CPUStats) GetIdle

func (m *ComponentStats_CPUStats) GetIdle() float32

func (*ComponentStats_CPUStats) GetPercentage

func (m *ComponentStats_CPUStats) GetPercentage() float32

func (*ComponentStats_CPUStats) GetSystem

func (m *ComponentStats_CPUStats) GetSystem() float32

func (*ComponentStats_CPUStats) GetUser

func (m *ComponentStats_CPUStats) GetUser() float32

func (*ComponentStats_CPUStats) Marshal

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

func (*ComponentStats_CPUStats) MarshalTo

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

func (*ComponentStats_CPUStats) ProtoMessage

func (*ComponentStats_CPUStats) ProtoMessage()

func (*ComponentStats_CPUStats) Reset

func (m *ComponentStats_CPUStats) Reset()

func (*ComponentStats_CPUStats) Size

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

func (*ComponentStats_CPUStats) String

func (this *ComponentStats_CPUStats) String() string

func (*ComponentStats_CPUStats) Unmarshal

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

func (*ComponentStats_CPUStats) VerboseEqual

func (this *ComponentStats_CPUStats) VerboseEqual(that interface{}) error

type ComponentStats_MemoryStats

type ComponentStats_MemoryStats struct {
	Memory uint64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"`
	Swap   uint64 `protobuf:"varint,2,opt,name=swap,proto3" json:"swap,omitempty"`
	Heap   uint64 `protobuf:"varint,10,opt,name=heap,proto3" json:"heap,omitempty"`
	Stack  uint64 `protobuf:"varint,11,opt,name=stack,proto3" json:"stack,omitempty"`
}

func (*ComponentStats_MemoryStats) Descriptor

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

func (*ComponentStats_MemoryStats) Equal

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

func (*ComponentStats_MemoryStats) GetHeap

func (m *ComponentStats_MemoryStats) GetHeap() uint64

func (*ComponentStats_MemoryStats) GetMemory

func (m *ComponentStats_MemoryStats) GetMemory() uint64

func (*ComponentStats_MemoryStats) GetStack

func (m *ComponentStats_MemoryStats) GetStack() uint64

func (*ComponentStats_MemoryStats) GetSwap

func (m *ComponentStats_MemoryStats) GetSwap() uint64

func (*ComponentStats_MemoryStats) Marshal

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

func (*ComponentStats_MemoryStats) MarshalTo

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

func (*ComponentStats_MemoryStats) ProtoMessage

func (*ComponentStats_MemoryStats) ProtoMessage()

func (*ComponentStats_MemoryStats) Reset

func (m *ComponentStats_MemoryStats) Reset()

func (*ComponentStats_MemoryStats) Size

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

func (*ComponentStats_MemoryStats) String

func (this *ComponentStats_MemoryStats) String() string

func (*ComponentStats_MemoryStats) Unmarshal

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

func (*ComponentStats_MemoryStats) VerboseEqual

func (this *ComponentStats_MemoryStats) VerboseEqual(that interface{}) error

type PayloadUnmarshaler

type PayloadUnmarshaler interface {
	UnmarshalPayload() error
}

PayloadUnmarshaler unmarshals the Payload to a Message

type Percentiles

type Percentiles struct {
	Percentile1  float32 `protobuf:"fixed32,1,opt,name=percentile1,proto3" json:"percentile1,omitempty"`
	Percentile5  float32 `protobuf:"fixed32,2,opt,name=percentile5,proto3" json:"percentile5,omitempty"`
	Percentile10 float32 `protobuf:"fixed32,3,opt,name=percentile10,proto3" json:"percentile10,omitempty"`
	Percentile25 float32 `protobuf:"fixed32,4,opt,name=percentile25,proto3" json:"percentile25,omitempty"`
	Percentile50 float32 `protobuf:"fixed32,5,opt,name=percentile50,proto3" json:"percentile50,omitempty"`
	Percentile75 float32 `protobuf:"fixed32,6,opt,name=percentile75,proto3" json:"percentile75,omitempty"`
	Percentile90 float32 `protobuf:"fixed32,7,opt,name=percentile90,proto3" json:"percentile90,omitempty"`
	Percentile95 float32 `protobuf:"fixed32,8,opt,name=percentile95,proto3" json:"percentile95,omitempty"`
	Percentile99 float32 `protobuf:"fixed32,9,opt,name=percentile99,proto3" json:"percentile99,omitempty"`
}

func (*Percentiles) Descriptor

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

func (*Percentiles) Equal

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

func (*Percentiles) GetPercentile1

func (m *Percentiles) GetPercentile1() float32

func (*Percentiles) GetPercentile10

func (m *Percentiles) GetPercentile10() float32

func (*Percentiles) GetPercentile25

func (m *Percentiles) GetPercentile25() float32

func (*Percentiles) GetPercentile5

func (m *Percentiles) GetPercentile5() float32

func (*Percentiles) GetPercentile50

func (m *Percentiles) GetPercentile50() float32

func (*Percentiles) GetPercentile75

func (m *Percentiles) GetPercentile75() float32

func (*Percentiles) GetPercentile90

func (m *Percentiles) GetPercentile90() float32

func (*Percentiles) GetPercentile95

func (m *Percentiles) GetPercentile95() float32

func (*Percentiles) GetPercentile99

func (m *Percentiles) GetPercentile99() float32

func (*Percentiles) Marshal

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

func (*Percentiles) MarshalTo

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

func (*Percentiles) ProtoMessage

func (*Percentiles) ProtoMessage()

func (*Percentiles) Reset

func (m *Percentiles) Reset()

func (*Percentiles) Size

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

func (*Percentiles) String

func (this *Percentiles) String() string

func (*Percentiles) Unmarshal

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

func (*Percentiles) VerboseEqual

func (this *Percentiles) VerboseEqual(that interface{}) error

type Rates

type Rates struct {
	Rate1  float32 `protobuf:"fixed32,1,opt,name=rate1,proto3" json:"rate1,omitempty"`
	Rate5  float32 `protobuf:"fixed32,2,opt,name=rate5,proto3" json:"rate5,omitempty"`
	Rate15 float32 `protobuf:"fixed32,3,opt,name=rate15,proto3" json:"rate15,omitempty"`
}

func (*Rates) Descriptor

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

func (*Rates) Equal

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

func (*Rates) GetRate1

func (m *Rates) GetRate1() float32

func (*Rates) GetRate15

func (m *Rates) GetRate15() float32

func (*Rates) GetRate5

func (m *Rates) GetRate5() float32

func (*Rates) Marshal

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

func (*Rates) MarshalTo

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

func (*Rates) ProtoMessage

func (*Rates) ProtoMessage()

func (*Rates) Reset

func (m *Rates) Reset()

func (*Rates) Size

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

func (*Rates) String

func (this *Rates) String() string

func (*Rates) Unmarshal

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

func (*Rates) VerboseEqual

func (this *Rates) VerboseEqual(that interface{}) error

type SystemStats

type SystemStats struct {
	Load   *SystemStats_Loadstats   `protobuf:"bytes,1,opt,name=load" json:"load,omitempty"`
	Cpu    *SystemStats_CPUStats    `protobuf:"bytes,2,opt,name=cpu" json:"cpu,omitempty"`
	Memory *SystemStats_MemoryStats `protobuf:"bytes,3,opt,name=memory" json:"memory,omitempty"`
}

func (*SystemStats) Descriptor

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

func (*SystemStats) Equal

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

func (*SystemStats) GetCpu

func (m *SystemStats) GetCpu() *SystemStats_CPUStats

func (*SystemStats) GetLoad

func (m *SystemStats) GetLoad() *SystemStats_Loadstats

func (*SystemStats) GetMemory

func (m *SystemStats) GetMemory() *SystemStats_MemoryStats

func (*SystemStats) Marshal

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

func (*SystemStats) MarshalTo

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

func (*SystemStats) ProtoMessage

func (*SystemStats) ProtoMessage()

func (*SystemStats) Reset

func (m *SystemStats) Reset()

func (*SystemStats) Size

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

func (*SystemStats) String

func (this *SystemStats) String() string

func (*SystemStats) Unmarshal

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

func (*SystemStats) VerboseEqual

func (this *SystemStats) VerboseEqual(that interface{}) error

type SystemStats_CPUStats

type SystemStats_CPUStats struct {
	User       float32 `protobuf:"fixed32,1,opt,name=user,proto3" json:"user,omitempty"`
	System     float32 `protobuf:"fixed32,2,opt,name=system,proto3" json:"system,omitempty"`
	Idle       float32 `protobuf:"fixed32,3,opt,name=idle,proto3" json:"idle,omitempty"`
	Percentage float32 `protobuf:"fixed32,4,opt,name=percentage,proto3" json:"percentage,omitempty"`
}

func (*SystemStats_CPUStats) Descriptor

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

func (*SystemStats_CPUStats) Equal

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

func (*SystemStats_CPUStats) GetIdle

func (m *SystemStats_CPUStats) GetIdle() float32

func (*SystemStats_CPUStats) GetPercentage

func (m *SystemStats_CPUStats) GetPercentage() float32

func (*SystemStats_CPUStats) GetSystem

func (m *SystemStats_CPUStats) GetSystem() float32

func (*SystemStats_CPUStats) GetUser

func (m *SystemStats_CPUStats) GetUser() float32

func (*SystemStats_CPUStats) Marshal

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

func (*SystemStats_CPUStats) MarshalTo

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

func (*SystemStats_CPUStats) ProtoMessage

func (*SystemStats_CPUStats) ProtoMessage()

func (*SystemStats_CPUStats) Reset

func (m *SystemStats_CPUStats) Reset()

func (*SystemStats_CPUStats) Size

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

func (*SystemStats_CPUStats) String

func (this *SystemStats_CPUStats) String() string

func (*SystemStats_CPUStats) Unmarshal

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

func (*SystemStats_CPUStats) VerboseEqual

func (this *SystemStats_CPUStats) VerboseEqual(that interface{}) error

type SystemStats_Loadstats

type SystemStats_Loadstats struct {
	Load1  float32 `protobuf:"fixed32,1,opt,name=load1,proto3" json:"load1,omitempty"`
	Load5  float32 `protobuf:"fixed32,2,opt,name=load5,proto3" json:"load5,omitempty"`
	Load15 float32 `protobuf:"fixed32,3,opt,name=load15,proto3" json:"load15,omitempty"`
}

func (*SystemStats_Loadstats) Descriptor

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

func (*SystemStats_Loadstats) Equal

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

func (*SystemStats_Loadstats) GetLoad1

func (m *SystemStats_Loadstats) GetLoad1() float32

func (*SystemStats_Loadstats) GetLoad15

func (m *SystemStats_Loadstats) GetLoad15() float32

func (*SystemStats_Loadstats) GetLoad5

func (m *SystemStats_Loadstats) GetLoad5() float32

func (*SystemStats_Loadstats) Marshal

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

func (*SystemStats_Loadstats) MarshalTo

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

func (*SystemStats_Loadstats) ProtoMessage

func (*SystemStats_Loadstats) ProtoMessage()

func (*SystemStats_Loadstats) Reset

func (m *SystemStats_Loadstats) Reset()

func (*SystemStats_Loadstats) Size

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

func (*SystemStats_Loadstats) String

func (this *SystemStats_Loadstats) String() string

func (*SystemStats_Loadstats) Unmarshal

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

func (*SystemStats_Loadstats) VerboseEqual

func (this *SystemStats_Loadstats) VerboseEqual(that interface{}) error

type SystemStats_MemoryStats

type SystemStats_MemoryStats struct {
	Total     uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Available uint64 `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"`
	Used      uint64 `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"`
}

func (*SystemStats_MemoryStats) Descriptor

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

func (*SystemStats_MemoryStats) Equal

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

func (*SystemStats_MemoryStats) GetAvailable

func (m *SystemStats_MemoryStats) GetAvailable() uint64

func (*SystemStats_MemoryStats) GetTotal

func (m *SystemStats_MemoryStats) GetTotal() uint64

func (*SystemStats_MemoryStats) GetUsed

func (m *SystemStats_MemoryStats) GetUsed() uint64

func (*SystemStats_MemoryStats) Marshal

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

func (*SystemStats_MemoryStats) MarshalTo

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

func (*SystemStats_MemoryStats) ProtoMessage

func (*SystemStats_MemoryStats) ProtoMessage()

func (*SystemStats_MemoryStats) Reset

func (m *SystemStats_MemoryStats) Reset()

func (*SystemStats_MemoryStats) Size

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

func (*SystemStats_MemoryStats) String

func (this *SystemStats_MemoryStats) String() string

func (*SystemStats_MemoryStats) Unmarshal

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

func (*SystemStats_MemoryStats) VerboseEqual

func (this *SystemStats_MemoryStats) VerboseEqual(that interface{}) error

type Validator

type Validator interface {
	// Returns the validation error or nil if valid
	Validate() error
}

Validator interface is used to validate protos

Directories

Path Synopsis
Package broker is a generated protocol buffer package.
Package broker is a generated protocol buffer package.
Package discovery is a generated protocol buffer package.
Package discovery is a generated protocol buffer package.
Package gateway is a generated protocol buffer package.
Package gateway is a generated protocol buffer package.
Package handler is a generated protocol buffer package.
Package handler is a generated protocol buffer package.
Package monitor is a generated protocol buffer package.
Package monitor is a generated protocol buffer package.
Package networkserver is a generated protocol buffer package.
Package networkserver is a generated protocol buffer package.
Package protocol is a generated protocol buffer package.
Package protocol is a generated protocol buffer package.
lorawan
Package lorawan is a generated protocol buffer package.
Package lorawan is a generated protocol buffer package.
Package router is a generated protocol buffer package.
Package router is a generated protocol buffer package.
Package trace is a generated protocol buffer package.
Package trace is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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