MCPcopy Create free account
hub / github.com/DoNewsCode/core / Resign

Method Resign

leader/election.go:20–20  ·  view source on GitHub ↗

Resign makes the current node a follower.

(context.Context)

Source from the content-addressed store, hash-verified

18 Campaign(ctx context.Context) error
19 // Resign makes the current node a follower.
20 Resign(context.Context) error
21}
22
23// Election is a struct that controls the leader election. Whenever the leader

Callers 4

ProvideRunGroupMethod · 0.65
ResignMethod · 0.65
ResignMethod · 0.65
TestNewEtcdDriverFunction · 0.65

Implementers 5

mockDriverleader/dependency_test.go
Electionleader/election.go
AlwaysLeaderDriverleader/example_providers_test.go
EtcdDriverleader/leaderetcd/etcd.go
RedisDriverleader/leaderredis/redis.go

Calls

no outgoing calls

Tested by 1

TestNewEtcdDriverFunction · 0.52