package activitypub_client

  1. Overview
  2. Docs

Module Activitypub_client.ConfSource

Client configuration

Sourcemodule AP = Activitypub
Sourceval iri_map_wrapper : 'a Ocf.Wrapper.t -> 'a Iri.Map.t Ocf.Wrapper.t
Sourcetype 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.

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

A configuration of a client can handle multiple actors.

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

Innovation. Community. Security.