External_watchdog.Processingtype parameters = Watchdog_parameters.parameterstype 'a request = 'a Watchdog_parameters.requestval initial_state : parameters -> state Tezos_base.TzPervasives.tzresult Lwt.tThe 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.thandle_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.