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

Method Where

pkg/database/ent/alert_query.go:41–44  ·  view source on GitHub ↗

Where adds a new predicate for the AlertQuery builder.

(ps ...predicate.Alert)

Source from the content-addressed store, hash-verified

39
40// Where adds a new predicate for the AlertQuery builder.
41func (_q *AlertQuery) Where(ps ...predicate.Alert) *AlertQuery {
42 _q.predicates = append(_q.predicates, ps...)
43 return _q
44}
45
46// Limit the number of records to be returned by this query.
47func (_q *AlertQuery) Limit(limit int) *AlertQuery {

Callers 4

loadDecisionsMethod · 0.95
loadEventsMethod · 0.95
loadMetasMethod · 0.95
loadOwnerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected