package mc2

  1. Overview
  2. Docs
type t
val create : unit -> t

Create a registry

val register : t -> 'a Key.t -> 'a -> unit

Register a service

val find : t -> 'a Key.t -> 'a option

Find a service by its key

val find_exn : t -> 'a Key.t -> 'a

Find a service by its key

  • raises Util.Error

    if the key is not found

val to_iter : t -> any Iter.t

all registered services

OCaml

Innovation. Community. Security.