Module External_watchdog.Processing

type 'a request = 'a Watchdog_parameters.request
type state

The type of state for the processing code of the external process.

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.