Concatenate
The Concatenate filter’s job is to add a byte packet to either the beginning or end of each UDP packet that passes
through. This is commonly used to provide an auth token to each packet, so they can be routed appropriately.
Filter name
quilkin.filters.concatenate.v1alpha1.Concatenate
Configuration Examples
#![allow(unused)]
fn main() {
let yaml = "
version: v1alpha1
filters:
- name: quilkin.filters.concatenate.v1alpha1.Concatenate
config:
on_read: APPEND
on_write: DO_NOTHING
bytes: MXg3aWp5Ng==
clusters:
- endpoints:
- address: 127.0.0.1:7001
";
let config = quilkin::config::Config::from_reader(yaml.as_bytes()).unwrap();
assert_eq!(config.filters.load().len(), 1);
}
Configuration Options (Rust Doc)
{{#include ../../../target/quilkin.filters.concatenate.v1alpha1.yaml}}