tree: a34a3244f77cc8c8038ccc5ff654ac2c2acd54a4 [path history] [tgz]
  1. etcdsync_suite_test.go
  2. mutex.go
  3. mutex_test.go
  4. 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)