package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/octez-libs.requester/Tezos_requester/Requester_impl/index.html
Module Tezos_requester.Requester_impl
Source
This module contains various helpers to obtain * instances of Requester
Wrapper for the types being used, to avoid repetitions.
A disk table, that is in fact entirely in memory.
A simple memory table backed by Hashtbl
module Simple_probe
(P : PARAMETERS) :
Requester.PROBE
with type key = P.key
and type param = bool
and type notified_value = P.value
and type value = P.value
An instance of PROBE
that uses a bool
parameter * to decide whether the check goes through or not
An instance of REQUEST
that solely registers incoming requests
module Make_memory_full_requester
(H : Requester.HASH)
(P : PARAMETERS with type key = H.t)
(R : Requester.REQUEST with type param = unit and type key = H.t) :
Requester.FULL_REQUESTER
with type key = H.t
and type value = P.value
and type param = bool
and type request_param = unit
and type notified_value = P.value
and type store = Disk_memory_table(P).store
A helper to avoid having to use the full-fledged Requester.Make
* functor. We take the Requester.REQUEST
module as parameter (instead * of hardcoding the use of Simple_request
), because * callers that use Simple_request
likely want to observe * the underlying effects (see the ref
in Simple_request
) and hence * want to pass their own instance. * * Like Requester.Make
, this returns an instance of FULL_REQUESTER
. * Note that, contrary to a production requester, the instance returned * by this functor does not use the disk, it runs entirely in memory.