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

Method AllX

pkg/database/ent/alert_query.go:270–276  ·  view source on GitHub ↗

AllX is like All, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

268
269// AllX is like All, but panics if an error occurs.
270func (_q *AlertQuery) AllX(ctx context.Context) []*Alert {
271 nodes, err := _q.All(ctx)
272 if err != nil {
273 panic(err)
274 }
275 return nodes
276}
277
278// IDs executes the query and returns a list of Alert IDs.
279func (_q *AlertQuery) IDs(ctx context.Context) (ids []int, err error) {

Callers

nothing calls this directly

Calls 1

AllMethod · 0.95

Tested by

no test coverage detected