Liking cljdoc? Tell your friends :D

bunnicula.component.connection

Component holds open connection to RMQ

Component holds open connection to RMQ
raw docstring

Connectionclj

source

createclj

(create config)

Create RabbitMQ connection for given connection config. Config can either contain ':url' key with full url or can be map with username, password, host and port values. Config always need to contain vhost!

  • {:url 'amqp://user:password@localhost:5492' :vhost 'main'}
  • {:username 'user' :password 'password' :host 'localhost' :port '5492':vhost 'main'} Optional config params
  • :connection-name
    • if not specified username is used as connection-name
    • {:url 'amqp://user:password@localhost:5492' :vhost 'main' :connection-name 'conn1'}
Create RabbitMQ connection for given connection config.
Config can either contain ':url' key with full url
or can be map with username, password, host and port values.
Config always need to contain vhost!
- {:url 'amqp://user:password@localhost:5492' :vhost 'main'}
- {:username 'user' :password 'password' :host 'localhost' :port '5492':vhost 'main'}
Optional config params
- :connection-name
  - if not specified username is used as connection-name
  - {:url 'amqp://user:password@localhost:5492' :vhost 'main' :connection-name 'conn1'}
sourceraw docstring

extract-server-configclj

(extract-server-config {:keys [url host port username password vhost
                               connection-name]})
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close