LogHog.API.Client behaviour (log_hog v0.0.1)

View Source

Summary

Types

client()

@type client() :: any()

response()

@type response() ::
  {:ok, %{status: non_neg_integer(), body: any()}} | {:error, Exception.t()}

Callbacks

client(api_key, cloud)

@callback client(api_key :: String.t(), cloud :: String.t()) :: %LogHog.API.Client{
  client: client(),
  module: atom()
}

request(client, method, url, opts)

@callback request(
  client :: client(),
  method :: atom(),
  url :: String.t(),
  opts :: keyword()
) :: response()