mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-30 23:33:06 +08:00
74de8825f6
Signed-off-by: kubbot & kubecub <3293172751ysy@gmail.com>
12 lines
196 B
Go
12 lines
196 B
Go
package tx
|
|
|
|
import "context"
|
|
|
|
type Tx interface {
|
|
Transaction(fn func(tx any) error) error
|
|
}
|
|
|
|
type CtxTx interface {
|
|
Transaction(ctx context.Context, fn func(ctx context.Context) error) error
|
|
}
|