feat: transaction implement

This commit is contained in:
2026-08-15 02:30:36 +08:00
parent 6515c93378
commit b4e18c6f0c
21 changed files with 3886 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
package processlock
import "errors"
var (
// ErrAlreadyLocked 表示另一个 serve 进程已经持有内核锁。
ErrAlreadyLocked = errors.New("process lock is already held")
// ErrUnsupported 表示当前操作系统不能运行服务端进程锁。
ErrUnsupported = errors.New("process lock is not supported on this operating system")
)