Skip to content

Commit 5e999c0

Browse files
committed
Added Readme
1 parent 9114db3 commit 5e999c0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Locking-Center Go Client
2+
3+
The Go Connector of Locking-Center that is a mutex point to synchronize access between different services. You can limit the
4+
execution between services and create queueing for the operation.
5+
6+
#### Installation
7+
8+
`go get github.com/freakmaxi/locking-center-client-go/mutex`
9+
10+
#### Usage
11+
12+
```go
13+
package main
14+
15+
import (
16+
"fmt"
17+
18+
"github.com/freakmaxi/locking-center-client-go/mutex"
19+
)
20+
21+
func main() {
22+
m, err := mutex.NewLockingCenter("localhost:22119")
23+
if err != nil {
24+
panic(err)
25+
}
26+
27+
m.Lock("locking-key")
28+
fmt.Println("Hello from locked area!")
29+
m.Unlock("locking-key")
30+
}
31+
```

0 commit comments

Comments
 (0)