package activitypub_client

  1. Overview
  2. Docs

Client configuration

module AP = Activitypub
val iri_map_wrapper : 'a Ocf.Wrapper.t -> 'a Iri.Map.t Ocf.Wrapper.t
type actor = {
  1. jsonld_cache_dir : string option;
    (*

    directory to cache json-ld contexts

    *)
  2. cache_dir : string option;
    (*

    directory to cache remote resources

    *)
  3. cache_delay : int;
    (*

    cache validity delay

    *)
  4. mutable token : string option;
    (*

    token used to authenticate to server

    *)
  5. media_post_iri : Iri.t option;
    (*

    IRI used to post attachment files, retrieving IRIs to use in activities

    *)
}

Configuration to act as an actor.

val default_actor : actor
val actor_wrapper : actor Ocf.Wrapper.t
type t = {
  1. actors : actor Iri.Map.t;
}

A configuration of a client can handle multiple actors.

val default_t : t
val t_wrapper : t Ocf.Wrapper.t
OCaml

Innovation. Community. Security.