MCPcopy Create free account
hub / github.com/crowdsecurity/crowdsec / Aggregate

Method Aggregate

pkg/database/ent/machine_query.go:340–342  ·  view source on GitHub ↗

Aggregate returns a MachineSelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

338
339// Aggregate returns a MachineSelect configured with the given aggregations.
340func (_q *MachineQuery) Aggregate(fns ...AggregateFunc) *MachineSelect {
341 return _q.Select().Aggregate(fns...)
342}
343
344func (_q *MachineQuery) prepareQuery(ctx context.Context) error {
345 for _, inter := range _q.inters {

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected