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

Method Query

pkg/database/ent/client.go:722–728  ·  view source on GitHub ↗

Query returns a query builder for AllowListItem.

()

Source from the content-addressed store, hash-verified

720
721// Query returns a query builder for AllowListItem.
722func (c *AllowListItemClient) Query() *AllowListItemQuery {
723 return &AllowListItemQuery{
724 config: c.config,
725 ctx: &QueryContext{Type: TypeAllowListItem},
726 inters: c.Interceptors(),
727 }
728}
729
730// Get returns a AllowListItem entity by its id.
731func (c *AllowListItemClient) Get(ctx context.Context, id int) (*AllowListItem, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected