package balancer

  1. Overview
  2. Docs

Module Balancer.NodeSource

Sourcetype t = {
  1. id : Cstruct.t;
  2. host : string;
  3. port : int;
}

Type of node, the id should be a hash of the nodes host : port tuple, by default it uses a 64 bit FNV1A implementation

Sourceval to_string : t -> string
Sourceval of_string : string -> t
Sourceval to_cstruct : t -> Cstruct.t
Sourceval of_cstruct : Cstruct.t -> t
Sourceval make : ?id:Cstruct.t -> host:string -> port:int -> unit -> t
Sourceval compare : t -> t -> int
OCaml

Innovation. Community. Security.