package octez-libs

  1. Overview
  2. Docs

Sink is an Internal_event.SINK implementation logging through Tezt's Log.

type t

A sink can store any required state, e.g. a database handle, in a value of the t type see configure.

val uri_scheme : string

Registered sinks are a distinguished by their URI scheme.

When a registered sink is activated the configure function is called to initialize it. The parameters should be encoded or obtained from the URI (the scheme of the URI is already uri_scheme).

Predicate deciding whether a sink should handle the event or not.

A sink's main function is to handle incoming events from the code base.

A function to be called on graceful termination of processes (e.g. to flush file-descriptors, etc.).

OCaml

Innovation. Community. Security.