MCPcopy
hub / github.com/crowdsecurity/crowdsec / Where

Method Where

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

Where adds a new predicate for the MetaQuery builder.

(ps ...predicate.Meta)

Source from the content-addressed store, hash-verified

31
32// Where adds a new predicate for the MetaQuery builder.
33func (_q *MetaQuery) Where(ps ...predicate.Meta) *MetaQuery {
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 *MetaQuery) Limit(limit int) *MetaQuery {

Callers 15

DeleteAllowListMethod · 0.45
DeleteAllowListByIDMethod · 0.45
GetAllowListMethod · 0.45
GetAllowListByIDMethod · 0.45
AddToAllowlistMethod · 0.45
RemoveFromAllowlistMethod · 0.45
UpdateAllowlistMetaMethod · 0.45
ReplaceAllowlistMethod · 0.45
IsAllowlistedByMethod · 0.45
applyAllowlistBatchMethod · 0.45
CreateOrUpdateAlertMethod · 0.45

Calls

no outgoing calls

Tested by 4

TestAPICWhitelistsFunction · 0.36
TestAPICPullTopFunction · 0.36