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