Angelus.Astro.Adapter behaviour (Angelus v1.0.0)

Copy Markdown View Source

Contract for astro engines used by Angelus.Astro.

Adapters resolve supported target atoms and return the public Astro struct for that target type.

Summary

Types

opt()

@type opt() :: term()

Callbacks

get_position(t, atom)

@callback get_position(DateTime.t(), atom()) ::
  {:ok, Angelus.Astro.Body.t() | Angelus.Astro.Point.t()} | {:error, term()}