store

package
v4.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

type Closer interface {
	Close() error
}

type Store

type Store interface {
	Tx
	Closer
}

type Tx

type Tx interface {
	// 开启事务,并返回新的 Context
	BeginTx(ctx context.Context) context.Context

	// 提交事务
	CommitTx(ctx context.Context)

	// 回滚事务
	RollbackTx(ctx context.Context)

	// 获取 error
	GetError(ctx context.Context) error
}

Tx 事务处理方法接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL