feat: transaction implement
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user