IndieWeb.App.Parser behaviour (IndieWeb v0.0.49) View Source

Provides serialized information about an application.

The goal of a parser is to take specialized logic and format it such that a user can get the following bits of information about it

  • Name
  • Homepage URI
  • Logo

Other information below are nice to have

  • Description
  • Categories
  • Author Information
  • Price

TODO: Allow extending for more types.

Link to this section Summary

Callbacks

Clears out any cached information for the provided URI.

Resolves information from the provided URI.

Link to this section Functions

Link to this section Callbacks

Specs

clear(uri :: String.t()) :: :ok

Clears out any cached information for the provided URI.

Specs

resolve(uri :: String.t()) :: {:ok, any()} | {:error, any()}

Resolves information from the provided URI.