github.com/gilbsgilbs/glloq (go): glloq implements advisory locks on various backends.  Checkout https://github.com/gilbsgilbs/glloq for a quick overview.  The simplest way to use glloq is by using a data source name (DSN). UseLocker will take care of opening and closing any connection or socket, will wait for the backend to be available and will hold the lock and release it when you're finished.   The file locker allows you take a lock using a local file.
Keywords: advisory-locks|lock