Sign in
apache
/
servicecomb-service-center
/
refs/tags/v1.4.3
/
.
/
pkg
/
etcdsync
tree: d7dd3de40c762f7021617ee5720bd941311efad8 [
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)