UAInspector v0.15.1 UAInspector.Config View Source

Utility module to simplify access to configuration values.

Link to this section Summary

Functions

Returns the configured database path or nil

Returns the remote url of a database file

Returns whether the remote database (at least one type) matches the default

Provides access to configuration values with optional environment lookup

Link to this section Functions

Link to this function database_path() View Source
database_path() :: String.t() | nil

Returns the configured database path or nil.

Link to this function database_url(type, file) View Source
database_url(atom(), String.t()) :: String.t()

Returns the remote url of a database file.

Link to this function default_remote_database?() View Source
default_remote_database?() :: boolean()

Returns whether the remote database (at least one type) matches the default.

Link to this function get(key, default \\ nil) View Source
get(atom() | [atom()], term()) :: term()

Provides access to configuration values with optional environment lookup.