{"id":19383392,"url":"https://github.com/mdouchement/hsync","last_synced_at":"2025-02-24T17:17:19.245Z","repository":{"id":79844270,"uuid":"101165020","full_name":"mdouchement/hsync","owner":"mdouchement","description":"HSync is a Proof of Concept of a shared lock across web services for very simple usecases","archived":false,"fork":false,"pushed_at":"2017-08-23T09:52:50.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T07:12:52.916Z","etag":null,"topics":["golang","http","services","synchronization"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdouchement.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-23T09:52:20.000Z","updated_at":"2019-03-03T14:38:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"54b36f22-a90f-4d5c-8314-e88b7520a241","html_url":"https://github.com/mdouchement/hsync","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/mdouchement%2Fhsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fhsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fhsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fhsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdouchement","download_url":"https://codeload.github.com/mdouchement/hsync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240521040,"owners_count":19814694,"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":["golang","http","services","synchronization"],"created_at":"2024-11-10T09:26:00.527Z","updated_at":"2025-02-24T17:17:19.225Z","avatar_url":"https://github.com/mdouchement.png","language":"Go","readme":"# HSync\n\nHSync is a Proof of Concept of a shared lock across web services for very simple usecases.\n\nHSync responds to HTTP requests to acquire and release a lock:\n\n- Acquire a lock\n\n```\nPOST /locks\n{\n  \"id\": \"my-lock\"\n}\n\n201 Created -\u003e lock acquired\n423 Locked  -\u003e lock not acquired\n```\n\n- Release a lock\n\n```\nDELETE /locks/:id\n\n204 No Content -\u003e lock released\n404 Not Found  -\u003e lock already released\n```\n\n- List all locks\n\n```\nGET /locks\n```\n\n- Show a lock\n\n```\nGET /locks/:id\n```\n\n## Installation\n\n- Golang 1.8 (maybe older versions work too)\n- `git clone` this repo\n- `go get ./...` to get the dependencies\n- `go run hsync.go lock.go` to run the server\n\n## License\n\n**MIT**\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n5. Push to the branch (git push origin my-new-feature)\n6. Create new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fhsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdouchement%2Fhsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fhsync/lists"}