Sign in
apache
/
servicecomb-service-center
/
refs/tags/v2.0.0
/
.
/
pkg
/
etcdsync
tree: f2d0c15a4924a60fe8ac84a97706732a355754d6 [
path history
]
[
tgz
]
mutex.go
mutex_test.go
README.md
pkg/etcdsync/README.md
CSE Distributed Etcd lock
example
lock, _ := etcdsync.Lock("/test",-1, true) defer lock.Unlock()
//do something
g += 1 fmt.Println(g)