View Source SignalWire.Config (signal_wire v0.1.0)

Stores configuration variables used to communicate with Signal Wire's API.

Summary

Functions

Resolves the given key from the application's configuration

Functions

Link to this function

resolve(key, default \\ nil)

View Source

Resolves the given key from the application's configuration

You can configure the application multiple different ways

by setting a value directly i.e. config :signal_wire, json_library: Jason

by referencing an environment variable with a tuple config :signal_wire, auth_token: {:system, "SIGNAL_WIRE_TOKEN"}

by using a function call config :signal_wire, auth_token: fn -> System.get_env("SIGNAL_WIRE_TOKEN") end

by applying a module with function and arguments config :signal_wire, auth_token: {MyApp.SecretStore, :signal_wire_token, []}

or by referencing the value directly

config :signal_wire, space: "my_app"