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

Method Query

pkg/database/ent/client.go:1568–1574  ·  view source on GitHub ↗

Query returns a query builder for Machine.

()

Source from the content-addressed store, hash-verified

1566
1567// Query returns a query builder for Machine.
1568func (c *MachineClient) Query() *MachineQuery {
1569 return &MachineQuery{
1570 config: c.config,
1571 ctx: &QueryContext{Type: TypeMachine},
1572 inters: c.Interceptors(),
1573 }
1574}
1575
1576// Get returns a Machine entity by its id.
1577func (c *MachineClient) Get(ctx context.Context, id int) (*Machine, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected