├── README-cn.md ├── README.md ├── go.mod ├── raft ├── append_entries.go ├── commit.go ├── helper.go ├── persister.go ├── raft.go ├── raft_test.go ├── request_vote.go ├── rpc.go ├── snapshot.go └── state.go └── util └── log.go /README-cn.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/README-cn.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/README.md -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/owenliang/go-raft-lib 2 | 3 | go 1.14 4 | -------------------------------------------------------------------------------- /raft/append_entries.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/raft/append_entries.go -------------------------------------------------------------------------------- /raft/commit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/raft/commit.go -------------------------------------------------------------------------------- /raft/helper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/raft/helper.go -------------------------------------------------------------------------------- /raft/persister.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/raft/persister.go -------------------------------------------------------------------------------- /raft/raft.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/raft/raft.go -------------------------------------------------------------------------------- /raft/raft_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/raft/raft_test.go -------------------------------------------------------------------------------- /raft/request_vote.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/raft/request_vote.go -------------------------------------------------------------------------------- /raft/rpc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/raft/rpc.go -------------------------------------------------------------------------------- /raft/snapshot.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/raft/snapshot.go -------------------------------------------------------------------------------- /raft/state.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/raft/state.go -------------------------------------------------------------------------------- /util/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owenliang/go-raft/HEAD/util/log.go --------------------------------------------------------------------------------