MCPcopy
hub / github.com/redis/go-redis / AggSumAggregator

Struct AggSumAggregator

internal/routing/aggregator.go:217–220  ·  view source on GitHub ↗

AggSumAggregator sums numeric replies from all shards.

Source from the content-addressed store, hash-verified

215
216// AggSumAggregator sums numeric replies from all shards.
217type AggSumAggregator struct {
218 err atomic.Value
219 res uberAtomic.Float64
220}
221
222func (a *AggSumAggregator) Add(result interface{}, err error) error {
223 if err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected