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
+16
View File
@@ -0,0 +1,16 @@
//go:build !linux
package processlock
// Lock 仅用于让共享代码在非 Linux client 构建中保持可编译。
type Lock struct{}
// Acquire 明确拒绝在非 Linux 系统启动服务端进程锁。
func Acquire(string) (*Lock, error) {
return nil, ErrUnsupported
}
// Close 对未获取的非 Linux 锁不执行操作。
func (l *Lock) Close() error {
return nil
}