package oraft

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type leader_node = {
  1. host : string;
  2. port : int;
}
type current_state = {
  1. mode : Oraft__.Base.mode;
  2. term : int;
  3. leader : leader_node option;
}
type t = {
  1. conf : Oraft__.Conf.t;
  2. process : unit Lwt.t;
  3. post_command : string -> bool Lwt.t;
  4. current_state : unit -> current_state;
}
val start : conf_file:string -> apply_log:(node_id:int -> log_index:int -> log_data:string -> unit) -> t
OCaml

Innovation. Community. Security.