Kantoor.Feeds.Resolver behaviour (Kantoor v1.0.0)

Looks up the addresses of a feed's host name. A behaviour so that tests never touch DNS (config :kantoor, :feed_resolver).

Summary

Callbacks

lookup(host)

@callback lookup(host :: String.t()) :: {:ok, [:inet.ip_address()]} | {:error, term()}