package sihl

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Core.ContainerSource

The service container manages service lifecycles. It knows how to start services in the right order by respecting the defined dependencies. Use it to implement you own services.

Sourcetype start = Core__.Core_ctx.t -> Core__.Core_ctx.t Lwt.t
Sourcetype stop = Core__.Core_ctx.t -> unit Lwt.t
Sourcemodule Lifecycle : sig ... end
Sourcemodule type SERVICE = sig ... end
Sourceval collect_all_lifecycles : (module SERVICE) list -> (string, Lifecycle.t, Base.String.comparator_witness) Base.Map.t
Sourceval top_sort_lifecycles : (module SERVICE) list -> Lifecycle.t list
Sourceval start_services : (module SERVICE) list -> ((module SERVICE) list * Core__.Core_ctx.t) Lwt.t
Sourceval stop_services : Core__.Core_ctx.t -> (module SERVICE) list -> unit Lwt.t
OCaml

Innovation. Community. Security.