package sihl

  1. Overview
  2. Docs

Module SihlSource

Sourcemodule App : sig ... end

This is the main module. Use App app to create Sihl apps.

Sourcemodule Configuration : sig ... end

Use Configuration to read app configuration from environment variables or .env files. Sihl services require a valid configuration at start-up time, they won't start if the configuration they need is not available.

Sourcemodule Web : sig ... end

Use Web to setup routers, handlers and middlewares to deal with HTTP requests.

Sourcemodule Database : sig ... end

Use Database to handle connection pooling, migrations and to query your database.

Sourcemodule Log : sig ... end

Use Log to set up a logger for your Sihl app. This module can not be used to actually log, use Logs for that.

Sourcemodule Cleaner : sig ... end

Use Cleaner to clean persisted service state. This is useful for cleaning the state before running tests.

Sourcemodule Command : sig ... end

A module to register and run CLI commands.

Sourcemodule Container : sig ... end

A module to manage the service container and service lifecycles.

Sourcemodule Time : sig ... end
Sourcemodule Schedule : sig ... end
Sourcemodule Random : sig ... end
Sourcemodule Contract : sig ... end
OCaml

Innovation. Community. Security.