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

Method IDsX

pkg/database/ent/event_query.go:217–223  ·  view source on GitHub ↗

IDsX is like IDs, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

215
216// IDsX is like IDs, but panics if an error occurs.
217func (_q *EventQuery) IDsX(ctx context.Context) []int {
218 ids, err := _q.IDs(ctx)
219 if err != nil {
220 panic(err)
221 }
222 return ids
223}
224
225// Count returns the count of the given query.
226func (_q *EventQuery) Count(ctx context.Context) (int, error) {

Callers

nothing calls this directly

Calls 1

IDsMethod · 0.95

Tested by

no test coverage detected