The validated options of a running Imison instance.
new/1 fills in defaults for options left out and raises ArgumentError
when an option is missing, unknown, duplicate or of the wrong type, so a
host app with a bad config fails to boot.
Summary
Functions
Builds the config from the host's options, raising ArgumentError when they're invalid.
Checks the host's options without building the config.
Types
@type t() :: %Imison.Config{ channels: [module()], dashboard_url: String.t() | nil, enabled: boolean(), filter: [String.t()], from: String.t() | nil, ignore: [module()], mailer: module() | nil, name: term(), password: String.t(), prefix: String.t(), pubsub: atom() | nil, release: String.t() | nil, repo: module(), retention_days: pos_integer(), username: String.t() }
Functions
Builds the config from the host's options, raising ArgumentError when they're invalid.
Checks the host's options without building the config.