We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9114db3 commit 5e999c0Copy full SHA for 5e999c0
README.md
@@ -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