Documentation ¶
Overview ¶
Package carbon is a generated protocol buffer package.
It is generated from these files:
carbon.proto
It has these top-level messages:
Point Metric Payload
Index ¶
- Variables
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)
- func (this *Metric) Equal(that interface{}) bool
- func (m *Metric) GetMetric() string
- func (m *Metric) GetPoints() []Point
- func (this *Metric) GoString() string
- func (m *Metric) Marshal() (dAtA []byte, err error)
- func (m *Metric) MarshalTo(dAtA []byte) (int, error)
- func (*Metric) ProtoMessage()
- func (m *Metric) Reset()
- func (m *Metric) Size() (n int)
- func (this *Metric) String() string
- func (m *Metric) Unmarshal(dAtA []byte) error
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)
- func (this *Payload) Equal(that interface{}) bool
- func (m *Payload) GetMetrics() []*Metric
- func (this *Payload) GoString() string
- func (m *Payload) Marshal() (dAtA []byte, err error)
- func (m *Payload) MarshalTo(dAtA []byte) (int, error)
- func (*Payload) ProtoMessage()
- func (m *Payload) Reset()
- func (m *Payload) Size() (n int)
- func (this *Payload) String() string
- func (m *Payload) Unmarshal(dAtA []byte) error
- type Point
- func (*Point) Descriptor() ([]byte, []int)
- func (this *Point) Equal(that interface{}) bool
- func (m *Point) GetTimestamp() uint32
- func (m *Point) GetValue() float64
- func (this *Point) GoString() string
- func (m *Point) Marshal() (dAtA []byte, err error)
- func (m *Point) MarshalTo(dAtA []byte) (int, error)
- func (*Point) ProtoMessage()
- func (m *Point) Reset()
- func (m *Point) Size() (n int)
- func (this *Point) String() string
- func (m *Point) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthCarbon = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCarbon = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct { Metric string `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"` Points []Point `protobuf:"bytes,2,rep,name=points" json:"points"` }
func NewPopulatedMetric ¶
func (*Metric) Descriptor ¶
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
type Payload ¶
type Payload struct {
Metrics []*Metric `protobuf:"bytes,1,rep,name=metrics" json:"metrics,omitempty"`
}
func NewPopulatedPayload ¶
func (*Payload) Descriptor ¶
func (*Payload) GetMetrics ¶
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
type Point ¶
type Point struct { Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` }
func NewPopulatedPoint ¶
func (*Point) Descriptor ¶
func (*Point) GetTimestamp ¶
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.