package sihl-storage

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Sihl.Contract.Storage end
type file = {
  1. id : string;
  2. filename : string;
  3. filesize : int;
  4. mime : string;
}
type stored = {
  1. file : file;
  2. blob : string;
}
val name : string
exception Exception of string
module type Sig = Sihl.Contract.Storage.Sig
val file_to_sexp : file -> Sexplib0.Sexp.t
val pp_file : Stdlib.Format.formatter -> file -> unit
val set_mime : string -> file -> file
val set_filesize : int -> file -> file
val set_filename : string -> file -> file
val set_mime_stored : string -> stored -> stored
val set_filesize_stored : int -> stored -> stored
val set_filename_stored : string -> stored -> stored
val stored_to_sexp : stored -> Sexplib0.Sexp.t
val pp_stored : Stdlib.Format.formatter -> stored -> unit
val log_src : Logs.src
module Logs : Logs.LOG
module Make (Repo : sig ... end) : Sihl.Contract.Storage.Sig