Sign in
apache
/
servicecomb-service-center
/
refs/tags/0.1.0
/
.
/
pkg
/
etcdsync
tree: 89d9a9a0e599ce6c2ac91f039918cbd3d42dd3ae [
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"
)
defer lock
.
Unlock
()
//
do
something g
+=
1
fmt
.
Println
(
g
)