Module amqp_uri

Data Types

parse_result()

parse_result() = {ok, #amqp_params_network{}} | {ok, #amqp_params_direct{}} | {error, {any(), string()}}

Function Index

parse/1Parses an AMQP URI.
parse/2
remove_credentials/1

Function Details

parse/1

parse(Uri) -> {ok, #amqp_params_network{} | #amqp_params_direct{}} | {error, {Info, Uri}}

Parses an AMQP URI. If any of the URI parts are missing, the default values are used. If the hostname is zero-length, an #amqp_params_direct{} record is returned; otherwise, an #amqp_params_network{} record is returned. Extra parameters may be specified via the query string (e.g. "?heartbeat=5&auth_mechanism=external"). In case of failure, an {error, {Info, Uri}} tuple is returned.

The extra parameters that may be specified are channel_max, frame_max, heartbeat and auth_mechanism (the latter can appear more than once). The extra parameters that may be specified for an SSL connection are cacertfile, certfile, keyfile, verify, fail_if_no_peer_cert, password, and depth.

parse/2

parse(Uri::string() | binary(), DefaultVHost::binary()) -> parse_result()

remove_credentials/1

remove_credentials(URI::string() | binary()) -> string()


Generated by EDoc