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

Method Query

pkg/database/ent/client.go:871–877  ·  view source on GitHub ↗

Query returns a query builder for Bouncer.

()

Source from the content-addressed store, hash-verified

869
870// Query returns a query builder for Bouncer.
871func (c *BouncerClient) Query() *BouncerQuery {
872 return &BouncerQuery{
873 config: c.config,
874 ctx: &QueryContext{Type: TypeBouncer},
875 inters: c.Interceptors(),
876 }
877}
878
879// Get returns a Bouncer entity by its id.
880func (c *BouncerClient) Get(ctx context.Context, id int) (*Bouncer, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected