danl5 / goelect Goto Github PK
View Code? Open in Web Editor NEWGoelect is an open-source, self-contained Golang library designed to facilitate leader election within a distributed system.
License: Apache License 2.0
Goelect is an open-source, self-contained Golang library designed to facilitate leader election within a distributed system.
License: Apache License 2.0
proposal to give the opportunity to use your own rpc implementation
via interface?
this library cannot be used since the model package is internal
github.com/danl5/goelect/internal/model
if you don't use calls it will lead to an error
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x10 pc=0x104e72bc0]
goroutine 24 [running]:
github.com/danl5/goelect.(*Elect).handleStateTransition(0x1400012b440, {0x104f542e8, 0x10515d580}, 0x1400010e6c0)
/go/pkg/mod/github.com/danl5/[email protected]/elect.go:199 +0x2d0
created by github.com/danl5/goelect.(*Elect).Run in goroutine 3
/go/pkg/mod/github.com/danl5/[email protected]/elect.go:111 +0x21c
Leader
returns the information of the current cluster's leader
Resign
triggers a re-election
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.