<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rules on Dripline Documentation</title><link>https://matrix86.github.io/driplane/en/doc/rules/</link><description>Recent content in Rules on Dripline Documentation</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 17 Sep 2020 11:29:50 +0200</lastBuildDate><atom:link href="https://matrix86.github.io/driplane/en/doc/rules/index.xml" rel="self" type="application/rss+xml"/><item><title>First look</title><link>https://matrix86.github.io/driplane/en/doc/rules/definition/</link><pubDate>Wed, 16 Sep 2020 22:38:02 +0200</pubDate><guid>https://matrix86.github.io/driplane/en/doc/rules/definition/</guid><description>&lt;h2 id="first-look"&gt;First look&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;Driplane&lt;/code&gt; include a simple language to define where to get the stream and what operation to exec, or how to filter the data.&lt;/p&gt;
&lt;p&gt;In the rule could be defined 3 type of nodes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;FEEDER&lt;/code&gt; : it is the node responsible for creating of a stream of data (it reads every changes on a file, gets tweets from Twitter, etc..)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;FILTER&lt;/code&gt; : it receives data from a feeder or another filter and checks some conditions on them or makes some changes on them. It sends the data to the next filter &lt;strong&gt;ONLY&lt;/strong&gt; if the condition is verified.&lt;/p&gt;</description></item><item><title>Syntax</title><link>https://matrix86.github.io/driplane/en/doc/rules/syntax/</link><pubDate>Wed, 16 Sep 2020 22:38:02 +0200</pubDate><guid>https://matrix86.github.io/driplane/en/doc/rules/syntax/</guid><description>&lt;h2 id="syntax"&gt;Syntax&lt;/h2&gt;
&lt;p&gt;The syntax of the &lt;code&gt;driplane&lt;/code&gt;&amp;rsquo;s rules is very simple. As for the BASH every filter&amp;rsquo;s output is sent to the next filter&amp;rsquo;s input concatenating the two of them with the &lt;code&gt;|&lt;/code&gt; character.&lt;br /&gt;
All the rules have to start with a name and end with a &lt;code&gt;;&lt;/code&gt; char.&lt;/p&gt;
&lt;h3 id="import"&gt;Import&lt;/h3&gt;
&lt;p&gt;Using the directive &lt;code&gt;import&lt;/code&gt; it is possible to include one or more files and their rules in another one. All the rules defined in an included file&lt;br /&gt;
are available for the file that imports them.&lt;/p&gt;</description></item><item><title>Templates</title><link>https://matrix86.github.io/driplane/en/doc/rules/templates/</link><pubDate>Fri, 17 Apr 2026 00:00:00 +0000</pubDate><guid>https://matrix86.github.io/driplane/en/doc/rules/templates/</guid><description>&lt;h2 id="templates"&gt;Templates&lt;/h2&gt;
&lt;p&gt;Many filters in &lt;code&gt;driplane&lt;/code&gt; support &lt;strong&gt;Go templates&lt;/strong&gt; in their parameters. Templates allow you to dynamically compose strings using the fields of the current &lt;code&gt;Message&lt;/code&gt; (both the &lt;code&gt;main&lt;/code&gt; field and any &lt;code&gt;extra&lt;/code&gt; fields).&lt;/p&gt;
&lt;p&gt;Templates are based on the standard &lt;a href="https://golang.org/pkg/text/template/" target="_blank"&gt;Go text/template&lt;/a&gt; package and are extended with all the functions from the &lt;a href="https://masterminds.github.io/sprig/" target="_blank"&gt;Sprig&lt;/a&gt; library, giving you access to over 100 useful functions for string manipulation, math, date formatting, encoding, and more.&lt;/p&gt;
&lt;h3 id="basic-syntax"&gt;Basic syntax&lt;/h3&gt;
&lt;p&gt;Inside a template, you can reference any field of the &lt;code&gt;Message&lt;/code&gt; using the &lt;code&gt;{{ .field_name }}&lt;/code&gt; syntax:&lt;/p&gt;</description></item></channel></rss>