UAInspector v0.19.0 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
Calls the optionally configured init method
Link to this section Functions
Link to this function
database_path()
View Source
database_path()
View Source
database_path() :: String.t() | nil
database_path() :: String.t() | nil
Returns the configured database path or nil
.
Link to this function
database_url(type, file) View Source
Returns the remote url of a database file.
Link to this function
default_remote_database?()
View Source
default_remote_database?()
View Source
default_remote_database?() :: boolean()
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
Provides access to configuration values with optional environment lookup.
Link to this function
init_env()
View Source
init_env()
View Source
init_env() :: :ok
init_env() :: :ok
Calls the optionally configured init method.