External_watchdog.Processing
type parameters = Watchdog_parameters.parameters
type 'a request = 'a Watchdog_parameters.request
val initial_state : parameters -> state Tezos_base.TzPervasives.tzresult Lwt.t
The initial state for the external processing.
val handle_request :
parameters ->
state ->
'response request ->
[ `Continue of
('response
* (Tezos_profiler.Profiler.report option
* Tezos_profiler.Profiler.report option)
option)
Tezos_base.TzPervasives.tzresult
* state
| `Stop ]
Lwt.t
handle_request params state acc req
handles the request req
and returns `Continue (res, state)
if the external process should continue handling requests normally, where res
is the result and state
the new state. It returns `Stop
if the external process should stop after processing req
.