Parameter Make.P

type parameters

The type of parameters, which contains the necessary information to initialize the external process.

type 'response request

The type of requests understood by the external process. The external injector answers with responses of type `response for requests of type `response request.

val name : string

The name of the external process as it should appear in events. Can contain alphanumerical characters and underscores.

val request_pp : Stdlib.Format.formatter -> 'response request -> unit

A pretty printer for requests.

An accessor for the internal events configuration from the parameters.

Magic bytes used for the handshake between the launcher and the external process.

Encoding for the parameters.

type packed_request =
  1. | Erequest : _ request -> packed_request

Existential type of requests, used for encoding.

Encoding for (packed) requests.

val result_encoding : 'response request -> 'response Tezos_base.TzPervasives.Data_encoding.t

result_encoding request is the encoding for results in response to the request request.

val reconfigure_event_logging_request : Tezos_base.Internal_event_config.t -> unit request

The request to reconfigure the event logging system of the external process.

val terminate_request : packed_request

The request to terminate the external process.

val socket_path_prefix : string

The prefix for the external process socket filename.

Do not use it directly except for documentation purposes; use socket_path instead.

val socket_path : socket_dir:string -> pid:int -> string

Get the external process socket path.

socket_dir is the directory where the file should be put. pid is the process ID of the external process.

val command_line_args : socket_dir:string -> string * string list

command_line_args params ~socket_dir is (name, args) where name is the new name for the external process (zeroth argument) and args are the arguments that should be given to the external process executable to start.

val hypervisor_name : string
val share_sink : bool