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

Interface Committer

pkg/database/ent/tx.go:48–50  ·  view source on GitHub ↗

Committer is the interface that wraps the Commit method.

Source from the content-addressed store, hash-verified

46type (
47 // Committer is the interface that wraps the Commit method.
48 Committer interface {
49 Commit(context.Context, *Tx) error
50 }
51
52 // The CommitFunc type is an adapter to allow the use of ordinary
53 // function as a Committer. If f is a function with the appropriate

Callers 4

CommitMethod · 0.95
AddToAllowlistMethod · 0.65
createAlertBatchMethod · 0.65

Implementers 2

Txpkg/database/ent/tx.go
txDriverpkg/database/ent/tx.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…