SYMBOL INDEX (929 symbols across 65 files) FILE: api.go constant SuggestedMaxDataSize (line 30) | SuggestedMaxDataSize = 512 * 1024 type Raft (line 79) | type Raft struct method restoreSnapshot (line 631) | func (r *Raft) restoreSnapshot() error { method tryRestoreSingleSnapshot (line 677) | func (r *Raft) tryRestoreSingleSnapshot(snapshot *SnapshotMeta) bool { method config (line 709) | func (r *Raft) config() Config { method ReloadConfig (line 717) | func (r *Raft) ReloadConfig(rc ReloadableConfig) error { method ReloadableConfig (line 749) | func (r *Raft) ReloadableConfig() ReloadableConfig { method BootstrapCluster (line 769) | func (r *Raft) BootstrapCluster(configuration Configuration) Future { method Leader (line 786) | func (r *Raft) Leader() ServerAddress { method LeaderWithID (line 796) | func (r *Raft) LeaderWithID() (ServerAddress, ServerID) { method Apply (line 819) | func (r *Raft) Apply(cmd []byte, timeout time.Duration) ApplyFuture { method ApplyLog (line 826) | func (r *Raft) ApplyLog(log Log, timeout time.Duration) ApplyFuture { method Barrier (line 859) | func (r *Raft) Barrier(timeout time.Duration) Future { method VerifyLeader (line 883) | func (r *Raft) VerifyLeader() Future { method GetConfiguration (line 897) | func (r *Raft) GetConfiguration() ConfigurationFuture { method AddPeer (line 908) | func (r *Raft) AddPeer(peer ServerAddress) Future { method RemovePeer (line 926) | func (r *Raft) RemovePeer(peer ServerAddress) Future { method AddVoter (line 946) | func (r *Raft) AddVoter(id ServerID, address ServerAddress, prevIndex ... method AddNonvoter (line 964) | func (r *Raft) AddNonvoter(id ServerID, address ServerAddress, prevInd... method RemoveServer (line 980) | func (r *Raft) RemoveServer(id ServerID, prevIndex uint64, timeout tim... method DemoteVoter (line 997) | func (r *Raft) DemoteVoter(id ServerID, prevIndex uint64, timeout time... method Shutdown (line 1012) | func (r *Raft) Shutdown() Future { method Snapshot (line 1030) | func (r *Raft) Snapshot() SnapshotFuture { method Restore (line 1056) | func (r *Raft) Restore(meta *SnapshotMeta, reader io.Reader, timeout t... method State (line 1102) | func (r *Raft) State() RaftState { method LeaderCh (line 1117) | func (r *Raft) LeaderCh() <-chan bool { method String (line 1122) | func (r *Raft) String() string { method LastContact (line 1128) | func (r *Raft) LastContact() time.Time { method Stats (line 1160) | func (r *Raft) Stats() map[string]string { method CurrentTerm (line 1221) | func (r *Raft) CurrentTerm() uint64 { method LastIndex (line 1227) | func (r *Raft) LastIndex() uint64 { method CommitIndex (line 1234) | func (r *Raft) CommitIndex() uint64 { method AppliedIndex (line 1245) | func (r *Raft) AppliedIndex() uint64 { method LeadershipTransfer (line 1261) | func (r *Raft) LeadershipTransfer() Future { method LeadershipTransferToServer (line 1276) | func (r *Raft) LeadershipTransferToServer(id ServerID, address ServerA... function BootstrapCluster (line 239) | func BootstrapCluster(conf *Config, logs LogStore, stable StableStore, function RecoverCluster (line 313) | func RecoverCluster(conf *Config, fsm FSM, logs LogStore, stable StableS... function GetConfiguration (line 445) | func GetConfiguration(conf *Config, fsm FSM, logs LogStore, stable Stabl... function HasExistingState (line 462) | func HasExistingState(logs LogStore, stable StableStore, snaps SnapshotS... function NewRaft (line 500) | func NewRaft(conf *Config, fsm FSM, logs LogStore, stable StableStore, s... FILE: bench/bench.go function FirstIndex (line 17) | func FirstIndex(b *testing.B, store raft.LogStore) { function LastIndex (line 34) | func LastIndex(b *testing.B, store raft.LogStore) { function GetLog (line 51) | func GetLog(b *testing.B, store raft.LogStore) { function StoreLog (line 70) | func StoreLog(b *testing.B, store raft.LogStore) { function StoreLogs (line 80) | func StoreLogs(b *testing.B, store raft.LogStore) { function DeleteRange (line 99) | func DeleteRange(b *testing.B, store raft.LogStore) { function Set (line 125) | func Set(b *testing.B, store raft.StableStore) { function Get (line 134) | func Get(b *testing.B, store raft.StableStore) { function SetUint64 (line 151) | func SetUint64(b *testing.B, store raft.StableStore) { function GetUint64 (line 160) | func GetUint64(b *testing.B, store raft.StableStore) { FILE: bench_test.go function BenchmarkStoreLogInMem (line 13) | func BenchmarkStoreLogInMem(b *testing.B) { FILE: commands.go type RPCHeader (line 10) | type RPCHeader struct type WithRPCHeader (line 21) | type WithRPCHeader interface type AppendEntriesRequest (line 27) | type AppendEntriesRequest struct method GetRPCHeader (line 48) | func (r *AppendEntriesRequest) GetRPCHeader() RPCHeader { type AppendEntriesResponse (line 54) | type AppendEntriesResponse struct method GetRPCHeader (line 72) | func (r *AppendEntriesResponse) GetRPCHeader() RPCHeader { type RequestVoteRequest (line 78) | type RequestVoteRequest struct method GetRPCHeader (line 98) | func (r *RequestVoteRequest) GetRPCHeader() RPCHeader { type RequestVoteResponse (line 103) | type RequestVoteResponse struct method GetRPCHeader (line 119) | func (r *RequestVoteResponse) GetRPCHeader() RPCHeader { type RequestPreVoteRequest (line 125) | type RequestPreVoteRequest struct method GetRPCHeader (line 137) | func (r *RequestPreVoteRequest) GetRPCHeader() RPCHeader { type RequestPreVoteResponse (line 142) | type RequestPreVoteResponse struct method GetRPCHeader (line 153) | func (r *RequestPreVoteResponse) GetRPCHeader() RPCHeader { type InstallSnapshotRequest (line 159) | type InstallSnapshotRequest struct method GetRPCHeader (line 186) | func (r *InstallSnapshotRequest) GetRPCHeader() RPCHeader { type InstallSnapshotResponse (line 192) | type InstallSnapshotResponse struct method GetRPCHeader (line 200) | func (r *InstallSnapshotResponse) GetRPCHeader() RPCHeader { type TimeoutNowRequest (line 206) | type TimeoutNowRequest struct method GetRPCHeader (line 211) | func (r *TimeoutNowRequest) GetRPCHeader() RPCHeader { type TimeoutNowResponse (line 216) | type TimeoutNowResponse struct method GetRPCHeader (line 221) | func (r *TimeoutNowResponse) GetRPCHeader() RPCHeader { FILE: commitment.go type commitment (line 14) | type commitment struct method setConfiguration (line 53) | func (c *commitment) setConfiguration(configuration Configuration) { method getCommitIndex (line 67) | func (c *commitment) getCommitIndex() uint64 { method match (line 77) | func (c *commitment) match(server ServerID, matchIndex uint64) { method recalculate (line 88) | func (c *commitment) recalculate() { function newCommitment (line 35) | func newCommitment(commitCh chan struct{}, configuration Configuration, ... FILE: commitment_test.go function makeConfiguration (line 10) | func makeConfiguration(voters []string) Configuration { function voters (line 23) | func voters(n int) Configuration { function TestCommitment_setVoters (line 31) | func TestCommitment_setVoters(t *testing.T) { function TestCommitment_match_max (line 54) | func TestCommitment_match_max(t *testing.T) { function TestCommitment_match_nonVoting (line 69) | func TestCommitment_match_nonVoting(t *testing.T) { function TestCommitment_recalculate (line 94) | func TestCommitment_recalculate(t *testing.T) { function TestCommitment_recalculate_startIndex (line 156) | func TestCommitment_recalculate_startIndex(t *testing.T) { function TestCommitment_noVoterSanity (line 185) | func TestCommitment_noVoterSanity(t *testing.T) { function TestCommitment_singleVoter (line 221) | func TestCommitment_singleVoter(t *testing.T) { FILE: config.go type ProtocolVersion (line 99) | type ProtocolVersion constant ProtocolVersionMin (line 103) | ProtocolVersionMin ProtocolVersion = 0 constant ProtocolVersionMax (line 105) | ProtocolVersionMax = 3 type SnapshotVersion (line 128) | type SnapshotVersion constant SnapshotVersionMin (line 132) | SnapshotVersionMin SnapshotVersion = 0 constant SnapshotVersionMax (line 134) | SnapshotVersionMax = 1 type Config (line 138) | type Config struct method getOrCreateLogger (line 247) | func (conf *Config) getOrCreateLogger() hclog.Logger { type ReloadableConfig (line 267) | type ReloadableConfig struct method apply (line 297) | func (rc *ReloadableConfig) apply(to Config) Config { method fromConfig (line 307) | func (rc *ReloadableConfig) fromConfig(from Config) { function DefaultConfig (line 316) | func DefaultConfig() *Config { function ValidateConfig (line 333) | func ValidateConfig(config *Config) error { FILE: configuration.go type ServerSuffrage (line 9) | type ServerSuffrage method String (line 26) | func (s ServerSuffrage) String() string { constant Voter (line 15) | Voter ServerSuffrage = iota constant Nonvoter (line 18) | Nonvoter constant Staging (line 23) | Staging type ConfigurationStore (line 44) | type ConfigurationStore interface type ServerID (line 55) | type ServerID type ServerAddress (line 58) | type ServerAddress type Server (line 61) | type Server struct type Configuration (line 74) | type Configuration struct method Clone (line 79) | func (c *Configuration) Clone() (copy Configuration) { type ConfigurationChangeCommand (line 86) | type ConfigurationChangeCommand method String (line 106) | func (c ConfigurationChangeCommand) String() string { constant AddVoter (line 90) | AddVoter ConfigurationChangeCommand = iota constant AddNonvoter (line 92) | AddNonvoter constant DemoteVoter (line 94) | DemoteVoter constant RemoveServer (line 96) | RemoveServer constant Promote (line 100) | Promote constant AddStaging (line 103) | AddStaging = 0 type configurationChangeRequest (line 125) | type configurationChangeRequest struct type configurations (line 146) | type configurations struct method Clone (line 160) | func (c *configurations) Clone() (copy configurations) { function hasVote (line 170) | func hasVote(configuration Configuration, id ServerID) bool { function inConfiguration (line 181) | func inConfiguration(configuration Configuration, id ServerID) bool { function checkConfiguration (line 192) | func checkConfiguration(configuration Configuration) error { function nextConfiguration (line 224) | func nextConfiguration(current Configuration, currentIndex uint64, chang... function encodePeers (line 307) | func encodePeers(configuration Configuration, trans Transport) []byte { function decodePeers (line 329) | func decodePeers(buf []byte, trans Transport) (Configuration, error) { function EncodeConfiguration (line 352) | func EncodeConfiguration(configuration Configuration) []byte { function DecodeConfiguration (line 362) | func DecodeConfiguration(buf []byte) Configuration { FILE: configuration_test.go function TestConfiguration_Configuration_Clone (line 35) | func TestConfiguration_Configuration_Clone(t *testing.T) { function TestConfiguration_configurations_Clone (line 46) | func TestConfiguration_configurations_Clone(t *testing.T) { function TestConfiguration_hasVote (line 65) | func TestConfiguration_hasVote(t *testing.T) { function TestConfiguration_checkConfiguration (line 80) | func TestConfiguration_checkConfiguration(t *testing.T) { function TestConfiguration_nextConfiguration_table (line 232) | func TestConfiguration_nextConfiguration_table(t *testing.T) { function TestConfiguration_nextConfiguration_prevIndex (line 251) | func TestConfiguration_nextConfiguration_prevIndex(t *testing.T) { function TestConfiguration_nextConfiguration_checkConfiguration (line 289) | func TestConfiguration_nextConfiguration_checkConfiguration(t *testing.T) { function TestConfiguration_encodeDecodePeers (line 301) | func TestConfiguration_encodeDecodePeers(t *testing.T) { function TestConfiguration_encodeDecodeConfiguration (line 325) | func TestConfiguration_encodeDecodeConfiguration(t *testing.T) { FILE: discard_snapshot.go type DiscardSnapshotStore (line 16) | type DiscardSnapshotStore struct method Create (line 32) | func (d *DiscardSnapshotStore) Create(version SnapshotVersion, index, ... method List (line 38) | func (d *DiscardSnapshotStore) List() ([]*SnapshotMeta, error) { method Open (line 44) | func (d *DiscardSnapshotStore) Open(id string) (*SnapshotMeta, io.Read... type DiscardSnapshotSink (line 23) | type DiscardSnapshotSink struct method Write (line 50) | func (d *DiscardSnapshotSink) Write(b []byte) (int, error) { method Close (line 55) | func (d *DiscardSnapshotSink) Close() error { method ID (line 60) | func (d *DiscardSnapshotSink) ID() string { method Cancel (line 65) | func (d *DiscardSnapshotSink) Cancel() error { function NewDiscardSnapshotStore (line 26) | func NewDiscardSnapshotStore() *DiscardSnapshotStore { FILE: discard_snapshot_test.go function TestDiscardSnapshotStoreImpl (line 8) | func TestDiscardSnapshotStoreImpl(t *testing.T) { function TestDiscardSnapshotSinkImpl (line 15) | func TestDiscardSnapshotSinkImpl(t *testing.T) { FILE: file_snapshot.go constant testPath (line 25) | testPath = "permTest" constant snapPath (line 26) | snapPath = "snapshots" constant metaFilePath (line 27) | metaFilePath = "meta.json" constant stateFilePath (line 28) | stateFilePath = "state.bin" constant tmpSuffix (line 29) | tmpSuffix = ".tmp" type FileSnapshotStore (line 34) | type FileSnapshotStore struct method testPermissions (line 135) | func (f *FileSnapshotStore) testPermissions() error { method Create (line 160) | func (f *FileSnapshotStore) Create(version SnapshotVersion, index, ter... method List (line 226) | func (f *FileSnapshotStore) List() ([]*SnapshotMeta, error) { method getSnapshots (line 245) | func (f *FileSnapshotStore) getSnapshots() ([]*fileSnapshotMeta, error) { method readMeta (line 292) | func (f *FileSnapshotStore) readMeta(name string) (*fileSnapshotMeta, ... method Open (line 314) | func (f *FileSnapshotStore) Open(id string) (*SnapshotMeta, io.ReadClo... method ReapSnapshots (line 366) | func (f *FileSnapshotStore) ReapSnapshots() error { type snapMetaSlice (line 44) | type snapMetaSlice method Len (line 535) | func (s snapMetaSlice) Len() int { method Less (line 539) | func (s snapMetaSlice) Less(i, j int) bool { method Swap (line 549) | func (s snapMetaSlice) Swap(i, j int) { type FileSnapshotSink (line 47) | type FileSnapshotSink struct method ID (line 386) | func (s *FileSnapshotSink) ID() string { method Write (line 392) | func (s *FileSnapshotSink) Write(b []byte) (int, error) { method Close (line 397) | func (s *FileSnapshotSink) Close() error { method Cancel (line 450) | func (s *FileSnapshotSink) Cancel() error { method finalize (line 468) | func (s *FileSnapshotSink) finalize() error { method writeMeta (line 501) | func (s *FileSnapshotSink) writeMeta() error { type fileSnapshotMeta (line 65) | type fileSnapshotMeta struct type bufferedFile (line 72) | type bufferedFile struct method Read (line 77) | func (b *bufferedFile) Read(p []byte) (n int, err error) { method Close (line 81) | func (b *bufferedFile) Close() error { function NewFileSnapshotStoreWithLogger (line 88) | func NewFileSnapshotStoreWithLogger(base string, retain int, logger hclo... function NewFileSnapshotStore (line 123) | func NewFileSnapshotStore(base string, retain int, logOutput io.Writer) ... function snapshotName (line 153) | func snapshotName(term, index uint64) string { FILE: file_snapshot_test.go function TestFileSnapshotStoreImpl (line 15) | func TestFileSnapshotStoreImpl(t *testing.T) { function TestFileSnapshotSinkImpl (line 22) | func TestFileSnapshotSinkImpl(t *testing.T) { function TestFileSS_CreateSnapshotMissingParentDir (line 29) | func TestFileSS_CreateSnapshotMissingParentDir(t *testing.T) { function TestFileSS_CreateSnapshot (line 54) | func TestFileSS_CreateSnapshot(t *testing.T) { function TestFileSS_CancelSnapshot (line 162) | func TestFileSS_CancelSnapshot(t *testing.T) { function TestFileSS_Retention (line 198) | func TestFileSS_Retention(t *testing.T) { function TestFileSS_BadPerm (line 247) | func TestFileSS_BadPerm(t *testing.T) { function TestFileSS_MissingParentDir (line 278) | func TestFileSS_MissingParentDir(t *testing.T) { function TestFileSS_Ordering (line 297) | func TestFileSS_Ordering(t *testing.T) { FILE: fsm.go type FSM (line 16) | type FSM interface type BatchingFSM (line 54) | type BatchingFSM interface type FSMSnapshot (line 74) | type FSMSnapshot interface method runFSM (line 86) | func (r *Raft) runFSM() { function fsmRestoreAndMeasure (line 269) | func fsmRestoreAndMeasure(logger hclog.Logger, fsm FSM, source io.ReadCl... FILE: future.go type Future (line 14) | type Future interface type IndexFuture (line 27) | type IndexFuture interface type ApplyFuture (line 36) | type ApplyFuture interface type ConfigurationFuture (line 49) | type ConfigurationFuture interface type SnapshotFuture (line 58) | type SnapshotFuture interface type LeadershipTransferFuture (line 69) | type LeadershipTransferFuture interface type errorFuture (line 74) | type errorFuture struct method Error (line 78) | func (e errorFuture) Error() error { method Response (line 82) | func (e errorFuture) Response() interface{} { method Index (line 86) | func (e errorFuture) Index() uint64 { type deferError (line 92) | type deferError struct method init (line 99) | func (d *deferError) init() { method Error (line 103) | func (d *deferError) Error() error { method respond (line 121) | func (d *deferError) respond(err error) { type configurationChangeFuture (line 136) | type configurationChangeFuture struct type bootstrapFuture (line 143) | type bootstrapFuture struct type logFuture (line 152) | type logFuture struct method Response (line 159) | func (l *logFuture) Response() interface{} { method Index (line 163) | func (l *logFuture) Index() uint64 { type shutdownFuture (line 167) | type shutdownFuture struct method Error (line 171) | func (s *shutdownFuture) Error() error { type userSnapshotFuture (line 184) | type userSnapshotFuture struct method Open (line 194) | func (u *userSnapshotFuture) Open() (*SnapshotMeta, io.ReadCloser, err... type userRestoreFuture (line 208) | type userRestoreFuture struct type reqSnapshotFuture (line 220) | type reqSnapshotFuture struct type restoreFuture (line 231) | type restoreFuture struct type verifyFuture (line 238) | type verifyFuture struct method vote (line 274) | func (v *verifyFuture) vote(leader bool) { type leadershipTransferFuture (line 248) | type leadershipTransferFuture struct type configurationsFuture (line 257) | type configurationsFuture struct method Configuration (line 263) | func (c *configurationsFuture) Configuration() Configuration { method Index (line 268) | func (c *configurationsFuture) Index() uint64 { type appendFuture (line 297) | type appendFuture struct method Start (line 304) | func (a *appendFuture) Start() time.Time { method Request (line 308) | func (a *appendFuture) Request() *AppendEntriesRequest { method Response (line 312) | func (a *appendFuture) Response() *AppendEntriesResponse { FILE: future_test.go function TestDeferFutureSuccess (line 11) | func TestDeferFutureSuccess(t *testing.T) { function TestDeferFutureError (line 23) | func TestDeferFutureError(t *testing.T) { function TestDeferFutureConcurrent (line 36) | func TestDeferFutureConcurrent(t *testing.T) { FILE: fuzzy/apply_src.go type applySource (line 13) | type applySource struct method reset (line 28) | func (a *applySource) reset() { method nextEntry (line 32) | func (a *applySource) nextEntry() []byte { method apply (line 48) | func (a *applySource) apply(t *testing.T, c *cluster, n uint) *cluster... function newApplySource (line 19) | func newApplySource(seed string) *applySource { type clusterApplier (line 41) | type clusterApplier struct method apply (line 54) | func (ca *clusterApplier) apply(t *testing.T, c *cluster, n uint) { method stop (line 65) | func (ca *clusterApplier) stop() { FILE: fuzzy/cluster.go type appliedItem (line 20) | type appliedItem struct type cluster (line 25) | type cluster struct method CreateAndAddNode (line 90) | func (c *cluster) CreateAndAddNode(t *testing.T, logWriter io.Writer, ... method RemoveNode (line 109) | func (c *cluster) RemoveNode(t *testing.T, name string) *raftNode { method Leader (line 131) | func (c *cluster) Leader(timeout time.Duration) *raftNode { method LeaderPlus (line 159) | func (c *cluster) LeaderPlus(n int) []*raftNode { method Stop (line 179) | func (c *cluster) Stop(t *testing.T, maxWait time.Duration) { method WaitTilUptoDate (line 188) | func (c *cluster) WaitTilUptoDate(t *testing.T, maxWait time.Duration) { method appliedIndexes (line 215) | func (c *cluster) appliedIndexes() map[string]uint64 { method generateNApplies (line 223) | func (c *cluster) generateNApplies(s *applySource, n uint) [][]byte { method leadershipTransfer (line 231) | func (c *cluster) leadershipTransfer(leaderTimeout time.Duration) raft... method sendNApplies (line 241) | func (c *cluster) sendNApplies(leaderTimeout time.Duration, data [][]b... method checkApplyFutures (line 253) | func (c *cluster) checkApplyFutures(futures []applyFutureWithData) uin... method ApplyN (line 267) | func (c *cluster) ApplyN(t *testing.T, leaderTimeout time.Duration, s ... method VerifyFSM (line 273) | func (c *cluster) VerifyFSM(t *testing.T) { method RecordState (line 295) | func (c *cluster) RecordState(t *testing.T) { method VerifyLog (line 339) | func (c *cluster) VerifyLog(t *testing.T, applyCount uint64) { type Logger (line 37) | type Logger interface type LoggerAdapter (line 43) | type LoggerAdapter struct method Log (line 48) | func (a *LoggerAdapter) Log(v ...interface{}) { method Logf (line 53) | func (a *LoggerAdapter) Logf(s string, v ...interface{}) { function newRaftCluster (line 57) | func newRaftCluster(t *testing.T, logWriter io.Writer, namePrefix string... function nodeName (line 105) | func nodeName(prefix string, num uint) string { function containsNode (line 148) | func containsNode(nodes []*raftNode, n *raftNode) bool { type applyFutureWithData (line 236) | type applyFutureWithData struct function copyDir (line 314) | func copyDir(target, src string) { function copyFile (line 324) | func copyFile(target, src string) error { function assertLogEntryEqual (line 406) | func assertLogEntryEqual(t *testing.T, node string, exp *raft.Log, act *... FILE: fuzzy/fsm.go type logHash (line 17) | type logHash struct method Add (line 21) | func (l *logHash) Add(d []byte) { type applyItem (line 28) | type applyItem struct method set (line 34) | func (a *applyItem) set(l *raft.Log) { type fuzzyFSM (line 41) | type fuzzyFSM struct method Apply (line 48) | func (f *fuzzyFSM) Apply(l *raft.Log) interface{} { method WriteTo (line 63) | func (f *fuzzyFSM) WriteTo(fn string) error { method Snapshot (line 77) | func (f *fuzzyFSM) Snapshot() (raft.FSMSnapshot, error) { method Restore (line 82) | func (f *fuzzyFSM) Restore(r io.ReadCloser) error { method Persist (line 94) | func (f *fuzzyFSM) Persist(sink raft.SnapshotSink) error { method Release (line 105) | func (f *fuzzyFSM) Release() { FILE: fuzzy/fsm_batch.go method ApplyBatch (line 12) | func (f *fuzzyFSM) ApplyBatch(logs []*raft.Log) []interface{} { FILE: fuzzy/leadershiptransfer_test.go function TestRaft_FuzzyLeadershipTransfer (line 15) | func TestRaft_FuzzyLeadershipTransfer(t *testing.T) { type LeadershipTransferMode (line 42) | type LeadershipTransferMode type LeadershipTransfer (line 44) | type LeadershipTransfer struct method Report (line 52) | func (lt *LeadershipTransfer) Report(t *testing.T) { method PreRPC (line 56) | func (lt *LeadershipTransfer) PreRPC(s, t string, r *raft.RPC) error { method nap (line 60) | func (lt *LeadershipTransfer) nap() { method PostRPC (line 65) | func (lt *LeadershipTransfer) PostRPC(src, target string, r *raft.RPC,... method PreRequestVote (line 69) | func (lt *LeadershipTransfer) PreRequestVote(src, target string, v *ra... method PreAppendEntries (line 73) | func (lt *LeadershipTransfer) PreAppendEntries(src, target string, v *... FILE: fuzzy/membership_test.go function init (line 17) | func init() { function TestRaft_AddMembership (line 30) | func TestRaft_AddMembership(t *testing.T) { function TestRaft_AddRemoveNodesNotLeader (line 52) | func TestRaft_AddRemoveNodesNotLeader(t *testing.T) { function TestRaft_RemoveLeader (line 80) | func TestRaft_RemoveLeader(t *testing.T) { function TestRaft_RemovePartitionedNode (line 100) | func TestRaft_RemovePartitionedNode(t *testing.T) { FILE: fuzzy/node.go type raftNode (line 16) | type raftNode struct function newRaftNode (line 26) | func newRaftNode(logger hclog.Logger, tc *transports, h TransportHooks, ... FILE: fuzzy/partition_test.go function TestRaft_LeaderPartitions (line 19) | func TestRaft_LeaderPartitions(t *testing.T) { type Partitioner (line 47) | type Partitioner struct method PartitionOff (line 66) | func (p *Partitioner) PartitionOff(l Logger, nodes []*raftNode) int { method Heal (line 80) | func (p *Partitioner) Heal(l Logger, pGroup int) { method String (line 91) | func (p *Partitioner) String() string { method HealAll (line 116) | func (p *Partitioner) HealAll(l Logger) { method Report (line 123) | func (p *Partitioner) Report(t *testing.T) { method PreRPC (line 127) | func (p *Partitioner) PreRPC(s, t string, r *raft.RPC) error { method PostRPC (line 138) | func (p *Partitioner) PostRPC(s, t string, req *raft.RPC, res *raft.RP... method PreRequestVote (line 142) | func (p *Partitioner) PreRequestVote(src, target string, v *raft.Reque... method PreAppendEntries (line 146) | func (p *Partitioner) PreAppendEntries(src, target string, v *raft.App... function NewPartitioner (line 55) | func NewPartitioner() *Partitioner { FILE: fuzzy/resolve.go function resolveDirectory (line 21) | func resolveDirectory(dir string, create bool) (string, error) { FILE: fuzzy/simple_test.go function TestRaft_NoIssueSanity (line 12) | func TestRaft_NoIssueSanity(t *testing.T) { FILE: fuzzy/slowvoter_test.go function TestRaft_SlowSendVote (line 15) | func TestRaft_SlowSendVote(t *testing.T) { function TestRaft_SlowRecvVote (line 28) | func TestRaft_SlowRecvVote(t *testing.T) { type SlowVoterMode (line 40) | type SlowVoterMode constant SlowSend (line 43) | SlowSend SlowVoterMode = iota constant SlowRecv (line 44) | SlowRecv type SlowVoter (line 47) | type SlowVoter struct method Report (line 69) | func (sv *SlowVoter) Report(t *testing.T) { method PreRPC (line 73) | func (sv *SlowVoter) PreRPC(s, t string, r *raft.RPC) error { method nap (line 77) | func (sv *SlowVoter) nap() { method PostRPC (line 82) | func (sv *SlowVoter) PostRPC(src, target string, r *raft.RPC, res *raf... method PreRequestVote (line 92) | func (sv *SlowVoter) PreRequestVote(src, target string, v *raft.Reques... method PreAppendEntries (line 99) | func (sv *SlowVoter) PreAppendEntries(src, target string, v *raft.Appe... function NewSlowVoter (line 55) | func NewSlowVoter(slowNodes ...string) *SlowVoter { FILE: fuzzy/transport.go type appendEntries (line 24) | type appendEntries struct type transports (line 33) | type transports struct method AddNode (line 46) | func (tc *transports) AddNode(n string, hooks TransportHooks) *transpo... function newTransports (line 39) | func newTransports(log hclog.Logger) *transports { type TransportHooks (line 57) | type TransportHooks interface type transport (line 68) | type transport struct method Consumer (line 90) | func (t *transport) Consumer() <-chan raft.RPC { method LocalAddr (line 95) | func (t *transport) LocalAddr() raft.ServerAddress { method sendRPC (line 99) | func (t *transport) sendRPC(target string, req interface{}, resp inter... method TimeoutNow (line 175) | func (t *transport) TimeoutNow(id raft.ServerID, target raft.ServerAdd... method AppendEntries (line 180) | func (t *transport) AppendEntries(id raft.ServerID, target raft.Server... method DumpLog (line 194) | func (t *transport) DumpLog(dir string) { method RequestVote (line 220) | func (t *transport) RequestVote(id raft.ServerID, target raft.ServerAd... method RequestPreVote (line 225) | func (t *transport) RequestPreVote(id raft.ServerID, target raft.Serve... method InstallSnapshot (line 231) | func (t *transport) InstallSnapshot(id raft.ServerID, target raft.Serv... method EncodePeer (line 237) | func (t *transport) EncodePeer(id raft.ServerID, p raft.ServerAddress)... method DecodePeer (line 242) | func (t *transport) DecodePeer(p []byte) raft.ServerAddress { method SetHeartbeatHandler (line 250) | func (t *transport) SetHeartbeatHandler(cb func(rpc raft.RPC)) { method AppendEntriesPipeline (line 255) | func (t *transport) AppendEntriesPipeline(id raft.ServerID, target raf... function newTransport (line 78) | func newTransport(node string, tc *transports, hooks TransportHooks) *tr... function firstIndex (line 205) | func firstIndex(a *raft.AppendEntriesRequest) uint64 { function lastIndex (line 212) | func lastIndex(a *raft.AppendEntriesRequest) uint64 { type appendEntry (line 267) | type appendEntry struct method Request (line 276) | func (e *appendEntry) Request() *raft.AppendEntriesRequest { method Response (line 280) | func (e *appendEntry) Response() *raft.AppendEntriesResponse { method Start (line 285) | func (e *appendEntry) Start() time.Time { method Error (line 289) | func (e *appendEntry) Error() error { method Respond (line 294) | func (e *appendEntry) Respond(err error) { type pipeline (line 300) | type pipeline struct method run (line 308) | func (p *pipeline) run() { method AppendEntries (line 317) | func (p *pipeline) AppendEntries(args *raft.AppendEntriesRequest, resp... method Consumer (line 329) | func (p *pipeline) Consumer() <-chan raft.AppendFuture { method Close (line 334) | func (p *pipeline) Close() error { FILE: fuzzy/verifier.go type appendEntriesVerifier (line 16) | type appendEntriesVerifier struct method Report (line 22) | func (v *appendEntriesVerifier) Report(t *testing.T) { method Init (line 30) | func (v *appendEntriesVerifier) Init() { method PreRPC (line 37) | func (v *appendEntriesVerifier) PreRPC(src, target string, r *raft.RPC... method PostRPC (line 41) | func (v *appendEntriesVerifier) PostRPC(src, target string, req *raft.... method PreRequestVote (line 45) | func (v *appendEntriesVerifier) PreRequestVote(src, target string, rv ... method PreAppendEntries (line 49) | func (v *appendEntriesVerifier) PreAppendEntries(src, target string, r... FILE: inmem_snapshot.go type InmemSnapshotStore (line 15) | type InmemSnapshotStore struct method Create (line 37) | func (m *InmemSnapshotStore) Create(version SnapshotVersion, index, te... method List (line 68) | func (m *InmemSnapshotStore) List() ([]*SnapshotMeta, error) { method Open (line 79) | func (m *InmemSnapshotStore) Open(id string) (*SnapshotMeta, io.ReadCl... type InmemSnapshotSink (line 22) | type InmemSnapshotSink struct method Write (line 94) | func (s *InmemSnapshotSink) Write(p []byte) (n int, err error) { method Close (line 101) | func (s *InmemSnapshotSink) Close() error { method ID (line 106) | func (s *InmemSnapshotSink) ID() string { method Cancel (line 111) | func (s *InmemSnapshotSink) Cancel() error { function NewInmemSnapshotStore (line 28) | func NewInmemSnapshotStore() *InmemSnapshotStore { FILE: inmem_snapshot_test.go function TestInmemSnapshotStoreImpl (line 13) | func TestInmemSnapshotStoreImpl(t *testing.T) { function TestInmemSnapshotSinkImpl (line 20) | func TestInmemSnapshotSinkImpl(t *testing.T) { function TestInmemSS_CreateSnapshot (line 27) | func TestInmemSS_CreateSnapshot(t *testing.T) { function TestInmemSS_OpenSnapshotTwice (line 125) | func TestInmemSS_OpenSnapshotTwice(t *testing.T) { FILE: inmem_store.go type InmemStore (line 14) | type InmemStore struct method FirstIndex (line 35) | func (i *InmemStore) FirstIndex() (uint64, error) { method LastIndex (line 42) | func (i *InmemStore) LastIndex() (uint64, error) { method GetLog (line 49) | func (i *InmemStore) GetLog(index uint64, log *Log) error { method StoreLog (line 61) | func (i *InmemStore) StoreLog(log *Log) error { method StoreLogs (line 66) | func (i *InmemStore) StoreLogs(logs []*Log) error { method DeleteRange (line 82) | func (i *InmemStore) DeleteRange(min, max uint64) error { method Set (line 102) | func (i *InmemStore) Set(key []byte, val []byte) error { method Get (line 110) | func (i *InmemStore) Get(key []byte) ([]byte, error) { method SetUint64 (line 121) | func (i *InmemStore) SetUint64(key []byte, val uint64) error { method GetUint64 (line 129) | func (i *InmemStore) GetUint64(key []byte) (uint64, error) { function NewInmemStore (line 25) | func NewInmemStore() *InmemStore { FILE: inmem_transport.go function NewInmemAddr (line 15) | func NewInmemAddr() ServerAddress { type inmemPipeline (line 20) | type inmemPipeline struct method decodeResponses (line 272) | func (i *inmemPipeline) decodeResponses() { method AppendEntries (line 311) | func (i *inmemPipeline) AppendEntries(args *AppendEntriesRequest, resp... method Consumer (line 360) | func (i *inmemPipeline) Consumer() <-chan AppendFuture { method Close (line 364) | func (i *inmemPipeline) Close() error { type inmemPipelineInflight (line 33) | type inmemPipelineInflight struct type InmemTransport (line 40) | type InmemTransport struct method SetHeartbeatHandler (line 74) | func (i *InmemTransport) SetHeartbeatHandler(cb func(RPC)) { method Consumer (line 78) | func (i *InmemTransport) Consumer() <-chan RPC { method LocalAddr (line 83) | func (i *InmemTransport) LocalAddr() ServerAddress { method AppendEntriesPipeline (line 89) | func (i *InmemTransport) AppendEntriesPipeline(id ServerID, target Ser... method AppendEntries (line 103) | func (i *InmemTransport) AppendEntries(id ServerID, target ServerAddre... method RequestVote (line 116) | func (i *InmemTransport) RequestVote(id ServerID, target ServerAddress... method RequestPreVote (line 128) | func (i *InmemTransport) RequestPreVote(id ServerID, target ServerAddr... method InstallSnapshot (line 141) | func (i *InmemTransport) InstallSnapshot(id ServerID, target ServerAdd... method TimeoutNow (line 154) | func (i *InmemTransport) TimeoutNow(id ServerID, target ServerAddress,... method makeRPC (line 166) | func (i *InmemTransport) makeRPC(target ServerAddress, args interface{... method EncodePeer (line 203) | func (i *InmemTransport) EncodePeer(id ServerID, p ServerAddress) []by... method DecodePeer (line 208) | func (i *InmemTransport) DecodePeer(buf []byte) ServerAddress { method Connect (line 214) | func (i *InmemTransport) Connect(peer ServerAddress, t Transport) { method Disconnect (line 222) | func (i *InmemTransport) Disconnect(peer ServerAddress) { method DisconnectAll (line 241) | func (i *InmemTransport) DisconnectAll() { method Close (line 254) | func (i *InmemTransport) Close() error { function NewInmemTransportWithTimeout (line 53) | func NewInmemTransportWithTimeout(addr ServerAddress, timeout time.Durat... function NewInmemTransport (line 68) | func NewInmemTransport(addr ServerAddress) (ServerAddress, *InmemTranspo... function newInmemPipeline (line 259) | func newInmemPipeline(trans *InmemTransport, peer *InmemTransport, addr ... FILE: inmem_transport_test.go function TestInmemTransportImpl (line 13) | func TestInmemTransportImpl(t *testing.T) { function TestInmemTransportWriteTimeout (line 26) | func TestInmemTransportWriteTimeout(t *testing.T) { FILE: integ_test.go function CheckInteg (line 20) | func CheckInteg(t *testing.T) { function IsInteg (line 27) | func IsInteg() bool { type RaftEnv (line 31) | type RaftEnv struct method Release (line 43) | func (r *RaftEnv) Release() { method Shutdown (line 50) | func (r *RaftEnv) Shutdown() { method Restart (line 60) | func (r *RaftEnv) Restart(t *testing.T) { function MakeRaft (line 74) | func MakeRaft(tb testing.TB, conf *Config, bootstrap bool) *RaftEnv { function WaitFor (line 131) | func WaitFor(env *RaftEnv, state RaftState) error { function WaitForAny (line 143) | func WaitForAny(state RaftState, envs []*RaftEnv) (*RaftEnv, error) { function WaitFuture (line 160) | func WaitFuture(f Future) error { function NoErr (line 168) | func NoErr(err error, tb testing.TB) { function CheckConsistent (line 175) | func CheckConsistent(envs []*RaftEnv, t *testing.T) { function logBytes (line 214) | func logBytes(i, sz int) []byte { function TestRaft_Integ (line 225) | func TestRaft_Integ(t *testing.T) { function TestRaft_RestartFollower_LongInitialHeartbeat (line 364) | func TestRaft_RestartFollower_LongInitialHeartbeat(t *testing.T) { function TestRaft_PreVote_LeaderSpam (line 500) | func TestRaft_PreVote_LeaderSpam(t *testing.T) { FILE: log.go type LogType (line 14) | type LogType method String (line 47) | func (lt LogType) String() string { constant LogCommand (line 18) | LogCommand LogType = iota constant LogNoop (line 21) | LogNoop constant LogAddPeerDeprecated (line 26) | LogAddPeerDeprecated constant LogRemovePeerDeprecated (line 31) | LogRemovePeerDeprecated constant LogBarrier (line 38) | LogBarrier constant LogConfiguration (line 43) | LogConfiguration type Log (line 68) | type Log struct type LogStore (line 112) | type LogStore interface type MonotonicLogStore (line 141) | type MonotonicLogStore interface function oldestLog (line 145) | func oldestLog(s LogStore) (Log, error) { function emitLogStoreMetrics (line 177) | func emitLogStoreMetrics(s LogStore, prefix []string, interval time.Dura... FILE: log_cache.go type LogCache (line 16) | type LogCache struct method IsMonotonic (line 38) | func (c *LogCache) IsMonotonic() bool { method GetLog (line 46) | func (c *LogCache) GetLog(idx uint64, log *Log) error { method StoreLog (line 62) | func (c *LogCache) StoreLog(log *Log) error { method StoreLogs (line 66) | func (c *LogCache) StoreLogs(logs []*Log) error { method FirstIndex (line 80) | func (c *LogCache) FirstIndex() (uint64, error) { method LastIndex (line 84) | func (c *LogCache) LastIndex() (uint64, error) { method DeleteRange (line 88) | func (c *LogCache) DeleteRange(min, max uint64) error { function NewLogCache (line 25) | func NewLogCache(capacity int, store LogStore) (*LogCache, error) { FILE: log_cache_test.go function TestLogCache (line 13) | func TestLogCache(t *testing.T) { type errorStore (line 96) | type errorStore struct method StoreLogs (line 104) | func (e *errorStore) StoreLogs(logs []*Log) error { method failNext (line 117) | func (e *errorStore) failNext(count int) { function TestLogCacheWithBackendStoreError (line 124) | func TestLogCacheWithBackendStoreError(t *testing.T) { FILE: log_test.go function TestOldestLog (line 15) | func TestOldestLog(t *testing.T) { function TestEmitsLogStoreMetrics (line 72) | func TestEmitsLogStoreMetrics(t *testing.T) { function testSetupMetrics (line 117) | func testSetupMetrics(t *testing.T) *metrics.InmemSink { function getCurrentGaugeValue (line 127) | func getCurrentGaugeValue(t *testing.T, sink *metrics.InmemSink, name st... FILE: net_transport.go constant rpcAppendEntries (line 23) | rpcAppendEntries uint8 = iota constant rpcRequestVote (line 24) | rpcRequestVote constant rpcInstallSnapshot (line 25) | rpcInstallSnapshot constant rpcTimeoutNow (line 26) | rpcTimeoutNow constant rpcRequestPreVote (line 27) | rpcRequestPreVote constant DefaultTimeoutScale (line 30) | DefaultTimeoutScale = 256 * 1024 constant DefaultMaxRPCsInFlight (line 36) | DefaultMaxRPCsInFlight = 2 constant connReceiveBufferSize (line 40) | connReceiveBufferSize = 256 * 1024 constant connSendBufferSize (line 44) | connSendBufferSize = 256 * 1024 constant minInFlightForPipelining (line 54) | minInFlightForPipelining = 2 type NetworkTransport (line 81) | type NetworkTransport struct method setupStreamContext (line 285) | func (n *NetworkTransport) setupStreamContext() { method getStreamContext (line 292) | func (n *NetworkTransport) getStreamContext() context.Context { method SetHeartbeatHandler (line 301) | func (n *NetworkTransport) SetHeartbeatHandler(cb func(rpc RPC)) { method CloseStreams (line 308) | func (n *NetworkTransport) CloseStreams() { method Close (line 333) | func (n *NetworkTransport) Close() error { method Consumer (line 346) | func (n *NetworkTransport) Consumer() <-chan RPC { method LocalAddr (line 351) | func (n *NetworkTransport) LocalAddr() ServerAddress { method IsShutdown (line 356) | func (n *NetworkTransport) IsShutdown() bool { method getPooledConn (line 366) | func (n *NetworkTransport) getPooledConn(target ServerAddress) *netConn { method getConnFromAddressProvider (line 383) | func (n *NetworkTransport) getConnFromAddressProvider(id ServerID, tar... method getProviderAddressOrFallback (line 388) | func (n *NetworkTransport) getProviderAddressOrFallback(id ServerID, t... method getConn (line 403) | func (n *NetworkTransport) getConn(target ServerAddress) (*netConn, er... method returnConn (line 432) | func (n *NetworkTransport) returnConn(conn *netConn) { method AppendEntriesPipeline (line 448) | func (n *NetworkTransport) AppendEntriesPipeline(id ServerID, target S... method AppendEntries (line 466) | func (n *NetworkTransport) AppendEntries(id ServerID, target ServerAdd... method RequestVote (line 471) | func (n *NetworkTransport) RequestVote(id ServerID, target ServerAddre... method RequestPreVote (line 476) | func (n *NetworkTransport) RequestPreVote(id ServerID, target ServerAd... method genericRPC (line 481) | func (n *NetworkTransport) genericRPC(id ServerID, target ServerAddres... method InstallSnapshot (line 507) | func (n *NetworkTransport) InstallSnapshot(id ServerID, target ServerA... method EncodePeer (line 545) | func (n *NetworkTransport) EncodePeer(id ServerID, p ServerAddress) []... method DecodePeer (line 551) | func (n *NetworkTransport) DecodePeer(buf []byte) ServerAddress { method TimeoutNow (line 556) | func (n *NetworkTransport) TimeoutNow(id ServerID, target ServerAddres... method listen (line 561) | func (n *NetworkTransport) listen() { method handleConn (line 604) | func (n *NetworkTransport) handleConn(connCtx context.Context, conn ne... method handleCommand (line 636) | func (n *NetworkTransport) handleCommand(r *bufio.Reader, dec *codec.D... type NetworkTransportConfig (line 116) | type NetworkTransportConfig struct type ServerAddressProvider (line 173) | type ServerAddressProvider interface type StreamLayer (line 179) | type StreamLayer interface type netConn (line 186) | type netConn struct method Release (line 194) | func (n *netConn) Release() error { type netPipeline (line 198) | type netPipeline struct method decodeResponses (line 838) | func (n *netPipeline) decodeResponses() { method AppendEntries (line 861) | func (n *netPipeline) AppendEntries(args *AppendEntriesRequest, resp *... method Consumer (line 891) | func (n *netPipeline) Consumer() <-chan AppendFuture { method Close (line 896) | func (n *netPipeline) Close() error { function NewNetworkTransportWithConfig (line 211) | func NewNetworkTransportWithConfig( function NewNetworkTransport (line 251) | func NewNetworkTransport( function NewNetworkTransportWithLogger (line 273) | func NewNetworkTransportWithLogger( function decodeResponse (line 768) | func decodeResponse(conn *netConn, resp interface{}) (bool, error) { function sendRPC (line 790) | func sendRPC(conn *netConn, rpcType uint8, args interface{}) error { function newNetPipeline (line 814) | func newNetPipeline(trans *NetworkTransport, conn *netConn, maxInFlight ... FILE: net_transport_test.go type testAddrProvider (line 22) | type testAddrProvider struct method ServerAddr (line 26) | func (t *testAddrProvider) ServerAddr(id ServerID) (ServerAddress, err... function TestNetworkTransport_CloseStreams (line 30) | func TestNetworkTransport_CloseStreams(t *testing.T) { function TestNetworkTransport_StartStop (line 138) | func TestNetworkTransport_StartStop(t *testing.T) { function TestNetworkTransport_Heartbeat_FastPath (line 146) | func TestNetworkTransport_Heartbeat_FastPath(t *testing.T) { function makeAppendRPC (line 203) | func makeAppendRPC() AppendEntriesRequest { function makeAppendRPCResponse (line 220) | func makeAppendRPCResponse() AppendEntriesResponse { function TestNetworkTransport_AppendEntries (line 228) | func TestNetworkTransport_AppendEntries(t *testing.T) { function TestNetworkTransport_AppendEntriesPipeline (line 280) | func TestNetworkTransport_AppendEntriesPipeline(t *testing.T) { function TestNetworkTransport_AppendEntriesPipeline_CloseStreams (line 349) | func TestNetworkTransport_AppendEntriesPipeline_CloseStreams(t *testing.... function TestNetworkTransport_AppendEntriesPipeline_MaxRPCsInFlight (line 440) | func TestNetworkTransport_AppendEntriesPipeline_MaxRPCsInFlight(t *testi... function TestNetworkTransport_RequestVote (line 539) | func TestNetworkTransport_RequestVote(t *testing.T) { function TestNetworkTransport_InstallSnapshot (line 600) | func TestNetworkTransport_InstallSnapshot(t *testing.T) { function TestNetworkTransport_EncodeDecode (line 675) | func TestNetworkTransport_EncodeDecode(t *testing.T) { function TestNetworkTransport_EncodeDecode_AddressProvider (line 692) | func TestNetworkTransport_EncodeDecode_AddressProvider(t *testing.T) { function TestNetworkTransport_PooledConn (line 710) | func TestNetworkTransport_PooledConn(t *testing.T) { function makeTransport (line 810) | func makeTransport(t *testing.T, useAddrProvider bool, addressOverride s... type testCountingWriter (line 825) | type testCountingWriter struct method Write (line 830) | func (tw testCountingWriter) Write(p []byte) (n int, err error) { type testCountingStreamLayer (line 839) | type testCountingStreamLayer struct method Accept (line 843) | func (sl testCountingStreamLayer) Accept() (net.Conn, error) { method Close (line 848) | func (sl testCountingStreamLayer) Close() error { method Addr (line 852) | func (sl testCountingStreamLayer) Addr() net.Addr { method Dial (line 856) | func (sl testCountingStreamLayer) Dial(address ServerAddress, timeout ... function TestNetworkTransport_ListenBackoff (line 863) | func TestNetworkTransport_ListenBackoff(t *testing.T) { FILE: observer.go type Observation (line 12) | type Observation struct type LeaderObservation (line 24) | type LeaderObservation struct type PeerObservation (line 32) | type PeerObservation struct type FailedHeartbeatObservation (line 38) | type FailedHeartbeatObservation struct type ResumedHeartbeatObservation (line 44) | type ResumedHeartbeatObservation struct type FilterFn (line 55) | type FilterFn type Observer (line 58) | type Observer struct method GetNumObserved (line 97) | func (or *Observer) GetNumObserved() uint64 { method GetNumDropped (line 102) | func (or *Observer) GetNumDropped() uint64 { function NewObserver (line 87) | func NewObserver(channel chan Observation, blocking bool, filter FilterF... method RegisterObserver (line 107) | func (r *Raft) RegisterObserver(or *Observer) { method DeregisterObserver (line 114) | func (r *Raft) DeregisterObserver(or *Observer) { method observe (line 121) | func (r *Raft) observe(o interface{}) { FILE: peersjson.go function ReadPeersJSON (line 18) | func ReadPeersJSON(path string) (Configuration, error) { type configEntry (line 52) | type configEntry struct function ReadConfigJSON (line 67) | func ReadConfigJSON(path string) (Configuration, error) { FILE: peersjson_test.go function TestPeersJSON_BadConfiguration (line 14) | func TestPeersJSON_BadConfiguration(t *testing.T) { function TestPeersJSON_ReadPeersJSON (line 34) | func TestPeersJSON_ReadPeersJSON(t *testing.T) { function TestPeersJSON_ReadConfigJSON (line 82) | func TestPeersJSON_ReadConfigJSON(t *testing.T) { FILE: progress.go constant snapshotRestoreMonitorInterval (line 16) | snapshotRestoreMonitorInterval = 10 * time.Second type snapshotRestoreMonitor (line 19) | type snapshotRestoreMonitor struct method run (line 50) | func (m *snapshotRestoreMonitor) run(ctx context.Context) { method runOnce (line 71) | func (m *snapshotRestoreMonitor) runOnce() { method StopAndWait (line 86) | func (m *snapshotRestoreMonitor) StopAndWait() { function startSnapshotRestoreMonitor (line 30) | func startSnapshotRestoreMonitor( type CountingReader (line 93) | type CountingReader interface type countingReader (line 98) | type countingReader struct method Read (line 105) | func (r *countingReader) Read(p []byte) (n int, err error) { method Count (line 113) | func (r *countingReader) Count() int64 { function newCountingReader (line 119) | func newCountingReader(r io.Reader) *countingReader { type countingReadCloser (line 123) | type countingReadCloser struct method Close (line 135) | func (c countingReadCloser) Close() error { method WrappedReadCloser (line 139) | func (c countingReadCloser) WrappedReadCloser() io.ReadCloser { function newCountingReadCloser (line 128) | func newCountingReadCloser(rc io.ReadCloser) *countingReadCloser { type ReadCloserWrapper (line 144) | type ReadCloserWrapper interface FILE: raft-compat/prevote_test.go function TestRaft_PreVote_BootStrap_PreVote (line 16) | func TestRaft_PreVote_BootStrap_PreVote(t *testing.T) { function TestRaft_PreVote_Rollback (line 156) | func TestRaft_PreVote_Rollback(t *testing.T) { FILE: raft-compat/rolling_upgrade_test.go function TestRaft_RollingUpgrade (line 20) | func TestRaft_RollingUpgrade(t *testing.T) { function TestRaft_ReplaceUpgrade (line 163) | func TestRaft_ReplaceUpgrade(t *testing.T) { FILE: raft-compat/testcluster/cluster.go type RaftUIT (line 15) | type RaftUIT struct method NumLogs (line 25) | func (r RaftUIT) NumLogs() int { method GetLocalAddr (line 29) | func (r RaftUIT) GetLocalAddr() string { method GetRaft (line 33) | func (r RaftUIT) GetRaft() interface{} { method GetStore (line 37) | func (r RaftUIT) GetStore() interface{} { method GetLocalID (line 41) | func (r RaftUIT) GetLocalID() string { method GetLeaderID (line 45) | func (r RaftUIT) GetLeaderID() string { type RaftLatest (line 67) | type RaftLatest struct method NumLogs (line 77) | func (r RaftLatest) NumLogs() int { method GetLocalAddr (line 81) | func (r RaftLatest) GetLocalAddr() string { method GetRaft (line 85) | func (r RaftLatest) GetRaft() interface{} { method GetStore (line 88) | func (r RaftLatest) GetStore() interface{} { method GetLocalID (line 92) | func (r RaftLatest) GetLocalID() string { method GetLeaderID (line 96) | func (r RaftLatest) GetLeaderID() string { type RaftNode (line 101) | type RaftNode interface type RaftCluster (line 110) | type RaftCluster struct method ID (line 50) | func (r *RaftCluster) ID(i int) string { method Addr (line 53) | func (r *RaftCluster) Addr(i int) string { method Raft (line 57) | func (r *RaftCluster) Raft(id string) interface{} { method Store (line 62) | func (r *RaftCluster) Store(id string) interface{} { method GetLeader (line 131) | func (r *RaftCluster) GetLeader() RaftNode { method Len (line 140) | func (r *RaftCluster) Len() int { method AddNode (line 144) | func (r *RaftCluster) AddNode(node RaftNode) { method DeleteNode (line 148) | func (r *RaftCluster) DeleteNode(id string) { method GetIndex (line 153) | func (r *RaftCluster) GetIndex(id string) int { function NewRaftCluster (line 114) | func NewRaftCluster(t *testing.T, f func(t *testing.T, id string) RaftNo... function NewPreviousRaftCluster (line 123) | func NewPreviousRaftCluster(t *testing.T, count int, name string) RaftCl... function NewUITRaftCluster (line 127) | func NewUITRaftCluster(t *testing.T, count int, name string) RaftCluster { function InitUIT (line 164) | func InitUIT(t *testing.T, id string) RaftNode { function InitUITWithStore (line 168) | func InitUITWithStore(t *testing.T, id string, store *raftprevious.Inmem... function InitPrevious (line 195) | func InitPrevious(t *testing.T, id string) RaftNode { function InitPreviousWithStore (line 200) | func InitPreviousWithStore(t *testing.T, id string, store *raft.InmemSto... function convertLogToUIT (line 227) | func convertLogToUIT(ll *raftprevious.Log) *raft.Log { function convertLogToPrevious (line 237) | func convertLogToPrevious(ll *raft.Log) *raftprevious.Log { function convertInMemStoreToPrevious (line 254) | func convertInMemStoreToPrevious(s *raft.InmemStore) *raftprevious.Inmem... function convertInMemStoreToUIT (line 285) | func convertInMemStoreToUIT(s *raftprevious.InmemStore) *raft.InmemStore { FILE: raft-compat/utils/test_utils.go function WaitForNewLeader (line 16) | func WaitForNewLeader(t *testing.T, oldLeader string, c testcluster.Raft... type future (line 50) | type future interface function WaitFuture (line 54) | func WaitFuture(t *testing.T, f future) { FILE: raft.go constant minCheckInterval (line 22) | minCheckInterval = 10 * time.Millisecond constant oldestLogGaugeInterval (line 23) | oldestLogGaugeInterval = 10 * time.Second constant rpcUnexpectedCommandError (line 24) | rpcUnexpectedCommandError = "unexpected command" method getRPCHeader (line 36) | func (r *Raft) getRPCHeader() RPCHeader { method checkRPCHeader (line 46) | func (r *Raft) checkRPCHeader(rpc RPC) error { function getSnapshotVersion (line 76) | func getSnapshotVersion(protocolVersion ProtocolVersion) SnapshotVersion { type commitTuple (line 84) | type commitTuple struct type leaderState (line 90) | type leaderState struct method setLeader (line 101) | func (r *Raft) setLeader(leaderAddr ServerAddress, leaderID ServerID) { method requestConfigChange (line 116) | func (r *Raft) requestConfigChange(req configurationChangeRequest, timeo... method run (line 136) | func (r *Raft) run() { method runFollower (line 159) | func (r *Raft) runFollower() { method liveBootstrap (line 262) | func (r *Raft) liveBootstrap(configuration Configuration) error { method runCandidate (line 286) | func (r *Raft) runCandidate() { method setLeadershipTransferInProgress (line 443) | func (r *Raft) setLeadershipTransferInProgress(v bool) { method getLeadershipTransferInProgress (line 451) | func (r *Raft) getLeadershipTransferInProgress() bool { method setupLeaderState (line 456) | func (r *Raft) setupLeaderState() { method runLeader (line 469) | func (r *Raft) runLeader() { method startStopReplication (line 583) | func (r *Raft) startStopReplication() { method configurationChangeChIfStable (line 654) | func (r *Raft) configurationChangeChIfStable() chan *configurationChange... method leaderLoop (line 668) | func (r *Raft) leaderLoop() { method verifyLeader (line 966) | func (r *Raft) verifyLeader(v *verifyFuture) { method leadershipTransfer (line 991) | func (r *Raft) leadershipTransfer(id ServerID, address ServerAddress, re... method checkLeaderLease (line 1037) | func (r *Raft) checkLeaderLease() time.Duration { method quorumSize (line 1087) | func (r *Raft) quorumSize() int { method restoreUserSnapshot (line 1105) | func (r *Raft) restoreUserSnapshot(meta *SnapshotMeta, reader io.Reader)... method appendConfigurationEntry (line 1204) | func (r *Raft) appendConfigurationEntry(future *configurationChangeFutur... method dispatchLogs (line 1245) | func (r *Raft) dispatchLogs(applyLogs []*logFuture) { method processLogs (line 1293) | func (r *Raft) processLogs(index uint64, futures map[uint64]*logFuture) { method prepareLog (line 1363) | func (r *Raft) prepareLog(l *Log, future *logFuture) *commitTuple { method processRPC (line 1391) | func (r *Raft) processRPC(rpc RPC) { method processHeartbeat (line 1419) | func (r *Raft) processHeartbeat(rpc RPC) { method appendEntries (line 1441) | func (r *Raft) appendEntries(rpc RPC, a *AppendEntriesRequest) { method processConfigurationLogEntry (line 1586) | func (r *Raft) processConfigurationLogEntry(entry *Log) error { method requestVote (line 1604) | func (r *Raft) requestVote(rpc RPC, req *RequestVoteRequest) { method requestPreVote (line 1737) | func (r *Raft) requestPreVote(rpc RPC, req *RequestPreVoteRequest) { method installSnapshot (line 1815) | func (r *Raft) installSnapshot(rpc RPC, req *InstallSnapshotRequest) { method setLastContact (line 1957) | func (r *Raft) setLastContact() { type voteResult (line 1963) | type voteResult struct type preVoteResult (line 1968) | type preVoteResult struct method electSelf (line 1977) | func (r *Raft) electSelf() <-chan *voteResult { method preElectSelf (line 2051) | func (r *Raft) preElectSelf() <-chan *preVoteResult { method persistVote (line 2131) | func (r *Raft) persistVote(term uint64, candidate []byte) error { method setCurrentTerm (line 2142) | func (r *Raft) setCurrentTerm(t uint64) { method setState (line 2153) | func (r *Raft) setState(state RaftState) { method pickServer (line 2164) | func (r *Raft) pickServer() *Server { method initiateLeadershipTransfer (line 2188) | func (r *Raft) initiateLeadershipTransfer(id *ServerID, address *ServerA... method timeoutNow (line 2210) | func (r *Raft) timeoutNow(rpc RPC, req *TimeoutNowRequest) { method setLatestConfiguration (line 2218) | func (r *Raft) setLatestConfiguration(c Configuration, i uint64) { method setCommittedConfiguration (line 2225) | func (r *Raft) setCommittedConfiguration(c Configuration, i uint64) { method getLatestConfiguration (line 2233) | func (r *Raft) getLatestConfiguration() Configuration { FILE: raft_test.go function TestRaft_StartStop (line 25) | func TestRaft_StartStop(t *testing.T) { function TestRaft_AfterShutdown (line 30) | func TestRaft_AfterShutdown(t *testing.T) { function TestRaft_LiveBootstrap (line 65) | func TestRaft_LiveBootstrap(t *testing.T) { function TestRaft_LiveBootstrap_From_NonVoter (line 105) | func TestRaft_LiveBootstrap_From_NonVoter(t *testing.T) { function TestRaft_RecoverCluster_NoState (line 130) | func TestRaft_RecoverCluster_NoState(t *testing.T) { function TestRaft_RecoverCluster (line 151) | func TestRaft_RecoverCluster(t *testing.T) { function TestRaft_HasExistingState (line 255) | func TestRaft_HasExistingState(t *testing.T) { function TestRaft_SingleNode (line 297) | func TestRaft_SingleNode(t *testing.T) { function TestRaft_TripleNode (line 340) | func TestRaft_TripleNode(t *testing.T) { function TestRaft_LeaderFail (line 358) | func TestRaft_LeaderFail(t *testing.T) { function TestRaft_BehindFollower (line 435) | func TestRaft_BehindFollower(t *testing.T) { function TestRaft_ApplyNonLeader (line 475) | func TestRaft_ApplyNonLeader(t *testing.T) { function TestRaft_ApplyConcurrent (line 502) | func TestRaft_ApplyConcurrent(t *testing.T) { function TestRaft_ApplyConcurrent_Timeout (line 553) | func TestRaft_ApplyConcurrent_Timeout(t *testing.T) { function TestRaft_JoinNode (line 593) | func TestRaft_JoinNode(t *testing.T) { function TestRaft_JoinNode_ConfigStore (line 621) | func TestRaft_JoinNode_ConfigStore(t *testing.T) { function TestRaft_RemoveFollower (line 689) | func TestRaft_RemoveFollower(t *testing.T) { function TestRaft_RemoveLeader (line 730) | func TestRaft_RemoveLeader(t *testing.T) { function TestRaft_RemoveLeader_NoShutdown (line 778) | func TestRaft_RemoveLeader_NoShutdown(t *testing.T) { function TestRaft_RemoveFollower_SplitCluster (line 841) | func TestRaft_RemoveFollower_SplitCluster(t *testing.T) { function TestRaft_AddKnownPeer (line 878) | func TestRaft_AddKnownPeer(t *testing.T) { function TestRaft_RemoveUnknownPeer (line 917) | func TestRaft_RemoveUnknownPeer(t *testing.T) { function TestRaft_SnapshotRestore (line 956) | func TestRaft_SnapshotRestore(t *testing.T) { function TestRaft_RestoreSnapshotOnStartup_Monotonic (line 1016) | func TestRaft_RestoreSnapshotOnStartup_Monotonic(t *testing.T) { function TestRaft_SnapshotRestore_Progress (line 1098) | func TestRaft_SnapshotRestore_Progress(t *testing.T) { type lockedBytesBuffer (line 1194) | type lockedBytesBuffer struct method Write (line 1199) | func (b *lockedBytesBuffer) Write(p []byte) (n int, err error) { method String (line 1205) | func (b *lockedBytesBuffer) String() string { function TestRaft_NoRestoreOnStart (line 1217) | func TestRaft_NoRestoreOnStart(t *testing.T) { function TestRaft_SnapshotRestore_PeerChange (line 1260) | func TestRaft_SnapshotRestore_PeerChange(t *testing.T) { function TestRaft_AutoSnapshot (line 1366) | func TestRaft_AutoSnapshot(t *testing.T) { function TestRaft_UserSnapshot (line 1396) | func TestRaft_UserSnapshot(t *testing.T) { function snapshotAndRestore (line 1434) | func snapshotAndRestore(t *testing.T, offset uint64, monotonicLogStore b... function TestRaft_UserRestore (line 1572) | func TestRaft_UserRestore(t *testing.T) { function TestRaft_SendSnapshotFollower (line 1598) | func TestRaft_SendSnapshotFollower(t *testing.T) { function TestRaft_SendSnapshotAndLogsFollower (line 1640) | func TestRaft_SendSnapshotAndLogsFollower(t *testing.T) { function TestRaft_ReJoinFollower (line 1694) | func TestRaft_ReJoinFollower(t *testing.T) { function TestRaft_LeaderLeaseExpire (line 1771) | func TestRaft_LeaderLeaseExpire(t *testing.T) { function TestRaft_Barrier (line 1838) | func TestRaft_Barrier(t *testing.T) { function TestRaft_VerifyLeader (line 1866) | func TestRaft_VerifyLeader(t *testing.T) { function TestRaft_VerifyLeader_Single (line 1883) | func TestRaft_VerifyLeader_Single(t *testing.T) { function TestRaft_VerifyLeader_Fail (line 1900) | func TestRaft_VerifyLeader_Fail(t *testing.T) { function TestRaft_VerifyLeader_PartialConnect (line 1940) | func TestRaft_VerifyLeader_PartialConnect(t *testing.T) { function TestRaft_NotifyCh (line 1974) | func TestRaft_NotifyCh(t *testing.T) { function TestRaft_AppendEntry (line 2005) | func TestRaft_AppendEntry(t *testing.T) { function TestRaft_PreVoteMixedCluster (line 2068) | func TestRaft_PreVoteMixedCluster(t *testing.T) { function TestRaft_PreVoteAvoidElectionWithPartition (line 2126) | func TestRaft_PreVoteAvoidElectionWithPartition(t *testing.T) { function TestRaft_VotingGrant_WhenLeaderAvailable (line 2157) | func TestRaft_VotingGrant_WhenLeaderAvailable(t *testing.T) { function TestRaft_ProtocolVersion_RejectRPC (line 2204) | func TestRaft_ProtocolVersion_RejectRPC(t *testing.T) { function TestRaft_ProtocolVersion_Upgrade_1_2 (line 2236) | func TestRaft_ProtocolVersion_Upgrade_1_2(t *testing.T) { function TestRaft_ProtocolVersion_Upgrade_2_3 (line 2279) | func TestRaft_ProtocolVersion_Upgrade_2_3(t *testing.T) { function TestRaft_LeaderID_Propagated (line 2313) | func TestRaft_LeaderID_Propagated(t *testing.T) { function TestRaft_LeadershipTransferInProgress (line 2342) | func TestRaft_LeadershipTransferInProgress(t *testing.T) { function pointerToString (line 2360) | func pointerToString(s string) *string { function TestRaft_LeadershipTransferPickServer (line 2364) | func TestRaft_LeadershipTransferPickServer(t *testing.T) { function TestRaft_LeadershipTransfer (line 2402) | func TestRaft_LeadershipTransfer(t *testing.T) { function TestRaft_LeadershipTransferWithOneNode (line 2417) | func TestRaft_LeadershipTransferWithOneNode(t *testing.T) { function TestRaft_LeadershipTransferWithWrites (line 2433) | func TestRaft_LeadershipTransferWithWrites(t *testing.T) { function TestRaft_LeadershipTransferWithSevenNodes (line 2488) | func TestRaft_LeadershipTransferWithSevenNodes(t *testing.T) { function TestRaft_LeadershipTransferToInvalidID (line 2502) | func TestRaft_LeadershipTransferToInvalidID(t *testing.T) { function TestRaft_LeadershipTransferToInvalidAddress (line 2518) | func TestRaft_LeadershipTransferToInvalidAddress(t *testing.T) { function TestRaft_LeadershipTransferToBehindServer (line 2534) | func TestRaft_LeadershipTransferToBehindServer(t *testing.T) { function TestRaft_LeadershipTransferToItself (line 2555) | func TestRaft_LeadershipTransferToItself(t *testing.T) { function TestRaft_LeadershipTransferLeaderRejectsClientRequests (line 2572) | func TestRaft_LeadershipTransferLeaderRejectsClientRequests(t *testing.T) { function TestRaft_LeadershipTransferLeaderReplicationTimeout (line 2606) | func TestRaft_LeadershipTransferLeaderReplicationTimeout(t *testing.T) { function TestRaft_LeadershipTransferIgnoresNonvoters (line 2636) | func TestRaft_LeadershipTransferIgnoresNonvoters(t *testing.T) { function TestRaft_LeadershipTransferStopRightAway (line 2659) | func TestRaft_LeadershipTransferStopRightAway(t *testing.T) { function TestRaft_GetConfigurationNoBootstrap (line 2673) | func TestRaft_GetConfigurationNoBootstrap(t *testing.T) { function TestRaft_LogStoreIsMonotonic (line 2710) | func TestRaft_LogStoreIsMonotonic(t *testing.T) { function TestRaft_CacheLogWithStoreError (line 2745) | func TestRaft_CacheLogWithStoreError(t *testing.T) { function TestRaft_ReloadConfig (line 2795) | func TestRaft_ReloadConfig(t *testing.T) { function TestRaft_ReloadConfigValidates (line 2826) | func TestRaft_ReloadConfigValidates(t *testing.T) { function TestRaft_InstallSnapshot_InvalidPeers (line 2881) | func TestRaft_InstallSnapshot_InvalidPeers(t *testing.T) { function TestRaft_VoteNotGranted_WhenNodeNotInCluster (line 2902) | func TestRaft_VoteNotGranted_WhenNodeNotInCluster(t *testing.T) { function TestRaft_ClusterCanRegainStability_WhenNonVoterWithHigherTermJoin (line 2974) | func TestRaft_ClusterCanRegainStability_WhenNonVoterWithHigherTermJoin(t... function TestRaft_FollowerRemovalNoElection (line 3066) | func TestRaft_FollowerRemovalNoElection(t *testing.T) { function waitForState (line 3123) | func waitForState(follower *Raft, state RaftState) { function waitForLeader (line 3131) | func waitForLeader(c *cluster) error { function TestRaft_runFollower_State_Transition (line 3144) | func TestRaft_runFollower_State_Transition(t *testing.T) { function TestRaft_runFollower_ReloadTimeoutConfigs (line 3188) | func TestRaft_runFollower_ReloadTimeoutConfigs(t *testing.T) { function TestRaft_PreVote_ShouldNotRejectLeader (line 3222) | func TestRaft_PreVote_ShouldNotRejectLeader(t *testing.T) { function TestRaft_PreVote_ShouldRejectNonLeader (line 3264) | func TestRaft_PreVote_ShouldRejectNonLeader(t *testing.T) { FILE: replication.go constant maxFailureScale (line 17) | maxFailureScale = 12 constant failureWait (line 18) | failureWait = 10 * time.Millisecond type followerReplication (line 33) | type followerReplication struct method notifyAll (line 100) | func (s *followerReplication) notifyAll(leader bool) { method cleanNotify (line 114) | func (s *followerReplication) cleanNotify(v *verifyFuture) { method LastContact (line 121) | func (s *followerReplication) LastContact() time.Time { method setLastContact (line 129) | func (s *followerReplication) setLastContact() { method replicate (line 137) | func (r *Raft) replicate(s *followerReplication) { method replicateTo (line 202) | func (r *Raft) replicateTo(s *followerReplication, lastIndex uint64) (sh... method sendLatestSnapshot (line 299) | func (r *Raft) sendLatestSnapshot(s *followerReplication) (bool, error) { method heartbeat (line 388) | func (r *Raft) heartbeat(s *followerReplication, stopCh chan struct{}) { method pipelineReplicate (line 446) | func (r *Raft) pipelineReplicate(s *followerReplication) error { method pipelineSend (line 512) | func (r *Raft) pipelineSend(s *followerReplication, p AppendPipeline, ne... method pipelineDecode (line 534) | func (r *Raft) pipelineDecode(s *followerReplication, p AppendPipeline, ... method setupAppendEntries (line 570) | func (r *Raft) setupAppendEntries(s *followerReplication, req *AppendEnt... method setPreviousLog (line 587) | func (r *Raft) setPreviousLog(req *AppendEntriesRequest, nextIndex uint6... method setNewLogs (line 614) | func (r *Raft) setNewLogs(req *AppendEntriesRequest, nextIndex, lastInde... function appendStats (line 633) | func appendStats(peer string, start time.Time, logs float32, skipLegacy ... method handleStaleTerm (line 646) | func (r *Raft) handleStaleTerm(s *followerReplication) { function updateLastAppended (line 655) | func updateLastAppended(s *followerReplication, req *AppendEntriesReques... FILE: saturation.go type saturationMetric (line 22) | type saturationMetric struct method sleeping (line 56) | func (s *saturationMetric) sleeping() { method working (line 72) | func (s *saturationMetric) working() { method report (line 95) | func (s *saturationMetric) report() { function newSaturationMetric (line 44) | func newSaturationMetric(name []string, reportInterval time.Duration) *s... FILE: saturation_test.go function TestSaturationMetric (line 13) | func TestSaturationMetric(t *testing.T) { function TestSaturationMetric_IncorrectUsage (line 54) | func TestSaturationMetric_IncorrectUsage(t *testing.T) { FILE: snapshot.go type SnapshotMeta (line 15) | type SnapshotMeta struct type SnapshotStore (line 45) | type SnapshotStore interface type SnapshotSink (line 63) | type SnapshotSink interface method runSnapshots (line 72) | func (r *Raft) runSnapshots() { method shouldSnapshot (line 106) | func (r *Raft) shouldSnapshot() bool { method takeSnapshot (line 125) | func (r *Raft) takeSnapshot() (string, error) { method compactLogsWithTrailing (line 216) | func (r *Raft) compactLogsWithTrailing(snapIdx uint64, lastLogIdx uint64... method compactLogs (line 252) | func (r *Raft) compactLogs(snapIdx uint64) error { method removeOldLogs (line 264) | func (r *Raft) removeOldLogs() error { FILE: stable.go type StableStore (line 8) | type StableStore interface FILE: state.go type RaftState (line 13) | type RaftState method String (line 29) | func (s RaftState) String() string { constant Follower (line 17) | Follower RaftState = iota constant Candidate (line 20) | Candidate constant Leader (line 23) | Leader constant Shutdown (line 26) | Shutdown type raftState (line 47) | type raftState struct method getState (line 79) | func (r *raftState) getState() RaftState { method setState (line 84) | func (r *raftState) setState(s RaftState) { method getCurrentTerm (line 89) | func (r *raftState) getCurrentTerm() uint64 { method setCurrentTerm (line 93) | func (r *raftState) setCurrentTerm(term uint64) { method getLastLog (line 97) | func (r *raftState) getLastLog() (index, term uint64) { method setLastLog (line 105) | func (r *raftState) setLastLog(index, term uint64) { method getLastSnapshot (line 112) | func (r *raftState) getLastSnapshot() (index, term uint64) { method setLastSnapshot (line 120) | func (r *raftState) setLastSnapshot(index, term uint64) { method getCommitIndex (line 127) | func (r *raftState) getCommitIndex() uint64 { method setCommitIndex (line 131) | func (r *raftState) setCommitIndex(index uint64) { method getLastApplied (line 135) | func (r *raftState) getLastApplied() uint64 { method setLastApplied (line 139) | func (r *raftState) setLastApplied(index uint64) { method goFunc (line 145) | func (r *raftState) goFunc(f func()) { method waitShutdown (line 153) | func (r *raftState) waitShutdown() { method getLastIndex (line 159) | func (r *raftState) getLastIndex() uint64 { method getLastEntry (line 167) | func (r *raftState) getLastEntry() (uint64, uint64) { FILE: tcp_transport.go type TCPStreamLayer (line 21) | type TCPStreamLayer struct method Dial (line 99) | func (t *TCPStreamLayer) Dial(address ServerAddress, timeout time.Dura... method Accept (line 104) | func (t *TCPStreamLayer) Accept() (c net.Conn, err error) { method Close (line 109) | func (t *TCPStreamLayer) Close() (err error) { method Addr (line 114) | func (t *TCPStreamLayer) Addr() net.Addr { function NewTCPTransport (line 28) | func NewTCPTransport( function NewTCPTransportWithLogger (line 42) | func NewTCPTransportWithLogger( function NewTCPTransportWithConfig (line 56) | func NewTCPTransportWithConfig( function newTCPTransport (line 67) | func newTCPTransport(bindAddr string, FILE: tcp_transport_test.go function TestTCPTransport_BadAddr (line 11) | func TestTCPTransport_BadAddr(t *testing.T) { function TestTCPTransport_EmptyAddr (line 18) | func TestTCPTransport_EmptyAddr(t *testing.T) { function TestTCPTransport_WithAdvertise (line 25) | func TestTCPTransport_WithAdvertise(t *testing.T) { FILE: testing.go function inmemConfig (line 24) | func inmemConfig(t testing.TB) *Config { type MockFSM (line 38) | type MockFSM struct method Apply (line 76) | func (m *MockFSM) Apply(log *Log) interface{} { method Snapshot (line 84) | func (m *MockFSM) Snapshot() (FSMSnapshot, error) { method Restore (line 91) | func (m *MockFSM) Restore(inp io.ReadCloser) error { method Logs (line 103) | func (m *MockFSM) Logs() [][]byte { type MockFSMConfigStore (line 45) | type MockFSMConfigStore struct method StoreConfiguration (line 110) | func (m *MockFSMConfigStore) StoreConfiguration(index uint64, config C... type WrappingFSM (line 50) | type WrappingFSM interface function getMockFSM (line 54) | func getMockFSM(fsm FSM) *MockFSM { type MockSnapshot (line 68) | type MockSnapshot struct method Persist (line 118) | func (m *MockSnapshot) Persist(sink SnapshotSink) error { method Release (line 130) | func (m *MockSnapshot) Release() { type MockMonotonicLogStore (line 135) | type MockMonotonicLogStore struct method IsMonotonic (line 140) | func (m *MockMonotonicLogStore) IsMonotonic() bool { method FirstIndex (line 145) | func (m *MockMonotonicLogStore) FirstIndex() (uint64, error) { method LastIndex (line 150) | func (m *MockMonotonicLogStore) LastIndex() (uint64, error) { method GetLog (line 155) | func (m *MockMonotonicLogStore) GetLog(index uint64, log *Log) error { method StoreLog (line 160) | func (m *MockMonotonicLogStore) StoreLog(log *Log) error { method StoreLogs (line 165) | func (m *MockMonotonicLogStore) StoreLogs(logs []*Log) error { method DeleteRange (line 170) | func (m *MockMonotonicLogStore) DeleteRange(min uint64, max uint64) er... type testLoggerAdapter (line 177) | type testLoggerAdapter struct method Write (line 182) | func (a *testLoggerAdapter) Write(d []byte) (int, error) { function newTestLogger (line 196) | func newTestLogger(tb testing.TB) hclog.Logger { function newTestLoggerWithPrefix (line 212) | func newTestLoggerWithPrefix(tb testing.TB, prefix string) hclog.Logger { type cluster (line 223) | type cluster struct method Merge (line 243) | func (c *cluster) Merge(other *cluster) { method RemoveServer (line 252) | func (c *cluster) RemoveServer(id ServerID) { method notifyFailed (line 264) | func (c *cluster) notifyFailed() { method Failf (line 280) | func (c *cluster) Failf(format string, args ...interface{}) { method FailNowf (line 291) | func (c *cluster) FailNowf(format string, args ...interface{}) { method Close (line 297) | func (c *cluster) Close() { method WaitEventChan (line 326) | func (c *cluster) WaitEventChan(ctx context.Context, filter FilterFn) ... method WaitEvent (line 348) | func (c *cluster) WaitEvent(filter FilterFn, timeout time.Duration) { method WaitForReplication (line 361) | func (c *cluster) WaitForReplication(fsmLength int) { method pollState (line 394) | func (c *cluster) pollState(s RaftState) ([]*Raft, uint64) { method GetInState (line 411) | func (c *cluster) GetInState(s RaftState) []*Raft { method Leader (line 491) | func (c *cluster) Leader() *Raft { method Followers (line 502) | func (c *cluster) Followers() []*Raft { method WaitForFollowers (line 509) | func (c *cluster) WaitForFollowers(expFollowers int) []*Raft { method FullyConnect (line 518) | func (c *cluster) FullyConnect() { method Disconnect (line 531) | func (c *cluster) Disconnect(a ServerAddress) { method Partition (line 544) | func (c *cluster) Partition(far []ServerAddress) { method IndexOf (line 578) | func (c *cluster) IndexOf(r *Raft) int { method EnsureLeader (line 589) | func (c *cluster) EnsureLeader(t *testing.T, expect ServerAddress) { method EnsureSame (line 614) | func (c *cluster) EnsureSame(t *testing.T) { method getConfiguration (line 681) | func (c *cluster) getConfiguration(r *Raft) Configuration { method EnsureSamePeers (line 692) | func (c *cluster) EnsureSamePeers(t *testing.T) { type MakeClusterOpts (line 719) | type MakeClusterOpts struct function makeCluster (line 733) | func makeCluster(t *testing.T, opts *MakeClusterOpts) *cluster { function MakeCluster (line 839) | func MakeCluster(n int, t *testing.T, conf *Config) *cluster { function MakeClusterNoBootstrap (line 848) | func MakeClusterNoBootstrap(n int, t *testing.T, conf *Config) *cluster { function MakeClusterCustom (line 856) | func MakeClusterCustom(t *testing.T, opts *MakeClusterOpts) *cluster { function FileSnapTest (line 861) | func FileSnapTest(t *testing.T) (string, *FileSnapshotStore) { FILE: testing_batch.go function init (line 8) | func init() { method ApplyBatch (line 16) | func (m *MockFSM) ApplyBatch(logs []*Log) []interface{} { FILE: transport.go type RPCResponse (line 12) | type RPCResponse struct type RPC (line 18) | type RPC struct method Respond (line 25) | func (r *RPC) Respond(resp interface{}, err error) { type Transport (line 31) | type Transport interface type WithPreVote (line 74) | type WithPreVote interface type WithClose (line 85) | type WithClose interface type LoopbackTransport (line 93) | type LoopbackTransport interface type WithPeers (line 103) | type WithPeers interface type AppendPipeline (line 112) | type AppendPipeline interface type AppendFuture (line 126) | type AppendFuture interface FILE: transport_test.go constant TTInmem (line 14) | TTInmem = iota constant numTestTransports (line 17) | numTestTransports function NewTestTransport (line 20) | func NewTestTransport(ttype int, addr ServerAddress) (ServerAddress, Loo... function TestTransport_StartStop (line 29) | func TestTransport_StartStop(t *testing.T) { function TestTransport_AppendEntries (line 38) | func TestTransport_AppendEntries(t *testing.T) { function TestTransport_AppendEntriesPipeline (line 102) | func TestTransport_AppendEntriesPipeline(t *testing.T) { function TestTransport_RequestVote (line 184) | func TestTransport_RequestVote(t *testing.T) { function TestTransport_InstallSnapshot (line 239) | func TestTransport_InstallSnapshot(t *testing.T) { function TestTransport_EncodeDecode (line 310) | func TestTransport_EncodeDecode(t *testing.T) { FILE: util.go function newSeed (line 20) | func newSeed() int64 { function randomTimeout (line 29) | func randomTimeout(minVal time.Duration) <-chan time.Time { function min (line 38) | func min(a, b uint64) uint64 { function max (line 46) | func max(a, b uint64) uint64 { function generateUUID (line 54) | func generateUUID() string { function asyncNotifyCh (line 70) | func asyncNotifyCh(ch chan struct{}) { function drainNotifyCh (line 79) | func drainNotifyCh(ch chan struct{}) bool { function overrideNotifyBool (line 93) | func overrideNotifyBool(ch chan bool, v bool) { function decodeMsgPack (line 108) | func decodeMsgPack(buf []byte, out interface{}) error { function encodeMsgPack (line 116) | func encodeMsgPack(in interface{}) (*bytes.Buffer, error) { function backoff (line 129) | func backoff(base time.Duration, round, limit uint64) time.Duration { function cappedExponentialBackoff (line 140) | func cappedExponentialBackoff(base time.Duration, round, limit uint64, c... type uint64Slice (line 156) | type uint64Slice method Len (line 158) | func (p uint64Slice) Len() int { return len(p) } method Less (line 159) | func (p uint64Slice) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 160) | func (p uint64Slice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } FILE: util_test.go function TestMsgpackEncodeTimeDefaultFormat (line 15) | func TestMsgpackEncodeTimeDefaultFormat(t *testing.T) { function TestRandomTimeout (line 33) | func TestRandomTimeout(t *testing.T) { function TestNewSeed (line 48) | func TestNewSeed(t *testing.T) { function TestRandomTimeout_NoTime (line 59) | func TestRandomTimeout_NoTime(t *testing.T) { function TestMin (line 66) | func TestMin(t *testing.T) { function TestMax (line 78) | func TestMax(t *testing.T) { function TestGenerateUUID (line 90) | func TestGenerateUUID(t *testing.T) { function TestBackoff (line 110) | func TestBackoff(t *testing.T) { function TestOverrideNotifyBool (line 132) | func TestOverrideNotifyBool(t *testing.T) {