package sihl-contract

  1. Overview
  2. Docs
Contains Sihl service signatures

Install

Dune Dependency

Authors

Maintainers

Sources

sihl-0.2.0.tbz
sha256=8bb4f4cb8658b263d73095283dd57285bcb64756226cba7739710c561d8a7b48
sha512=539d248b2fc7716f44f813fff287df4ad8332ef2d1d1c4816b2827c0f7055237603c3af112a77468d7efcaeb5abc2f4bfbb5f8e08443cfb70d131380181bbbf2

doc/src/sihl-contract/session.ml.html

Source file session.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
open Sihl_type

exception Exception of string

module type Sig = sig
  include Sihl_core.Container.Service.Sig

  (* TODO [jerben] document API *)

  (* Session value *)
  val set_value : Session.t -> k:string -> v:string option -> unit Lwt.t
  val find_value : Session.t -> string -> string option Lwt.t

  (* Session *)
  val create : (string * string) list -> Session.t Lwt.t
  val find_opt : string -> Session.t option Lwt.t
  val find : string -> Session.t Lwt.t
  val find_all : unit -> Session.t list Lwt.t
  val register : unit -> Sihl_core.Container.Service.t
end
OCaml

Innovation. Community. Security.