{"id":16195113,"url":"https://github.com/ashcrow/consuloretcd","last_synced_at":"2025-04-07T15:54:04.218Z","repository":{"id":28317659,"uuid":"31830567","full_name":"ashcrow/consuloretcd","owner":"ashcrow","description":"A simplistic key/value abstraction for use with Consul and Etcd.","archived":false,"fork":false,"pushed_at":"2015-06-16T11:14:42.000Z","size":211,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-13T18:34:44.982Z","etag":null,"topics":[],"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/ashcrow.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":"2015-03-07T22:52:36.000Z","updated_at":"2015-04-04T13:14:54.000Z","dependencies_parsed_at":"2022-08-17T17:15:38.449Z","dependency_job_id":null,"html_url":"https://github.com/ashcrow/consuloretcd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashcrow%2Fconsuloretcd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashcrow%2Fconsuloretcd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashcrow%2Fconsuloretcd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashcrow%2Fconsuloretcd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashcrow","download_url":"https://codeload.github.com/ashcrow/consuloretcd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685594,"owners_count":20979084,"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":[],"created_at":"2024-10-10T08:26:18.324Z","updated_at":"2025-04-07T15:54:04.192Z","avatar_url":"https://github.com/ashcrow.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# consuloretcd\n\nA simplistic key/value abstraction for use with Consul and Etcd.\n\n**Warning**: This needs a lot of cleaning up and code consolidation.\n\n**Warning**: The api will probably change a lot.\n\n## Install\n\n```bash\ngo get gopkg.in/ashcrow/consuloretcd.v1\n```\n## License\nMIT. See LICENSE.\n\n## Features\n* Consistent key/value API\n* Consistent TTL support\n\n## Documentation\nRead the docs at godoc: http://godoc.org/github.com/ashcrow/consuloretcd\n\n## Example\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"gopkg.in/ashcrow/consuloretcd.v1\"\n\t\"net/http\"\n)\n\n// Example\nfunc main() {\n\t// You must provide and http.Client\n\tclient := http.Client{}\n\n    // Consul example. Replace \"consul\" with \"etcd\" to use etcd.\n    consul, _ := consuloretcd.NewClient(\n        \"consul\",\n\t\tconsuloretcd.ConsulDefaultConfig)\n\n\t// Get a key in consul\n\tconsul_res1, _ := consul.GetKey(\"test\", KeyOptions{})\n\tfmt.Println(consul_res1)\n\n\t// Set a key in consul\n\tconsul_res2,  _ := consul.PutKey(\"test\", \"saa\", KeyOptions{})\n\tfmt.Println(consul_res2)\n\n\t// Delete a key in consul\n\tif err := consul.DeleteKey(\"test\", KeyOptions{}); err != nil {\n\t\tfmt.Println(err)\n\t}\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashcrow%2Fconsuloretcd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashcrow%2Fconsuloretcd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashcrow%2Fconsuloretcd/lists"}