View Source Lightning.Config behaviour (Lightning v2.10.4)
Centralised runtime configuration for Lightning.
Summary
Functions
Returns the Apollo server configuration.
Returns the default maximum run duration in seconds.
The grace period is configurable and is used to wait for an additional amount of time after a given run was meant to be finished.
Returns the Token signer used to sign and verify run tokens.
Returns the Token signer used to verify worker tokens.
Callbacks
@callback cors_origin() :: list()
@callback default_max_run_duration() :: integer()
@callback email_sender_name() :: String.t()
@callback grace_period() :: integer()
@callback instance_admin_email() :: String.t()
@callback kafka_alternate_storage_enabled?() :: boolean()
@callback kafka_alternate_storage_file_path() :: String.t()
@callback kafka_duplicate_tracking_retention_seconds() :: integer()
@callback kafka_notification_embargo_seconds() :: integer()
@callback kafka_number_of_consumers() :: integer()
@callback kafka_number_of_messages_per_second() :: float()
@callback kafka_number_of_processors() :: integer()
@callback kafka_triggers_enabled?() :: boolean()
@callback purge_deleted_after_days() :: integer()
@callback repo_connection_token_signer() :: Joken.Signer.t()
@callback reset_password_token_validity_in_days() :: integer()
@callback run_token_signer() :: Joken.Signer.t()
@callback storage() :: term()
@callback token_signer() :: Joken.Signer.t()
@callback usage_tracking() :: Keyword.t()
@callback usage_tracking_cleartext_uuids_enabled?() :: boolean()
@callback usage_tracking_cron_opts() :: [Oban.Plugins.Cron.cron_input()]
@callback usage_tracking_enabled?() :: boolean()
@callback usage_tracking_host() :: String.t()
@callback usage_tracking_run_chunk_size() :: integer()
@callback worker_secret() :: binary() | nil
@callback worker_token_signer() :: Joken.Signer.t()
Functions
Returns the Apollo server configuration.
Returns the default maximum run duration in seconds.
The grace period is configurable and is used to wait for an additional amount of time after a given run was meant to be finished.
The returned value is in seconds.
Returns the Token signer used to sign and verify run tokens.
Returns the Token signer used to verify worker tokens.