mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-20 13:30:46 +02: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)
|
|
}
|