Files

12 lines
187 B
Go

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