Module Resolver.Store

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 =
| Fixed_hash of contents -> t
| Variable_hash of hash -> contents -> t

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

type remote_fn = ?⁠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