Module amqp_uri

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, and fail_if_no_peer_cert.

parse/2

parse(Uri, DefaultVHost) -> any()

remove_credentials/1

remove_credentials(URI) -> any()


Generated by EDoc, Jul 21 2015, 20:47:17.