{"id":24835630,"url":"https://github.com/medigo/go-dlm","last_synced_at":"2025-07-27T02:04:18.605Z","repository":{"id":57502294,"uuid":"67786518","full_name":"MEDIGO/go-dlm","owner":"MEDIGO","description":"A Distributed Lock Manager abstraction library for Go","archived":false,"fork":false,"pushed_at":"2019-02-12T10:03:28.000Z","size":13,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-06-21T13:56:00.658Z","etag":null,"topics":["distributed-locks","dlm","go","locks"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MEDIGO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-09T09:37:06.000Z","updated_at":"2024-02-28T22:06:29.000Z","dependencies_parsed_at":"2022-09-13T08:01:58.040Z","dependency_job_id":null,"html_url":"https://github.com/MEDIGO/go-dlm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MEDIGO%2Fgo-dlm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MEDIGO%2Fgo-dlm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MEDIGO%2Fgo-dlm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MEDIGO%2Fgo-dlm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MEDIGO","download_url":"https://codeload.github.com/MEDIGO/go-dlm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236464790,"owners_count":19152979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["distributed-locks","dlm","go","locks"],"created_at":"2025-01-31T04:34:42.482Z","updated_at":"2025-01-31T04:34:43.114Z","avatar_url":"https://github.com/MEDIGO.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-dlm\n\n[![GoDoc](https://godoc.org/github.com/MEDIGO/go-dlm?status.svg)](https://godoc.org/github.com/MEDIGO/go-dlm)\n[![CircleCI](https://circleci.com/gh/MEDIGO/go-dlm.svg?style=shield)](https://circleci.com/gh/MEDIGO/go-dlm)\n\nThis package provides an abstraction library for multiple Distributed Lock Manager backends.\n\nAs the moment, go-dlm only supports [Redis](http://redis.io/) and an in-memory implementation intended to be used during development.\n\n## Usage\n\n```go\n\n// Create a DLM\ndlm, err := NewRedisLock(\"localhost:6379\")\nif err != nil {\n    panic(err)\n}\n\n// Create a lock\nlock, err := dlm.NewLock(\"resource\", nil)\nif err != nil {\n    panic(err)\n}\n\n// Acquire the lock\nif err := lock.Lock(); err != nil {\n    panic(err)\n}\n\n// Release the lock\nif err := lock.Unlock(); err != nil {\n    panic(err)\n}\n```\n\n## Copyright and license\n\nCopyright © 2016 MEDIGO GmbH. go-dlm is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedigo%2Fgo-dlm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmedigo%2Fgo-dlm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedigo%2Fgo-dlm/lists"}