ExTrends v0.1.0 ExTrends.Behaviour behaviour View Source

A behaviour definition for the core operations of ExTrends

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %{
  http_method: :get,
  url: binary(),
  path: binary(),
  params: list(),
  parser: ({:ok | :error, term()} -> {:ok | :error, term()})
}

Link to this section Callbacks

Link to this callback

run(t)

View Source
run(t()) :: {:ok, term()} | {:error, term()}