package oraft

  1. Overview
  2. Docs

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. post_command : string -> bool Lwt.t;
  3. current_state : unit -> current_state;
}
Sourceval start : conf_file:string -> apply_log: (node_id:int -> log_index:int -> log_data:string -> (unit, string) result) -> (t, string) result
OCaml

Innovation. Community. Security.