package irmin-unix

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

The type for store configurations. A configuration value contains: the store implementation a creator of store's state and endpoint.

type store_functor =
  1. | Fixed_hash of contents -> t
  2. | Variable_hash of hash -> contents -> t
  3. | Fixed of t

The type of constructors of a store configuration. Depending on the backend, a store may require a hash function.

type remote_fn = ?ctx:Mimic.ctx -> ?headers:Cohttp.Header.t -> string -> Irmin.remote
val v : ?remote:remote_fn -> (module Irmin.S) -> t
val mem : hash -> contents -> t
val irf : hash -> contents -> t
val http : t -> t
val git : contents -> t
val find : string -> store_functor
val add : string -> ?default:bool -> store_functor -> unit
OCaml

Innovation. Community. Security.