Documentation ¶
Index ¶
- Variables
- func Aggregate(ctx context.Context, req *v1.Aggregate_Request) (*v1.Aggregate_Response, error)
- func BreakDown(ctx context.Context, req *v1.BreakDown_Request) (*v1.BreakDown_Response, error)
- func PeriodToRange(now func() time.Time, period *v1.TimePeriod) (start, end time.Time)
- func Realtime(ctx context.Context, req *v1.Realtime_Request) (*v1.Realtime_Response, error)
- func TimeSeries(ctx context.Context, req *v1.Timeseries_Request) (*v1.Timeseries_Response, error)
- func ValidByPeriod(period *v1.TimePeriod, i v1.Interval) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var InternalError = status.Error(codes.Internal, "Something went wrong")
Avoid leaking internal errors to client. The actual error is logged and this is returned back to the client.
Functions ¶
func Aggregate ¶
func Aggregate(ctx context.Context, req *v1.Aggregate_Request) (*v1.Aggregate_Response, error)
func BreakDown ¶
func BreakDown(ctx context.Context, req *v1.BreakDown_Request) (*v1.BreakDown_Response, error)
func PeriodToRange ¶
func Realtime ¶
func Realtime(ctx context.Context, req *v1.Realtime_Request) (*v1.Realtime_Response, error)
func TimeSeries ¶
func TimeSeries(ctx context.Context, req *v1.Timeseries_Request) (*v1.Timeseries_Response, error)
func ValidByPeriod ¶
func ValidByPeriod(period *v1.TimePeriod, i v1.Interval) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.