package activitypub_server

  1. Overview
  2. Docs

Module Activitypub_server.MediaSource

Handling media files.

Sourcemodule AP = Activitypub
Sourcemodule Log = AP.Log
Sourcetype info = {
  1. mime : Ldp.Ct.mime;
  2. actor : Iri.t;
  3. upload_date : Ptime.t;
}
Sourceval default_info : info
Sourceval info_wrapper : info Ocf.Wrapper.t
Sourceval info_path : string -> string
Sourceval read_info : Lwt_io.file_name -> info option Lwt.t
Sourceval write_info : info -> Lwt_io.file_name -> unit Lwt.t
Sourceval info : string -> info option Lwt.t
Sourceval get : Lwt_io.file_name -> string option Lwt.t
Sourceval store_file : actor:Iri.t -> mime:Ldp.Ct.mime -> path:Lwt_io.file_name -> string -> (unit, exn) result Lwt.t