package transaction import ( "context" ) type Callback = func(ctx context.Context) (any, error) type Transaction interface { Execute(ctx context.Context, cb Callback) (any, error) }