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