Processors¶
docproc’s core command, docproc.proc offers a set of different, simple processing tools, which can enhance, change, transform or send message contents.
The following pages provide in-depth information about the different processors and their usage.
- ContentValidator
- Validates the message contents against a predefined set of rules.
- ValueEnricher
- Enables docproc to add new content to a message or to modify existing content of the message.
- TemplateTransformer
- Provides templating support via Go’s
text/template
package. - HTMLRenderer
- Provides templating support via Go’s
html/template
package. It is similar to the TemplateTransformer, except thathtml/template
contains some builtin safety nets for HTML content. - FileWriter
- Writes a specific entry of the message content to a file on disk.
- HTTPSender
- Sends a specific entry of the message content via HTTP POST to an HTTP host.