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

Method Where

pkg/database/ent/event_query.go:33–36  ·  view source on GitHub ↗

Where adds a new predicate for the EventQuery builder.

(ps ...predicate.Event)

Source from the content-addressed store, hash-verified

31
32// Where adds a new predicate for the EventQuery builder.
33func (_q *EventQuery) Where(ps ...predicate.Event) *EventQuery {
34 _q.predicates = append(_q.predicates, ps...)
35 return _q
36}
37
38// Limit the number of records to be returned by this query.
39func (_q *EventQuery) Limit(limit int) *EventQuery {

Callers 1

loadOwnerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected