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

Method Client

pkg/database/ent/mutation.go:8433–8437  ·  view source on GitHub ↗

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

()

Source from the content-addressed store, hash-verified

8431// Client returns a new `ent.Client` from the mutation. If the mutation was
8432// executed in a transaction (ent.Tx), a transactional client is returned.
8433func (m LockMutation) Client() *Client {
8434 client := &Client{config: m.config}
8435 client.init()
8436 return client
8437}
8438
8439// Tx returns an `ent.Tx` for mutations that were executed in transactions;
8440// it returns an error otherwise.

Callers 12

IDsMethod · 0.95
withAlertIDFunction · 0.45
withAllowListIDFunction · 0.45
withAllowListItemIDFunction · 0.45
withBouncerIDFunction · 0.45
withConfigItemIDFunction · 0.45
withDecisionIDFunction · 0.45
withEventIDFunction · 0.45
withLockIDFunction · 0.45
withMachineIDFunction · 0.45
withMetaIDFunction · 0.45
withMetricIDFunction · 0.45

Calls 1

initMethod · 0.95

Tested by

no test coverage detected