Skip to content

Commit

Permalink
Added GROUPBY/REDUCE, ALIGN, FILTER_BY_TS, FILTER_BY_VALUE, SELECTED_…
Browse files Browse the repository at this point in the history
…LABELS support for mrange/mrevrange,range/revrange (#103)

* [add] Added ALIGN, FILTER_BY_TS, FILTER_BY_VALUE, SELECTED_LABELS support for mrange/mrevrange,range/revrange

* [fix] Fixed malformed example suffix on new examples

* [fix] Fixed missing godoc standards on the added methods

* [add] Added support for GROUPBY REDUCE to TS.MRANGE/MREVRANGE
  • Loading branch information
filipecosta90 authored Aug 4, 2021
1 parent 7d35497 commit 421ca73
Show file tree
Hide file tree
Showing 7 changed files with 558 additions and 26 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ doc:
get:
$(GOGET) -t -v ./...

test: get
fmt:
$(GOFMT) ./...

test: get fmt
$(GOTEST) -count=1 -race -covermode=atomic ./...

coverage: get test
Expand Down
9 changes: 9 additions & 0 deletions common.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,18 @@ import (
//go:generate stringer -type=AggregationType
type AggregationType string

//go:generate stringer -type=ReducerType
type ReducerType string

//go:generate stringer -type=DuplicatePolicyType
type DuplicatePolicyType string

const (
SumReducer ReducerType = "SUM"
MinReducer ReducerType = "MIN"
MaxReducer ReducerType = "MAX"
)

const (
AvgAggregation AggregationType = "AVG"
SumAggregation AggregationType = "SUM"
Expand Down
Loading

0 comments on commit 421ca73

Please sign in to comment.