proto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeSeriesService_QueryTimeSeries_FullMethodName = "/edgecom.TimeSeriesService/QueryTimeSeries"
)

Variables

View Source
var File_proto_timeseries_proto protoreflect.FileDescriptor
View Source
var TimeSeriesService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "edgecom.TimeSeriesService",
	HandlerType: (*TimeSeriesServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "QueryTimeSeries",
			Handler:    _TimeSeriesService_QueryTimeSeries_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/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 (*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 (*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.

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

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.

Jump to

Keyboard shortcuts

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