[][src]Crate lol_core

Modules

compat

simple and backward-compatible RaftApp trait.

connection

utilities to connect nodes and cluster.

core_message

the request and response that RaftCore talks.

proto_compiled

proto file compiled.

snapshot

the snapshot abstraction and some basic implementations.

storage

the abstraction for the backing storage and some implementations.

Structs

Config

static configuration in initialization.

RaftCore

RaftCore is the heart of the Raft system. it does everything Raft should do like election, dynamic membership change, log replication, sending snapshot in stream and interaction with user-defined RaftApp.

TunableConfig

dynamic configurations.

Traits

RaftApp

the abstraction for user-defined application runs on the RaftCore.

Functions

start_server

Type Definitions

Id

each node is identified by a pair of ip and port.

Index

log index.