package activitypub_client

  1. Overview
  2. Docs
ActivityPub client in OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml-activitypub-0.1.0.tar.bz2
md5=332e6cab89ed63fda379aba37e00c40b
sha512=b6e5fe4948fdbe1d63227adc834c783821b609691c8db24438a8f76c5f6a2c60d1ecbd385baf1029901225abe2031d9aa994a0ed0321ea8082b3281e35552bb0

doc/activitypub_client/Activitypub_client/Conf/index.html

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