View Source conf_file (conf v0.2.5)

Link to this section Summary

Link to this section Types

-type error_reason() :: {file, file_error_reason()} | {http, conf_http:error_reason()}.
-type file_error_reason() :: empty_path | invalid_path | unsupported_uri | file:posix().
-type mime_type() :: binary().
-type ref() :: binary() | uri_string:uri_map().

Link to this section Functions

-spec format_error(error_reason()) -> string().
-spec format_ref(ref()) -> binary().
-spec path_to_ref(binary()) -> {ok, ref()} | {error, error_reason()}.
-spec read(ref(), [mime_type(), ...]) -> {ok, term()} | {error, error_reason()}.