MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / CommitFunc

FuncType CommitFunc

app/controlplane/pkg/data/ent/tx.go:73–73  ·  view source on GitHub ↗

The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.

func(context.Context, *Tx) error

Source from the content-addressed store, hash-verified

71 // function as a Committer. If f is a function with the appropriate
72 // signature, CommitFunc(f) is a Committer that calls f.
73 CommitFunc func(context.Context, *Tx) error
74
75 // CommitHook defines the "commit middleware". A function that gets a Committer
76 // and returns a Committer. For example:

Callers 1

CommitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected