package
Version:
v0.0.0-...-3386a5b
Opens a new window with list of versions in this module.
Published: Aug 17, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 25
Opens a new window with list of known importers.
Documentation
¶
type Locker interface {
Lock() Unlocker
}
func KeyLocker(key interface{}) Locker
KeyLocker provides an application-wide locker on the specified key.
NopLocker returns a Locker which always works but does nothing: it's used to effectively skip locking.
type Unlocker interface {
Unlock()
}
Unlocker Interface for unlocking a key that was provided to Lock()
Lock function provides a backwards compatible API for application-wide locking on a key
Source Files
¶
Click to show internal directories.
Click to hide internal directories.