Module amqp_uri

Function Index

parse/1Parses an AMQP URI.

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"). In case of failure, an {error, {Info, Uri}} tuple is returned.

The extra parameters that may be specified are channel_max, frame_max, and heartbeat. The extra parameters that may be specified for an SSL connection are cacertfile, certfile, keyfile, verify, and fail_if_no_peer_cert.


Generated by EDoc, Mar 19 2012, 10:44:59.