Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.78 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.78 KB

sync/netmutex - Go client to lock server

Low-level high-performance Golang client library for Taooka distributed lock manager .

GoDoc Go Report Card Travis CI AppVeyor Codeship Coverage Codecov

Installation

Using go get

$ go get github.com/MichaelMonashev/sync/netmutex

Its source will be in:

$GOPATH/src/github.com/MichaelMonashev/sync/netmutex

Documentation

See: godoc.org/github.com/MichaelMonashev/sync/netmutex

or run:

$ godoc github.com/MichaelMonashev/sync/netmutex

Performance

200000+ locks per second on 8-core Linux box.

Example

Steps:

  • connect to lock server
  • lock key
  • execute critical section
  • unlock key
  • close connection

See full example in sync/netmutex godoc