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

Struct SpecialAggregator

internal/routing/aggregator.go:906–911  ·  view source on GitHub ↗

SpecialAggregator provides a registry for command-specific aggregation logic.

Source from the content-addressed store, hash-verified

904
905// SpecialAggregator provides a registry for command-specific aggregation logic.
906type SpecialAggregator struct {
907 mu sync.Mutex
908 aggregatorFunc func([]interface{}, []error) (interface{}, error)
909 results []interface{}
910 errors []error
911}
912
913func (a *SpecialAggregator) add(result interface{}, err error) error {
914 a.results = append(a.results, result)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected