Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ByteStorage/FlyDB
/ State
Method
State
lib/raft/raft_interface.go:7–7 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
5
// Interface is the interface that must be implemented by a raft server.
6
type
Interface
interface
{
7
State() raft.RaftState
8
Peers() ([]string, error)
9
Close() error
10
IsLeader() bool
Callers
3
State
Method · 0.65
IsLeader
Method · 0.65
IsCandidate
Method · 0.65
Implementers
1
Impl
lib/raft/raft_impl.go
Calls
no outgoing calls
Tested by
no test coverage detected