IndieWeb.MF2.Remote (IndieWeb v0.0.49) View Source

Remote interactivity with Web resources.

This module holds logic for handling remote resources and converting them into Microformats2-JSON that can be used by the system.

Link to this section Summary

Functions

Fetches the MF2 of a URI.

Removes the MF2 cached for the provided MF2.

Refreshes the MF2 for the particular URI.

Stores the provided MF2 to cache.

Link to this section Functions

Fetches the MF2 of a URI.

Specs

flush(binary()) :: :ok

Removes the MF2 cached for the provided MF2.

Specs

refresh(binary()) :: {:ok, map()} | {:error, any()}

Refreshes the MF2 for the particular URI.

Specs

store(binary(), map()) :: :ok

Stores the provided MF2 to cache.