summaryrefslogtreecommitdiff
path: root/internal/protocol/protocol.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2021-10-15 12:38:39 +0300
committerPaul Buetow <pbuetow@mimecast.com>2021-10-15 12:38:39 +0300
commit55ba72efa4e5d2363f8e0c2cf729c596e760e1c3 (patch)
tree72618e384626d9fc368994e3f24be9e9892d0610 /internal/protocol/protocol.go
parentdccbee7dc355438d87baff45e054848e508b004d (diff)
parentd3549a3316a9917520ab5e6b0cd7b1846c59ad4b (diff)
merge from github.com/snonux/dtail
Diffstat (limited to 'internal/protocol/protocol.go')
-rw-r--r--internal/protocol/protocol.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/protocol/protocol.go b/internal/protocol/protocol.go
new file mode 100644
index 0000000..d29706c
--- /dev/null
+++ b/internal/protocol/protocol.go
@@ -0,0 +1,18 @@
+package protocol
+
+const (
+ // ProtocolCompat -ibility version
+ ProtocolCompat string = "4"
+ // MessageDelimiter delimits separate messages.
+ MessageDelimiter byte = '¬'
+ // FieldDelimiter delimits messagefields.
+ FieldDelimiter string = "|"
+ // CSVDelimiter delimits CSV file fields.kj:w
+ CSVDelimiter string = ","
+ // AggregateKVDelimiter delimits key-values of an aggregation message.
+ AggregateKVDelimiter string = "≔"
+ // AggregateDelimiter delimits parts of an aggregation message.
+ AggregateDelimiter string = "∥"
+ // AggregateGroupKeyCombinator combines the group set keys.
+ AggregateGroupKeyCombinator string = ","
+)