Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
base.ml1 2 3 4 5 6 7type mode = FOLLOWER | CANDIDATE | LEADER [@@deriving show] type node = { id : int; host : string; port : int; app_port : int } [@@deriving show, yojson { exn = true }] type apply_log = node_id:int -> log_index:int -> log_data:string -> (unit, string) result