ExMaude.Config (ExMaude v0.4.0)

View Source

Runtime configuration readers shared by ExMaude components.

Values are read when an operation starts, so changing application configuration affects new commands without recompiling the project.

Summary

Functions

Returns the configured response-size ceiling when it is a positive integer.

Returns the configured default timeout when it is a positive integer.

Functions

max_response_bytes(fallback)

@spec max_response_bytes(pos_integer()) :: pos_integer()

Returns the configured response-size ceiling when it is a positive integer.

The upper bound keeps the value representable by every supported native backend. Invalid, missing, or larger values fall back to the caller's positive value.

timeout(fallback)

@spec timeout(pos_integer()) :: pos_integer()

Returns the configured default timeout when it is a positive integer.

Invalid or missing configuration falls back to the positive value supplied by the caller.