GoveeLights.HTTPClient behaviour (Govee Lights v0.2.0)

View Source

Behaviour for the HTTP client adapter used by GoveeLights.Api.

Configure a custom implementation via:

config :govee_lights, http_client: MyHTTPClient

The module must implement get/1 and put/1.

Summary

Callbacks

get(keyword)

@callback get(keyword()) :: {:ok, map()} | {:error, term()}

put(keyword)

@callback put(keyword()) :: {:ok, map()} | {:error, term()}

Functions

get(opts)

put(opts)