Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTimeSeriesServiceServer(s grpc.ServiceRegistrar, srv TimeSeriesServiceServer)
- type TimeSeriesDataPoint
- func (*TimeSeriesDataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *TimeSeriesDataPoint) GetTime() *timestamppb.Timestamp
- func (x *TimeSeriesDataPoint) GetValue() float64
- func (*TimeSeriesDataPoint) ProtoMessage()
- func (x *TimeSeriesDataPoint) ProtoReflect() protoreflect.Message
- func (x *TimeSeriesDataPoint) Reset()
- func (x *TimeSeriesDataPoint) String() string
- type TimeSeriesRequest
- func (*TimeSeriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TimeSeriesRequest) GetAggregation() string
- func (x *TimeSeriesRequest) GetEnd() *timestamppb.Timestamp
- func (x *TimeSeriesRequest) GetStart() *timestamppb.Timestamp
- func (x *TimeSeriesRequest) GetWindow() string
- func (*TimeSeriesRequest) ProtoMessage()
- func (x *TimeSeriesRequest) ProtoReflect() protoreflect.Message
- func (x *TimeSeriesRequest) Reset()
- func (x *TimeSeriesRequest) String() string
- type TimeSeriesResponse
- func (*TimeSeriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TimeSeriesResponse) GetData() []*TimeSeriesDataPoint
- func (*TimeSeriesResponse) ProtoMessage()
- func (x *TimeSeriesResponse) ProtoReflect() protoreflect.Message
- func (x *TimeSeriesResponse) Reset()
- func (x *TimeSeriesResponse) String() string
- type TimeSeriesServiceClient
- type TimeSeriesServiceServer
- type UnimplementedTimeSeriesServiceServer
- type UnsafeTimeSeriesServiceServer
Constants ¶
const (
TimeSeriesService_QueryTimeSeries_FullMethodName = "/edgecom.TimeSeriesService/QueryTimeSeries"
)
Variables ¶
var File_timeseries_proto protoreflect.FileDescriptor
var TimeSeriesService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "edgecom.TimeSeriesService", HandlerType: (*TimeSeriesServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "QueryTimeSeries", Handler: _TimeSeriesService_QueryTimeSeries_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "timeseries.proto", }
TimeSeriesService_ServiceDesc is the grpc.ServiceDesc for TimeSeriesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTimeSeriesServiceServer ¶
func RegisterTimeSeriesServiceServer(s grpc.ServiceRegistrar, srv TimeSeriesServiceServer)
Types ¶
type TimeSeriesDataPoint ¶
type TimeSeriesDataPoint struct { Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*TimeSeriesDataPoint) Descriptor
deprecated
func (*TimeSeriesDataPoint) Descriptor() ([]byte, []int)
Deprecated: Use TimeSeriesDataPoint.ProtoReflect.Descriptor instead.
func (*TimeSeriesDataPoint) GetTime ¶
func (x *TimeSeriesDataPoint) GetTime() *timestamppb.Timestamp
func (*TimeSeriesDataPoint) GetValue ¶
func (x *TimeSeriesDataPoint) GetValue() float64
func (*TimeSeriesDataPoint) ProtoMessage ¶
func (*TimeSeriesDataPoint) ProtoMessage()
func (*TimeSeriesDataPoint) ProtoReflect ¶
func (x *TimeSeriesDataPoint) ProtoReflect() protoreflect.Message
func (*TimeSeriesDataPoint) Reset ¶
func (x *TimeSeriesDataPoint) Reset()
func (*TimeSeriesDataPoint) String ¶
func (x *TimeSeriesDataPoint) String() string
type TimeSeriesRequest ¶
type TimeSeriesRequest struct { Start *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` End *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` Window string `protobuf:"bytes,3,opt,name=window,proto3" json:"window,omitempty"` // e.g., '1m', '5m', '1h', '1d' Aggregation string `protobuf:"bytes,4,opt,name=aggregation,proto3" json:"aggregation,omitempty"` // 'MIN', 'MAX', 'AVG', 'SUM' // contains filtered or unexported fields }
func (*TimeSeriesRequest) Descriptor
deprecated
func (*TimeSeriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use TimeSeriesRequest.ProtoReflect.Descriptor instead.
func (*TimeSeriesRequest) GetAggregation ¶
func (x *TimeSeriesRequest) GetAggregation() string
func (*TimeSeriesRequest) GetEnd ¶
func (x *TimeSeriesRequest) GetEnd() *timestamppb.Timestamp
func (*TimeSeriesRequest) GetStart ¶
func (x *TimeSeriesRequest) GetStart() *timestamppb.Timestamp
func (*TimeSeriesRequest) GetWindow ¶
func (x *TimeSeriesRequest) GetWindow() string
func (*TimeSeriesRequest) ProtoMessage ¶
func (*TimeSeriesRequest) ProtoMessage()
func (*TimeSeriesRequest) ProtoReflect ¶
func (x *TimeSeriesRequest) ProtoReflect() protoreflect.Message
func (*TimeSeriesRequest) Reset ¶
func (x *TimeSeriesRequest) Reset()
func (*TimeSeriesRequest) String ¶
func (x *TimeSeriesRequest) String() string
type TimeSeriesResponse ¶
type TimeSeriesResponse struct { Data []*TimeSeriesDataPoint `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*TimeSeriesResponse) Descriptor
deprecated
func (*TimeSeriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use TimeSeriesResponse.ProtoReflect.Descriptor instead.
func (*TimeSeriesResponse) GetData ¶
func (x *TimeSeriesResponse) GetData() []*TimeSeriesDataPoint
func (*TimeSeriesResponse) ProtoMessage ¶
func (*TimeSeriesResponse) ProtoMessage()
func (*TimeSeriesResponse) ProtoReflect ¶
func (x *TimeSeriesResponse) ProtoReflect() protoreflect.Message
func (*TimeSeriesResponse) Reset ¶
func (x *TimeSeriesResponse) Reset()
func (*TimeSeriesResponse) String ¶
func (x *TimeSeriesResponse) String() string
type TimeSeriesServiceClient ¶
type TimeSeriesServiceClient interface {
QueryTimeSeries(ctx context.Context, in *TimeSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error)
}
TimeSeriesServiceClient is the client API for TimeSeriesService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTimeSeriesServiceClient ¶
func NewTimeSeriesServiceClient(cc grpc.ClientConnInterface) TimeSeriesServiceClient
type TimeSeriesServiceServer ¶
type TimeSeriesServiceServer interface { QueryTimeSeries(context.Context, *TimeSeriesRequest) (*TimeSeriesResponse, error) // contains filtered or unexported methods }
TimeSeriesServiceServer is the server API for TimeSeriesService service. All implementations must embed UnimplementedTimeSeriesServiceServer for forward compatibility.
type UnimplementedTimeSeriesServiceServer ¶
type UnimplementedTimeSeriesServiceServer struct{}
UnimplementedTimeSeriesServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTimeSeriesServiceServer) QueryTimeSeries ¶
func (UnimplementedTimeSeriesServiceServer) QueryTimeSeries(context.Context, *TimeSeriesRequest) (*TimeSeriesResponse, error)
type UnsafeTimeSeriesServiceServer ¶
type UnsafeTimeSeriesServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTimeSeriesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TimeSeriesServiceServer will result in compilation errors.
Directories ¶
Path | Synopsis |
---|---|
Command edgecom provides a gRPC service for time series data management.
|
Command edgecom provides a gRPC service for time series data management. |
Package edgecom implements a time series data service for EdgeCom Energy.
|
Package edgecom implements a time series data service for EdgeCom Energy. |
api
Package api provides functionality for interacting with the EdgeCom Energy API.
|
Package api provides functionality for interacting with the EdgeCom Energy API. |
database
Package database implements TimescaleDB-backed time series data storage.
|
Package database implements TimescaleDB-backed time series data storage. |
database/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
grpc
Package server implements the gRPC service for time series data querying.
|
Package server implements the gRPC service for time series data querying. |
models
Package models defines the core data structures used throughout the EdgeCom service.
|
Package models defines the core data structures used throughout the EdgeCom service. |
scheduler
Package scheduler implements background data fetching and processing for time series data.
|
Package scheduler implements background data fetching and processing for time series data. |