package
Version:
v0.0.0-...-817d39a
Opens a new window with list of versions in this module.
Published: Apr 23, 2021
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Connect conncet to ZK cluster
PConnect connect to ZK cluster
Dlocker distributed locker
NewLocker create instance of ZK lock
Lock just list mutex.Lock()
TryLock try lock and return error immediately if fail
Unlock just list mutex.Unlock(), return false when zookeeper connection error or locker timeout
Source Files
¶
Click to show internal directories.
Click to hide internal directories.