package oraft

  1. Overview
  2. Docs
Raft consensus algorithm implemented in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
md5=01faf25fb31cd786385bdb7d013e8642
sha512=47f27e6afcc7619674e89d469a164009769c1be3e50ca35a69f741759df4bd16257ad36b75c28a5940c8221a4400f0c2ebb6c7f8d6c5b035841a9f3cb707f622

doc/oraft/Oraft/index.html

Module OraftSource

Sourcetype leader_node = {
  1. host : string;
  2. port : int;
}
Sourcetype current_state = {
  1. mode : Oraft__.Base.mode;
  2. term : int;
  3. leader : leader_node option;
}
Sourcetype t = {
  1. conf : Oraft__.Conf.t;
  2. process : unit Lwt.t;
  3. post_command : string -> bool Lwt.t;
  4. current_state : unit -> current_state;
}
Sourceval start : conf_file:string -> apply_log:(node_id:int -> log_index:int -> log_data:string -> unit) -> t
OCaml

Innovation. Community. Security.