package irmin-unix

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

Module Resolver.StoreSource

Sourcetype t

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

Sourcetype 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.

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