Versions in this module Expand all Collapse all v0 v0.10.2 Apr 29, 2026 v0.10.1 Apr 1, 2026 v0.10.0 Mar 26, 2026 Changes in this version + func PartialToFieldValues[N Number](af modelv1.AggregationFunction, p Partial[N]) ([]*modelv1.FieldValue, error) + type Map interface + In func(N) + Partial func() Partial[N] + Reset func() + Val func() N + func NewMap[N Number](af modelv1.AggregationFunction) (Map[N], error) + type Partial struct + Count N + Value N + func FieldValuesToPartial[N Number](af modelv1.AggregationFunction, fvs []*modelv1.FieldValue) (Partial[N], error) + type Reduce interface + Combine func(Partial[N]) + Reset func() + Val func() N + func NewReduce[N Number](af modelv1.AggregationFunction) (Reduce[N], error) v0.9.0 Nov 24, 2025 v0.8.0 Apr 2, 2025 v0.7.1 Nov 12, 2024 v0.7.0 Oct 7, 2024 v0.7.0-rc0 Sep 13, 2024 v0.6.1 May 30, 2024 v0.6.0 May 9, 2024 v0.5.0 Oct 17, 2023 v0.4.0 Jun 28, 2023 v0.3.1 Feb 21, 2023 v0.3.0 Feb 6, 2023 Changes in this version + func FromFieldValue(fieldValue *modelv1.FieldValue) (N, error) + func ToFieldValue(value N) (*modelv1.FieldValue, error) + type Func interface + In func(N) + Reset func() + Val func() N + func NewFunc(af modelv1.AggregationFunction) (Func[N], error) + type Number interface v0.2.0 Nov 5, 2022 v0.1.0 Jun 2, 2022 Changes in this version + var ErrUnknownFunc = errors.New("unknown aggregation function") + type Int64Func interface + In func(int64) + Reset func() + Val func() int64 + func NewInt64Func(af modelv1.AggregationFunction) (Int64Func, error)