View Source Replicate.Client.Behaviour behaviour (Replicate v1.3.0)

Documentation for the Client Behaviour

Link to this section Summary

Link to this section Callbacks

@callback request(method :: atom(), path :: String.t()) ::
  {:ok, String.t()} | {:error, String.t()}
Link to this callback

request(method, path, body)

View Source
@callback request(method :: atom(), path :: String.t(), body :: map()) ::
  {:ok, String.t()} | {:error, String.t()}
@callback wait({:ok, Replicate.Predictions.Prediction.t()}) ::
  {:ok, Replicate.Predictions.Prediction.t()} | {:error, String.t()}