package sihl
The Sihl web framework
Install
dune-project
Dependency
Authors
Maintainers
Sources
3.0.4.tar.gz
md5=8a2754d6e5b9eafb8ff332abdb1ceb7d
sha512=3230a1315686b0b6f90a41ceda27ab036e178184ab13d5a98f64d6d987caf4a8a5d94ed78bc8e79b0ee3b40ccbb1dbdc71ffe171f1aef1f18aba81fc720e3a1b
doc/sihl/Sihl/Container/index.html
Module Sihl.ContainerSource
A module to manage the service container and service lifecycles.
The service container knows how to start services in the right order by respecting the defined dependencies. Use it to implement your own services.
Lifecycle
Every service has a lifecycle, meaning it can be started and stopped. *
Service
A service has a start and stop function and a lifecycle. *
start_services services starts a list of services. The order does not matter as the services are started in the order of their dependencies. (No service is started before its dependency)
stop_services ctx services stops a list of services with a context ctx. The order does not matter as the services are stopped in the order of their dependencies. (No service is stopped after its dependency)