MCPcopy
hub / github.com/crowdsecurity/crowdsec / Query

Method Query

pkg/database/ent/client.go:1137–1143  ·  view source on GitHub ↗

Query returns a query builder for Decision.

()

Source from the content-addressed store, hash-verified

1135
1136// Query returns a query builder for Decision.
1137func (c *DecisionClient) Query() *DecisionQuery {
1138 return &DecisionQuery{
1139 config: c.config,
1140 ctx: &QueryContext{Type: TypeDecision},
1141 inters: c.Interceptors(),
1142 }
1143}
1144
1145// Get returns a Decision entity by its id.
1146func (c *DecisionClient) Get(ctx context.Context, id int) (*Decision, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected