{"id":18451941,"url":"https://github.com/Clivern/Cluster","last_synced_at":"2025-04-08T02:33:00.499Z","repository":{"id":38339580,"uuid":"304408572","full_name":"Clivern/Cluster","owner":"Clivern","description":"Golang Package for System Clustering.","archived":false,"fork":false,"pushed_at":"2025-01-28T16:12:45.000Z","size":244,"stargazers_count":15,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T23:34:23.920Z","etag":null,"topics":["clivern","clustering","fault-tolerance","hashicorp","high-availability","leader-election","memberlist","pubsub"],"latest_commit_sha":null,"homepage":"","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/Clivern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"custom":"buymeacoffee.com/clivern"}},"created_at":"2020-10-15T18:01:05.000Z","updated_at":"2023-01-19T17:12:47.000Z","dependencies_parsed_at":"2024-06-19T15:01:03.192Z","dependency_job_id":"40f7eea2-c586-4c96-91be-bb7e00de3705","html_url":"https://github.com/Clivern/Cluster","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FCluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FCluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FCluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FCluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clivern","download_url":"https://codeload.github.com/Clivern/Cluster/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247764854,"owners_count":20992188,"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":["clivern","clustering","fault-tolerance","hashicorp","high-availability","leader-election","memberlist","pubsub"],"created_at":"2024-11-06T07:29:48.520Z","updated_at":"2025-04-08T02:33:00.214Z","avatar_url":"https://github.com/Clivern.png","language":"Go","readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"/assets/gopher.jpg\" width=\"230\" /\u003e\n    \u003ch3 align=\"center\"\u003eCluster\u003c/h3\u003e\n    \u003cp align=\"center\"\u003eGolang Package for System Clustering.\u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n        \u003ca href=\"https://github.com/clivern/cluster/actions/workflows/build.yml\"\u003e\n            \u003cimg src=\"https://github.com/clivern/cluster/workflows/Build/badge.svg\"\u003e\n        \u003c/a\u003e\n        \u003ca href=\"https://github.com/Clivern/Cluster/releases\"\u003e\u003cimg src=\"https://img.shields.io/badge/Version-0.1.4-red.svg\"\u003e\u003c/a\u003e\n        \u003ca href=\"https://godoc.org/github.com/clivern/cluster\"\u003e\u003cimg src=\"https://godoc.org/github.com/clivern/cluster?status.svg\"\u003e\u003c/a\u003e\n        \u003ca href=\"https://goreportcard.com/report/github.com/Clivern/Cluster\"\u003e\n            \u003cimg src=\"https://goreportcard.com/badge/github.com/Clivern/Cluster?v=0.0.4\"\u003e\n        \u003c/a\u003e\n        \u003ca href=\"https://github.com/Clivern/Cluster/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/LICENSE-MIT-orange.svg\"\u003e\u003c/a\u003e\n    \u003c/p\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n\n## Documentation\n\n### Usage\n\nTo create a cluster\n\n```golang\nimport (\n    \"fmt\"\n    \"github.com/clivern/cluster\"\n)\n\n\nclus := \u0026cluster.Cluster{}\n\n// Generate a unique name\nnodeName := clus.GetNodeName()\n\n// Get a default configs\nconfig := clus.GetConfig()\nconfig.Name = nodeName\nconfig.BindPort = 0 // assign a free port\nconfig.Events = \u0026cluster.NodeEvents{}\n\n// Override configs\nclus.SetConfig(config)\n\nclus.AddLocalNode([]string{}) // or []string{\"x.x.x.x:port\"} in case of the second, third ... node\n\nfmt.Println(clus.GetLocalNode())\n\n// 2020/10/18 20:44:19 [DEBUG] memberlist: Using dynamic bind port 52053\n// A node has joined: Clivern-2.local--c5553465-2bc9-4ef1-8a83-384e5a0c4097\n// Clivern-2.local--c5553465-2bc9-4ef1-8a83-384e5a0c4097\n```\n\n## Versioning\n\nFor transparency into our release cycle and in striving to maintain backward compatibility, Cluster is maintained under the [Semantic Versioning guidelines](https://semver.org/) and release process is predictable and business-friendly.\n\nSee the [Releases section of our GitHub project](https://github.com/clivern/cluster/releases) for changelogs for each release version of Cluster. It contains summaries of the most noteworthy changes made in each release.\n\n\n## Bug tracker\n\nIf you have any suggestions, bug reports, or annoyances please report them to our issue tracker at https://github.com/clivern/cluster/issues\n\n\n## Security Issues\n\nIf you discover a security vulnerability within Cluster, please send an email to [hello@clivern.com](mailto:hello@clivern.com)\n\n\n## Contributing\n\nWe are an open source, community-driven project so please feel free to join us. see the [contributing guidelines](CONTRIBUTING.md) for more details.\n\n\n## License\n\n© 2020, Clivern. Released under [MIT License](https://opensource.org/licenses/mit-license.php).\n\n**Cluster** is authored and maintained by [@clivern](http://github.com/clivern).\n","funding_links":["buymeacoffee.com/clivern"],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FClivern%2FCluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FClivern%2FCluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FClivern%2FCluster/lists"}