graphito v0.1.1 Graphito.Behaviour behaviour

Behaviour for Graphite client.

Link to this section Summary

Types

Options for a operation

Link to this section Types

Link to this type opts()
opts() :: [headers: map(), query: Keyword.t(), url: String.t()]

Options for a operation:

  • headers: List of headers that will be send in the request.
  • query: Query params.
  • url: The GraphQL host url.

Link to this section Callbacks

Link to this callback run(arg0, opts)
run(String.t(), opts()) ::
  {:ok, Graphito.Response.t()} | {:error, Graphito.Response.Error.t()}