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

Method Query

pkg/database/ent/client.go:573–579  ·  view source on GitHub ↗

Query returns a query builder for AllowList.

()

Source from the content-addressed store, hash-verified

571
572// Query returns a query builder for AllowList.
573func (c *AllowListClient) Query() *AllowListQuery {
574 return &AllowListQuery{
575 config: c.config,
576 ctx: &QueryContext{Type: TypeAllowList},
577 inters: c.Interceptors(),
578 }
579}
580
581// Get returns a AllowList entity by its id.
582func (c *AllowListClient) Get(ctx context.Context, id int) (*AllowList, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected