MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / Query

Method Query

pkg/database/ent/client.go:376–382  ·  view source on GitHub ↗

Query returns a query builder for Alert.

()

Source from the content-addressed store, hash-verified

374
375// Query returns a query builder for Alert.
376func (c *AlertClient) Query() *AlertQuery {
377 return &AlertQuery{
378 config: c.config,
379 ctx: &QueryContext{Type: TypeAlert},
380 inters: c.Interceptors(),
381 }
382}
383
384// Get returns a Alert entity by its id.
385func (c *AlertClient) Get(ctx context.Context, id int) (*Alert, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected