mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-02 10:17:10 +01:00
8 lines
278 B
Go
8 lines
278 B
Go
package plugin
|
|
|
|
// LockManager provides a shared exclusive lock for admin-managed detection/execution.
|
|
// Acquire returns a release function that must be called when the protected work finishes.
|
|
type LockManager interface {
|
|
Acquire(reason string) (release func(), err error)
|
|
}
|