Liking cljdoc? Tell your friends :D

puppetlabs.pcp.message-v1


ByteArrayclj

Schema for a byte-array

Schema for a byte-array
sourceraw docstring

bytes->stringclj

(bytes->string bytes)

Returns a string given a byte-array

Returns a string given a byte-array
sourceraw docstring

chunk-codecclj

source

conversion-charsetclj

Charset used for the string <-> byte-array conversions

Charset used for the string <-> byte-array conversions
sourceraw docstring

decodeclj

(decode bytes)

Inputs: [bytes :- ByteArray] Returns: Message

Returns a message object from a network format message

Inputs: [bytes :- ByteArray]
Returns: Message

Returns a message object from a network format message
sourceraw docstring

decode-descriptorclj

(decode-descriptor byte)

Returns the clojure object for a chunk descriptor from a byte

Returns the clojure object for a chunk descriptor from a byte
sourceraw docstring

descriptor-codecclj

source

encodeclj

(encode message)

Inputs: [message :- Message] Returns: ByteArray

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

encode-descriptorclj

(encode-descriptor type)

Returns a binary representation of a chunk descriptor

Returns a binary representation of a chunk descriptor
sourceraw docstring

filter-privatecljdeprecated

(filter-private message)

Deprecated, use message->envelope if you need

Deprecated, use message->envelope if you need
sourceraw docstring

flag-bitsclj

source

FlagSetclj

Schema for the message flags

Schema for the message flags
sourceraw docstring

get-dataclj

(get-data message)

Inputs: [message :- Message] Returns: ByteArray

Returns the data from the data frame

Inputs: [message :- Message]
Returns: ByteArray

Returns the data from the data frame
sourceraw docstring

get-debugclj

(get-debug message)

Inputs: [message :- Message] Returns: ByteArray

Returns the data from the debug frame

Inputs: [message :- Message]
Returns: ByteArray

Returns the data from the debug frame
sourceraw docstring

get-json-dataclj

(get-json-data message)

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

Returns the data from the data frame decoded from json

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

Returns the data from the data frame decoded from json
sourceraw docstring

get-json-debugclj

(get-json-debug message)

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

Returns the data from the debug frame decoded from json

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

Returns the data from the debug frame decoded from json
sourceraw docstring

length-codecclj

source

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: v1-Envelope

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

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

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

message-codecclj

source

set-dataclj

(set-data message data)
(set-data message data flags)

Inputs: ([message :- Message data :- ByteArray] [message :- Message data :- ByteArray flags :- FlagSet]) Returns: Message

Sets the data for the data frame

Inputs: ([message :- Message data :- ByteArray] [message :- Message data :- ByteArray flags :- FlagSet])
Returns: Message

Sets the data for the data frame
sourceraw docstring

set-debugclj

(set-debug message data)
(set-debug message data flags)

Inputs: ([message :- Message data :- ByteArray] [message :- Message data :- ByteArray flags :- FlagSet]) Returns: Message

Sets the data for the debug frame

Inputs: ([message :- Message data :- ByteArray] [message :- Message data :- ByteArray flags :- FlagSet])
Returns: Message

Sets the data for the debug frame
sourceraw docstring

set-expiryclj

(set-expiry message timestamp)
(set-expiry message number unit)

Inputs: ([message :- Message number :- s/Int unit :- s/Keyword] [message :- Message timestamp :- ISO8601]) Returns: Message

Returns a message with new expiry

Inputs: ([message :- Message number :- s/Int unit :- s/Keyword] [message :- Message timestamp :- ISO8601])
Returns: Message

Returns a message with new expiry
sourceraw docstring

set-json-dataclj

(set-json-data message data)

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

Sets the data to be the json byte-array version of data

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

Sets the data to be the json byte-array version of data
sourceraw docstring

set-json-debugclj

(set-json-debug message data)

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

Sets the debug data to be the json byte-array version of data

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

Sets the debug data to be the json byte-array version of data
sourceraw docstring

string->bytesclj

(string->bytes s)

Returns an array of bytes from a string

Returns an array of bytes from a string
sourceraw docstring

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

× close