Scrypath.Config (scrypath v0.3.0)

Copy Markdown View Source

Internal runtime configuration helpers for Scrypath.

The functions here normalize and expose runtime settings for the common path and the backend-specific orchestration code.

Summary

Functions

ensure_oban_ready!(config)

@spec ensure_oban_ready!(keyword()) :: keyword()

fetch_backend!(config)

@spec fetch_backend!(keyword()) :: module()

fetch_meilisearch_url!(config)

@spec fetch_meilisearch_url!(keyword()) :: String.t()

inline_poll_interval(config)

@spec inline_poll_interval(keyword()) :: pos_integer()

inline_timeout(config)

@spec inline_timeout(keyword()) :: pos_integer()

meilisearch_api_key(config)

@spec meilisearch_api_key(keyword()) :: String.t() | nil

oban_dependency_available?()

@spec oban_dependency_available?() :: boolean()

oban_max_attempts(config)

@spec oban_max_attempts(keyword()) :: pos_integer()

oban_module(config)

@spec oban_module(keyword()) :: module() | nil

oban_queue(config)

@spec oban_queue(keyword()) :: atom() | nil

resolve!(opts)

@spec resolve!(keyword()) :: keyword()

Resolve runtime options by merging explicit opts over application defaults.