Skip to content

An etcd-based sync module, aiming at implementing the Go sync pkg over etcd for cluster-wide synchronization.

License

Notifications You must be signed in to change notification settings

leeor/etcd-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

etcd-sync

An etcd-based sync module, aiming at implementing the Go sync pkg over etcd for cluster-wide synchronization.

Installation

go get github.com/leeor/etcd-sync

Usage

At this time, only a simple mutex has been implemented.

EtcdMutex

mutex := NewMutexFromServers([]string{"http://127.0.0.1:4001"}, key, 0)
mutex.Lock()
// do some critical stuff
mutex.Unlock()

About

An etcd-based sync module, aiming at implementing the Go sync pkg over etcd for cluster-wide synchronization.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages