ligo/src/lib_shell_services/worker_services.mli

107 lines
2.7 KiB
OCaml
Raw Normal View History

(**************************************************************************)
(* *)
2018-02-06 00:17:03 +04:00
(* Copyright (c) 2014 - 2018. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
open RPC_context
module Prevalidators : sig
open Prevalidator_worker_state
val list:
2018-02-16 04:26:24 +04:00
#simple -> (Chain_id.t * Worker_types.worker_status) list tzresult Lwt.t
val state:
2018-02-16 04:26:24 +04:00
#simple -> Chain_id.t -> (Request.view, Event.t) Worker_types.full_status tzresult Lwt.t
module S : sig
val list :
([ `POST ], unit,
unit, unit, unit,
2018-02-16 04:26:24 +04:00
(Chain_id.t * Worker_types.worker_status) list) RPC_service.t
val state :
([ `POST ], unit,
2018-02-16 04:26:24 +04:00
unit * Chain_id.t, unit, unit,
(Request.view, Event.t) Worker_types.full_status) RPC_service.t
end
end
module Block_validator : sig
open Block_validator_worker_state
val state:
#simple -> (Request.view, Event.t) Worker_types.full_status tzresult Lwt.t
module S : sig
val state :
([ `POST ], unit,
unit, unit, unit,
(Request.view, Event.t) Worker_types.full_status) RPC_service.t
end
end
module Peer_validators : sig
open Peer_validator_worker_state
val list:
2018-02-16 04:26:24 +04:00
#simple -> Chain_id.t ->
(P2p_peer.Id.t * Worker_types.worker_status) list tzresult Lwt.t
val state:
#simple ->
2018-02-16 04:26:24 +04:00
Chain_id.t -> P2p_peer.Id.t -> (Request.view, Event.t) Worker_types.full_status tzresult Lwt.t
module S : sig
val list :
([ `POST ], unit,
2018-02-16 04:26:24 +04:00
unit * Chain_id.t, unit, unit,
(P2p_peer.Id.t * Worker_types.worker_status) list) RPC_service.t
val state :
([ `POST ], unit,
2018-02-16 04:26:24 +04:00
(unit * Chain_id.t) * P2p_peer.Id.t, unit, unit,
(Request.view, Event.t) Worker_types.full_status) RPC_service.t
end
end
2018-02-16 04:26:24 +04:00
module Chain_validators : sig
2018-02-16 04:26:24 +04:00
open Chain_validator_worker_state
val list:
2018-02-16 04:26:24 +04:00
#simple -> (Chain_id.t * Worker_types.worker_status) list tzresult Lwt.t
val state:
2018-02-16 04:26:24 +04:00
#simple -> Chain_id.t -> (Request.view, Event.t) Worker_types.full_status tzresult Lwt.t
module S : sig
val list :
([ `POST ], unit,
unit, unit, unit,
2018-02-16 04:26:24 +04:00
(Chain_id.t * Worker_types.worker_status) list) RPC_service.t
val state :
([ `POST ], unit,
2018-02-16 04:26:24 +04:00
unit * Chain_id.t, unit, unit,
(Request.view, Event.t) Worker_types.full_status) RPC_service.t
end
end