Documentation ¶
Overview ¶
Package printer defines printer output and error carriers. These are mainly useful for debugging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytePrinter ¶
BytePrinter attempts to convert bytes to strings.
func WrapperPrinter ¶
WrapperPrinter attempts to deserialise a wrapper protobuf and returns a formatted overview.
Types ¶
type Carrier ¶
type Carrier struct { Context context.Context Logger journal.Logger Deserialiser func(w *flow.Wrapper) (out string) }
func (*Carrier) ValidErrorCarrier ¶ added in v0.0.10
func (*Carrier) WriteOutput ¶
func (c *Carrier) WriteOutput(message *flow.MessageContext) error
type Config ¶
type Config struct { // Deserialiser is the deserialisation function, it will get passed the byte array // that is being passed to the output and returns a string to be printed. // Defaults to BytePrinter Deserialiser func(w *flow.Wrapper) (out string) }
Config structure for the printer carriers.
Click to show internal directories.
Click to hide internal directories.