package sihl

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

Module Service.MakeSource

Parameters

Signature

include Core.Container.SERVICE
Sourceval lifecycle : Core__.Core_container.Lifecycle.t
Sourceval start : Core__.Core_ctx.t -> Core__.Core_ctx.t Lwt.t
Sourceval stop : Core__.Core_ctx.t -> unit Lwt.t
Sourceval register_seed : Seed__.Seed_core.t -> unit

register_seed seed adds seed to the already registered seeds. Raises if a seed with the same name already exists.

Sourceval register_seeds : Seed__.Seed_core.t list -> unit

register_seeds seeds adds seeds to the already registered seeds. Raises if a seed with the same name already exists.

Sourceval get_seeds : unit -> Seed__.Seed_core.t list

get_seeds () returns the list of registered seeds.

Sourceval run_seed : Core.Ctx.t -> string -> unit Lwt.t

run_seed ctx name executed the seed with name by using the ctx as request context.

OCaml

Innovation. Community. Security.