View Source Lightning.Config behaviour (Lightning v2.10.4)

Centralised runtime configuration for Lightning.

Summary

Callbacks

@callback apollo(key :: atom() | nil) :: map()
@callback check_flag?(atom()) :: boolean() | nil
@callback cors_origin() :: list()
Link to this callback

default_max_run_duration()

View Source
@callback default_max_run_duration() :: integer()
@callback email_sender_name() :: String.t()
@callback get_extension_mod(key :: atom()) :: any()
@callback google(key :: atom()) :: any()
@callback grace_period() :: integer()
@callback instance_admin_email() :: String.t()
Link to this callback

kafka_alternate_storage_enabled?()

View Source
@callback kafka_alternate_storage_enabled?() :: boolean()
Link to this callback

kafka_alternate_storage_file_path()

View Source
@callback kafka_alternate_storage_file_path() :: String.t()
Link to this callback

kafka_duplicate_tracking_retention_seconds()

View Source
@callback kafka_duplicate_tracking_retention_seconds() :: integer()
Link to this callback

kafka_notification_embargo_seconds()

View Source
@callback kafka_notification_embargo_seconds() :: integer()
Link to this callback

kafka_number_of_consumers()

View Source
@callback kafka_number_of_consumers() :: integer()
Link to this callback

kafka_number_of_messages_per_second()

View Source
@callback kafka_number_of_messages_per_second() :: float()
Link to this callback

kafka_number_of_processors()

View Source
@callback kafka_number_of_processors() :: integer()
Link to this callback

kafka_triggers_enabled?()

View Source
@callback kafka_triggers_enabled?() :: boolean()
@callback oauth_provider(key :: atom()) :: keyword() | nil
Link to this callback

purge_deleted_after_days()

View Source
@callback purge_deleted_after_days() :: integer()
Link to this callback

repo_connection_token_signer()

View Source
@callback repo_connection_token_signer() :: Joken.Signer.t()
Link to this callback

reset_password_token_validity_in_days()

View Source
@callback reset_password_token_validity_in_days() :: integer()
@callback run_token_signer() :: Joken.Signer.t()
@callback storage() :: term()
@callback storage(key :: atom()) :: term()
@callback token_signer() :: Joken.Signer.t()
@callback usage_tracking() :: Keyword.t()
Link to this callback

usage_tracking_cleartext_uuids_enabled?()

View Source
@callback usage_tracking_cleartext_uuids_enabled?() :: boolean()
Link to this callback

usage_tracking_cron_opts()

View Source
@callback usage_tracking_cron_opts() :: [Oban.Plugins.Cron.cron_input()]
Link to this callback

usage_tracking_enabled?()

View Source
@callback usage_tracking_enabled?() :: boolean()
@callback usage_tracking_host() :: String.t()
Link to this callback

usage_tracking_run_chunk_size()

View Source
@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.

Link to this function

default_max_run_duration()

View Source

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.

Link to this function

kafka_alternate_storage_enabled?()

View Source
Link to this function

kafka_alternate_storage_file_path()

View Source
Link to this function

kafka_duplicate_tracking_retention_seconds()

View Source
Link to this function

kafka_notification_embargo_seconds()

View Source
Link to this function

kafka_number_of_consumers()

View Source
Link to this function

kafka_number_of_messages_per_second()

View Source
Link to this function

kafka_number_of_processors()

View Source
Link to this function

kafka_triggers_enabled?()

View Source
Link to this function

purge_deleted_after_days()

View Source
Link to this function

repo_connection_token_signer()

View Source
Link to this function

reset_password_token_validity_in_days()

View Source

Returns the Token signer used to sign and verify run tokens.

Link to this function

usage_tracking_cleartext_uuids_enabled?()

View Source
Link to this function

usage_tracking_cron_opts()

View Source
Link to this function

usage_tracking_enabled?()

View Source
Link to this function

usage_tracking_run_chunk_size()

View Source

Returns the Token signer used to verify worker tokens.