Liking cljdoc? Tell your friends :D

puppetlabs.pcp.broker.shared


Brokerclj

source

BrokerDatabaseclj

source

BrokerStateclj

source

build-and-register-metricsclj

(build-and-register-metrics broker)

Inputs: [broker :- Broker] Returns: #:s{Keyword Object}

Inputs: [broker :- Broker]
Returns: #:s{Keyword Object}
sourceraw docstring

deliver-messageclj

(deliver-message broker message sender)

Inputs: [broker :- Broker message :- Message sender :- (s/maybe Connection)]

Message consumer. Delivers a message to the websocket indicated by the :target field

Inputs: [broker :- Broker message :- Message sender :- (s/maybe Connection)]

Message consumer. Delivers a message to the websocket indicated by the :target field
sourceraw docstring

deliver-server-messageclj

(deliver-server-message broker message client)

Inputs: [broker :- Broker message :- Message client :- Connection]

Message consumer. Delivers a message to the websocket indicated by the :target field but only if it still routed to the connection specified by the client argument

Inputs: [broker :- Broker message :- Message client :- Connection]

Message consumer. Delivers a message to the websocket indicated by the :target field but only if it still
routed to the connection specified by the client argument
sourceraw docstring

get-connectionclj

(get-connection broker uri)

Inputs: [broker :- Broker uri :- p/Uri] Returns: (s/maybe Connection)

Inputs: [broker :- Broker uri :- p/Uri]
Returns: (s/maybe Connection)
sourceraw docstring

get-controllerclj

(get-controller broker uri)
(get-controller broker uri timeout)

Inputs: ([broker :- Broker uri :- p/Uri] [broker :- Broker uri :- p/Uri timeout :- s/Int]) Returns: (s/maybe Connection)

Inputs: ([broker :- Broker uri :- p/Uri] [broker :- Broker uri :- p/Uri timeout :- s/Int])
Returns: (s/maybe Connection)
sourceraw docstring

handle-delivery-failureclj

(handle-delivery-failure message sender reason)

Inputs: [message :- Message sender :- (s/maybe Connection) reason :- s/Str]

Send an error message with the specified description.

Inputs: [message :- Message sender :- (s/maybe Connection) reason :- s/Str]

Send an error message with the specified description.
sourceraw docstring

Inventoryclj

source

log-delivery-failureclj

(log-delivery-failure message reason)

Inputs: [message :- Message reason :- s/Str]

Log message delivery failure given the message and failure reason.

Inputs: [message :- Message reason :- s/Str]

Log message delivery failure given the message and failure reason.
sourceraw docstring

MessageLogclj

Schema for a loggable summary of a message

Schema for a loggable summary of a message
sourceraw docstring

PatternSetsclj

source

send-error-messageclj

(send-error-message in-reply-to-message description connection)

Inputs: [in-reply-to-message :- (s/maybe Message) description :- s/Str connection :- Connection]

Inputs: [in-reply-to-message :- (s/maybe Message) description :- s/Str connection :- Connection]
sourceraw docstring

send-messageclj

(send-message connection message)

Inputs: [connection :- Connection message :- Message]

Inputs: [connection :- Connection message :- Message]
sourceraw docstring

Subscriptionclj

source

summarizeclj

(summarize message)

Inputs: [message :- Message] Returns: MessageLog

Inputs: [message :- Message]
Returns: MessageLog
sourceraw docstring

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

× close