View Source Defectoscope.Config (Defectoscope v0.1.0)

Provides configuration for Defectoscope

Summary

Functions

Returns the application key

Returns whether debug mode is enabled

Returns whether Defectoscope is enabled or disabled

Returns the backend endpoint url

Returns Req request options

Validates Defectoscope configuration

Functions

@spec app_key() :: String.t() | nil

Returns the application key

@spec debug_mode_enabled?() :: boolean()

Returns whether debug mode is enabled

@spec enabled?() :: boolean()

Returns whether Defectoscope is enabled or disabled

@spec endpoint_url() :: String.t()

Returns the backend endpoint url

@spec req_options() :: keyword()

Returns Req request options

@spec validate_config!() :: term()

Validates Defectoscope configuration