https://github.com/dynata/go-dbmutex
Mutex implemented via DB table
https://github.com/dynata/go-dbmutex
Last synced: 4 months ago
JSON representation
Mutex implemented via DB table
- Host: GitHub
- URL: https://github.com/dynata/go-dbmutex
- Owner: dynata
- License: apache-2.0
- Created: 2020-11-01T15:17:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-23T16:02:29.000Z (over 5 years ago)
- Last Synced: 2023-07-27T22:04:21.672Z (almost 3 years ago)
- Language: Go
- Size: 60.5 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-dbmutex
Package dbmutex implements a DB-based mutex that can be used to synchronize work
among multiple processes.
### Features
- works with mysql and postgres
- should work with database failovers (haven't verified this)
- mutex lock and unlock operations can timeout if desired
- callers can be notified when mutexes are unlocked
- minimal dependencies
### Install
`go get github.com/dynata/go-dbmutex`
### Documentation
[](https://pkg.go.dev/github.com/dynata/go-dbmutex)
Full `godoc` style documentation for the package can be viewed online without installing this package by
using the [GoDoc site](https://pkg.go.dev/github.com/dynata/go-dbmutex).
### Disclaimer
YOU ARE USING THIS APPLICATION AT YOUR OWN RISK. DYNATA MAKES NO WARRANTIES OR REPRESENTATIONS ABOUT THIS APPLICATION.
THIS APPLICATION IS PROVIDED TO YOU “AS IS”. DYNATA HEREBY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED WITH RESPECT
TO THE APPLICATION, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS OF PURPOSE,
NON-INFRINGEMENT AND ANY IMPLIED WARRANTIES ARISING OUT OF A COURSE OF PERFORMANCE, DEALING, OR TRADE USAGE.
TO THE EXTENT DYNATA MAY NOT, AS A MATTER OF APPLICABLE LAW, DISCLAIM ANY WARRANTY, THE SCOPE AND DURATION OF SUCH
WARRANTY SHALL BE LIMITED TO THE MINIMUM PERMITTED UNDER SUCH APPLICABLE LAW. YOU WILL INDEMNIFY, DEFEND AND HOLD
HARMLESS DYNATA AND ITS AFFILIATES, EMPLOYEES, OFFICERS AND CONTRACTORS FROM ANY THIRD PARTY CLAIM ARISING FROM
YOUR USE OF THIS APPLICATION.