Skip to content

The Go Connector of Locking-Center is a mutex point to synchronize access between different services. You can limit the execution between services and create queueing for the operation.

License

Notifications You must be signed in to change notification settings

freakmaxi/locking-center-client-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Locking-Center Go Client

The Go Connector of Locking-Center that is a mutex point to synchronize access between different services. You can limit the execution between services and create queueing for the operation.

Installation

go get github.com/freakmaxi/locking-center-client-go/mutex

Usage

package main

import (
	"fmt"
	
	"github.com/freakmaxi/locking-center-client-go/mutex"
)

func main() {
	m, err := mutex.NewLockingCenter("localhost:22119")
	if err != nil {
		panic(err)
	}
	
	m.Lock("locking-key")
	fmt.Println("Hello from locked area!")
	m.Unlock("locking-key")
}

About

The Go Connector of Locking-Center is a mutex point to synchronize access between different services. You can limit the execution between services and create queueing for the operation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages