consensus

module
v0.0.0-...-2ce89f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: MIT

README

This is a simple implementation of the Raft distributed consensus algorithm in Go. Module structure allows to add and test diffrent consensus algorithms

Project structure

pkg/rpc

  • Network package that is based on net/rpc. Provides basic RPC client/server types and utilities

pkg/node

  • Peer-to-peer network node implemented with pkg/net tools
  • This package depends only on pkg/net and is designed to be consensus-agnostic

pkg/consensus

  • Main packange that contains consensus algorithms. This is the intended place to put a new algorithm or a decorated version of an existing one to
  • This package depends on pkg/net package which provides necessary means for managing a peer-to-peer network

To launch a throwaway build

go build ./...

To run tests

go test ./...

Directories

Path Synopsis
pkg
rpc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL