Liking cljdoc? Tell your friends :D

puppetlabs.pcp.message-v2


decodeclj

(decode text)

Inputs: [text :- String] Returns: Message

Returns a message object from a text format used for transmission. Always validates input and output.

Inputs: [text :- String]
Returns: Message

Returns a message object from a text format used for transmission.
Always validates input and output.
sourceraw docstring

encodeclj

(encode message)

Inputs: [message :- Message] Returns: String

Returns a text representation of a message for transmission. Always validates input and output.

Inputs: [message :- Message]
Returns: String

Returns a text representation of a message for transmission.
Always validates input and output.
sourceraw docstring

get-dataclj

(get-data message)

Inputs: [message :- Message] Returns: s/Any

Returns the data

Inputs: [message :- Message]
Returns: s/Any

Returns the data
sourceraw docstring

make-messageclj

(make-message)
(make-message opts)
(make-message k v & kvs)

Inputs: ([] [k v & kvs] [opts]) Returns: Message

Returns a new empty message structure

Inputs: ([] [k v & kvs] [opts])
Returns: Message

Returns a new empty message structure
sourceraw docstring

Messageclj

Defines the message objects we're using

Defines the message objects we're using
sourceraw docstring

message->envelopeclj

(message->envelope message)

Inputs: [message :- Message] Returns: v2-Envelope

Returns the map without any of the known 'private' keys. Should map to an envelope schema.

Inputs: [message :- Message]
Returns: v2-Envelope

Returns the map without any of the known 'private' keys.  Should
map to an envelope schema.
sourceraw docstring

set-dataclj

(set-data message data)

Inputs: [message :- Message data :- s/Any] Returns: Message

Sets the data

Inputs: [message :- Message data :- s/Any]
Returns: Message

Sets the data
sourceraw docstring

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

× close