MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / Interface

Interface Interface

lib/raft/raft_interface.go:6–19  ·  view source on GitHub ↗

Interface is the interface that must be implemented by a raft server.

Source from the content-addressed store, hash-verified

4
5// Interface is the interface that must be implemented by a raft server.
6type Interface interface {
7 State() raft.RaftState
8 Peers() ([]string, error)
9 Close() error
10 IsLeader() bool
11 IsCandidate() bool
12 Leader() string
13 Apply(b []byte) error
14 AddServer(addr string) error
15 ShowDebugInfo(witch string) ([]byte, error)
16 UserSnapshot() error
17 Put(key, value []byte) error
18 Get(key []byte) ([]byte, error)
19}

Callers 22

StateMethod · 0.65
IsLeaderMethod · 0.65
IsCandidateMethod · 0.65
NewLogBoltDbStorageFunction · 0.65
CloseMethod · 0.65
ApplyMethod · 0.65
StoreLogsMethod · 0.65
SetMethod · 0.65
SetUint64Method · 0.65
SetMethod · 0.65
SetUint64Method · 0.65
StoreLogsMethod · 0.65

Implementers 1

Impllib/raft/raft_impl.go

Calls

no outgoing calls

Tested by

no test coverage detected