Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, handler TSGenerator)
Types ¶
type TSGenerator ¶
type TSGenerator func() TimeSerier
type TSeriesData ¶
type TSeriesQueryRequest ¶ added in v0.4.1
type TSeriesQueryRequest struct { ID string `json:"id"` StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime int64 `protobuf:"varint,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Identifiers string `protobuf:"bytes,4,opt,name=identifiers,proto3" json:"identifiers,omitempty"` }
type TSeriesQueryResponse ¶ added in v0.4.1
type TSeriesQueryResponse struct { Items []*pb.TSResponse `json:"items"` ID string `json:"id"` Total int32 `json:"total"` }
type TSeriesRequest ¶
type TSeriesResponse ¶
type TimeSerier ¶
type TimeSerier interface { Init(resource.Metadata) error Write(ctx context.Context, req *TSeriesRequest) (*TSeriesResponse, error) Query(ctx context.Context, req *pb.GetTSDataRequest) (*pb.GetTSDataResponse, error) }
func NewTimeSerier ¶
func NewTimeSerier(name string) TimeSerier
Click to show internal directories.
Click to hide internal directories.