Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 649 Bytes

runlength.rst

File metadata and controls

27 lines (19 loc) · 649 Bytes

Runlength

Runlength is a formatter that prepends the length of the message, followed by a ":". The actual message is formatted by a nested formatter.

Parameters

RunlengthSeparator

RunlengthSeparator sets the separator character placed after the runlength. This is set to ":" by default.

RunlengthDataFormatter

RunlengthDataFormatter defines the formatter for the data transferred as message. By default this is set to "format.Forward" .

Example

- "stream.Broadcast":
    Formatter: "format.Runlength"
    RunlengthSeparator: ":"
    RunlengthFormatter: "format.Envelope"