Files
seaweedfs/weed/admin/plugin/lock_manager.go
T

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)
}