Lockgate is a cross-platform distributed locking library for Go. Supports distributed locks backed by Kubernetes or HTTP lock server. Supports conventional OS file locks.
Apache License 2.0
257
stars
16
forks
source link
Acquire OnWaitFunc callback support for kubernetes locker #23
OnWaitFunc signature changed from func(lock LockHandle, doWait func() error) error to func(lockName string, doWait func() error) error, because at the wait moment lock-handle is not yet fully avaiable for the kubernetes locker.
OnWaitFunc signature changed from
func(lock LockHandle, doWait func() error) error
tofunc(lockName string, doWait func() error) error
, because at the wait moment lock-handle is not yet fully avaiable for the kubernetes locker.