diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2019-04-01 13:26:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-01 13:26:18 +0200 |
commit | 45237e2977d38053ddedc35765a901cf8771c106 (patch) | |
tree | 4c8ce6da2630dc92dc9f2b4d440b206177a4ab89 /kamon-core/src/main/colfer/Context.colf | |
parent | 8efb3b408a876a3dfdac79580773279125cb4135 (diff) | |
parent | 2392fb02c3259d7f0b41ff410641accd818bc5d4 (diff) | |
download | Kamon-master.tar.gz Kamon-master.tar.bz2 Kamon-master.zip |
Introduce a common abstractions to handle tags
Diffstat (limited to 'kamon-core/src/main/colfer/Context.colf')
-rw-r--r-- | kamon-core/src/main/colfer/Context.colf | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/kamon-core/src/main/colfer/Context.colf b/kamon-core/src/main/colfer/Context.colf index f5d9a80b..9bd9ec76 100644 --- a/kamon-core/src/main/colfer/Context.colf +++ b/kamon-core/src/main/colfer/Context.colf @@ -1,11 +1,32 @@ package context type Entry struct { - name text - content binary + key text + value binary +} + +type StringTag struct { + key text + value text +} + +type LongTag struct { + key text + value int64 +} + +type BooleanTag struct { + key text + value bool +} + +type Tags struct { + strings []StringTag + longs []LongTag + booleans []BooleanTag } type Context struct { - tags []text + tags Tags entries []Entry }
\ No newline at end of file |