Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
timeseries.proto
It has these top-level messages:
TSResponse Point Query Meta Tag MetaFound
Index ¶
- func RegisterTimeseriesServer(s *grpc.Server, srv TimeseriesServer)
- type Meta
- type MetaFound
- type Point
- type Query
- type TSResponse
- type Tag
- type TimeseriesClient
- type TimeseriesServer
- type Timeseries_ReadClient
- type Timeseries_ReadServer
- type Timeseries_WriteClient
- type Timeseries_WriteMetaClient
- type Timeseries_WriteMetaServer
- type Timeseries_WriteServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTimeseriesServer ¶
func RegisterTimeseriesServer(s *grpc.Server, srv TimeseriesServer)
Types ¶
type Meta ¶
type Meta struct { Ksid string `protobuf:"bytes,1,opt,name=ksid" json:"ksid,omitempty"` Tsid string `protobuf:"bytes,2,opt,name=tsid" json:"tsid,omitempty"` Metric string `protobuf:"bytes,3,opt,name=metric" json:"metric,omitempty"` Tags []*Tag `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty"` }
func (*Meta) Descriptor ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
type MetaFound ¶
type MetaFound struct {
Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}
func (*MetaFound) Descriptor ¶
func (*MetaFound) ProtoMessage ¶
func (*MetaFound) ProtoMessage()
type Point ¶
type Point struct { Ksid string `protobuf:"bytes,1,opt,name=ksid" json:"ksid,omitempty"` Tsid string `protobuf:"bytes,2,opt,name=tsid" json:"tsid,omitempty"` Value float32 `protobuf:"fixed32,3,opt,name=value" json:"value,omitempty"` Date int64 `protobuf:"varint,4,opt,name=date" json:"date,omitempty"` Empty bool `protobuf:"varint,5,opt,name=empty" json:"empty,omitempty"` }
func (*Point) Descriptor ¶
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
type Query ¶
type Query struct { Ksid string `protobuf:"bytes,1,opt,name=ksid" json:"ksid,omitempty"` Tsid string `protobuf:"bytes,2,opt,name=tsid" json:"tsid,omitempty"` Start int64 `protobuf:"varint,3,opt,name=start" json:"start,omitempty"` End int64 `protobuf:"varint,4,opt,name=end" json:"end,omitempty"` }
func (*Query) Descriptor ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
type TSResponse ¶
type TSResponse struct {
Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}
func (*TSResponse) Descriptor ¶
func (*TSResponse) Descriptor() ([]byte, []int)
func (*TSResponse) GetOk ¶
func (m *TSResponse) GetOk() bool
func (*TSResponse) ProtoMessage ¶
func (*TSResponse) ProtoMessage()
func (*TSResponse) Reset ¶
func (m *TSResponse) Reset()
func (*TSResponse) String ¶
func (m *TSResponse) String() string
type Tag ¶
type Tag struct { Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
func (*Tag) Descriptor ¶
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
type TimeseriesClient ¶
type TimeseriesClient interface { Write(ctx context.Context, opts ...grpc.CallOption) (Timeseries_WriteClient, error) Read(ctx context.Context, in *Query, opts ...grpc.CallOption) (Timeseries_ReadClient, error) WriteMeta(ctx context.Context, opts ...grpc.CallOption) (Timeseries_WriteMetaClient, error) }
func NewTimeseriesClient ¶
func NewTimeseriesClient(cc *grpc.ClientConn) TimeseriesClient
type TimeseriesServer ¶
type TimeseriesServer interface { Write(Timeseries_WriteServer) error Read(*Query, Timeseries_ReadServer) error WriteMeta(Timeseries_WriteMetaServer) error }
type Timeseries_ReadClient ¶
type Timeseries_ReadClient interface { Recv() (*Point, error) grpc.ClientStream }
type Timeseries_ReadServer ¶
type Timeseries_ReadServer interface { Send(*Point) error grpc.ServerStream }
type Timeseries_WriteClient ¶
type Timeseries_WriteClient interface { Send(*Point) error CloseAndRecv() (*TSResponse, error) grpc.ClientStream }
type Timeseries_WriteServer ¶
type Timeseries_WriteServer interface { SendAndClose(*TSResponse) error Recv() (*Point, error) grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.