Documentation
¶
Overview ¶
Package carbonpb is a generated protocol buffer package.
It is generated from these files:
carbon.proto
It has these top-level messages:
Point Metric Payload CacheRequest
Index ¶
- Variables
- func RegisterCarbonServer(s *grpc.Server, srv CarbonServer)
- type CacheRequest
- func (*CacheRequest) Descriptor() ([]byte, []int)
- func (m *CacheRequest) Marshal() (dAtA []byte, err error)
- func (m *CacheRequest) MarshalTo(dAtA []byte) (int, error)
- func (*CacheRequest) ProtoMessage()
- func (m *CacheRequest) Reset()
- func (m *CacheRequest) Size() (n int)
- func (m *CacheRequest) String() string
- func (m *CacheRequest) Unmarshal(dAtA []byte) error
- type CarbonClient
- type CarbonServer
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)
- func (m *Metric) GetPoints() []Point
- 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 (m *Metric) String() string
- func (m *Metric) Unmarshal(dAtA []byte) error
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)
- func (m *Payload) GetMetrics() []*Metric
- 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 (m *Payload) String() string
- func (m *Payload) Unmarshal(dAtA []byte) error
- type Point
- func (*Point) Descriptor() ([]byte, []int)
- 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 (m *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 ¶
func RegisterCarbonServer ¶
func RegisterCarbonServer(s *grpc.Server, srv CarbonServer)
Types ¶
type CacheRequest ¶
type CacheRequest struct {
Metrics []string `protobuf:"bytes,1,rep,name=metrics" json:"metrics,omitempty"`
}
func (*CacheRequest) Descriptor ¶
func (*CacheRequest) Descriptor() ([]byte, []int)
func (*CacheRequest) Marshal ¶
func (m *CacheRequest) Marshal() (dAtA []byte, err error)
func (*CacheRequest) ProtoMessage ¶
func (*CacheRequest) ProtoMessage()
func (*CacheRequest) Reset ¶
func (m *CacheRequest) Reset()
func (*CacheRequest) Size ¶
func (m *CacheRequest) Size() (n int)
func (*CacheRequest) String ¶
func (m *CacheRequest) String() string
func (*CacheRequest) Unmarshal ¶
func (m *CacheRequest) Unmarshal(dAtA []byte) error
type CarbonClient ¶
type CarbonClient interface { // Same as carbonlink CacheQuery(ctx context.Context, in *CacheRequest, opts ...grpc.CallOption) (*Payload, error) }
func NewCarbonClient ¶
func NewCarbonClient(cc *grpc.ClientConn) CarbonClient
type CarbonServer ¶
type CarbonServer interface { // Same as carbonlink CacheQuery(context.Context, *CacheRequest) (*Payload, error) }
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 (*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 (*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 (*Point) Descriptor ¶
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.