View Source Pigeon.ADM.Config (Pigeon v1.6.3)
Validates configuration settings that initialize ADM.Worker instances.
Summary
Functions
Returns a new ADM.Config
with given opts
.
Returns whether a given config has valid credentials.
Types
Functions
Returns a new ADM.Config
with given opts
.
Examples
iex> Pigeon.ADM.Config.new(
...> name: :test,
...> client_id: "amzn.client.id",
...> client_secret: "1234secret"
...> )
%Pigeon.ADM.Config{name: :test, client_id: "amzn.client.id",
client_secret: "1234secret"}
Returns whether a given config has valid credentials.
Examples
iex> :adm_default |> new() |> valid?()
true