IndieWeb v0.0.38 IndieWeb.App.Parser behaviour 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
  • Description
  • Homepage URI
  • Logo

Other information below are nice to have

  • 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

Link to this callback

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

Clears out any cached information for the provided URI.

Link to this callback

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

Resolves information from the provided URI.