carbon

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2017 License: Apache-2.0 Imports: 7 Imported by: 18

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

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 NewPopulatedMetric(r randyCarbon, easy bool) *Metric

func (*Metric) Descriptor

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

func (*Metric) Equal

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

func (*Metric) GetMetric

func (m *Metric) GetMetric() string

func (*Metric) GetPoints

func (m *Metric) GetPoints() []Point

func (*Metric) GoString

func (this *Metric) GoString() string

func (*Metric) Marshal

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

func (*Metric) MarshalTo

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

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) Reset

func (m *Metric) Reset()

func (*Metric) Size

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

func (*Metric) String

func (this *Metric) String() string

func (*Metric) Unmarshal

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

type Payload

type Payload struct {
	Metrics []*Metric `protobuf:"bytes,1,rep,name=metrics" json:"metrics,omitempty"`
}

func NewPopulatedPayload

func NewPopulatedPayload(r randyCarbon, easy bool) *Payload

func (*Payload) Descriptor

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

func (*Payload) Equal

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

func (*Payload) GetMetrics

func (m *Payload) GetMetrics() []*Metric

func (*Payload) GoString

func (this *Payload) GoString() string

func (*Payload) Marshal

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

func (*Payload) MarshalTo

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

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) Reset

func (m *Payload) Reset()

func (*Payload) Size

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

func (*Payload) String

func (this *Payload) String() string

func (*Payload) Unmarshal

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

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 NewPopulatedPoint(r randyCarbon, easy bool) *Point

func (*Point) Descriptor

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

func (*Point) Equal

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

func (*Point) GetTimestamp

func (m *Point) GetTimestamp() uint32

func (*Point) GetValue

func (m *Point) GetValue() float64

func (*Point) GoString

func (this *Point) GoString() string

func (*Point) Marshal

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

func (*Point) MarshalTo

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

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) Reset

func (m *Point) Reset()

func (*Point) Size

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

func (*Point) String

func (this *Point) String() string

func (*Point) Unmarshal

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

Jump to

Keyboard shortcuts

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