Trust_systemThe trust system, instantiated with Coda-specific stuff.
module Actions : sig ... endmodule Banned_status : sig ... endmodule Peer_status : sig ... endmodule Peer_trust : sig ... endinclude module type of struct include Peer_trust endval create : string -> tval null : unit -> tval upcall_pipe :
t ->
[ `Ban of Network_peer.Peer.t * Core.Time.t
| `Heartbeat of Network_peer.Peer.t ]
Pipe_lib.Strict_pipe.Reader.tval record :
t ->
Logger.t ->
Network_peer.Peer.t ->
Actions.t ->
unit Async_kernel.Deferred.tval lookup_ip :
t ->
Core.Unix.Inet_addr.Blocking_sexp.t ->
(Network_peer.Peer.t * Peer_status.t) listval reset_ip :
t ->
Core.Unix.Inet_addr.Blocking_sexp.t ->
(Network_peer.Peer.t * Peer_status.t) listval peer_statuses : t -> (Network_peer.Peer.t * Peer_status.t) listval close : t -> unitmodule For_tests = Peer_trust.For_testsval record_envelope_sender :
t ->
Logger.t ->
Network_peer.Envelope.Sender.t ->
Actions.t ->
unit Async_kernel.Deferred.t