summaryrefslogtreecommitdiff
path: root/internal/source/source.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/source/source.go')
-rw-r--r--internal/source/source.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/source/source.go b/internal/source/source.go
new file mode 100644
index 0000000..bf1c880
--- /dev/null
+++ b/internal/source/source.go
@@ -0,0 +1,19 @@
+package source
+
+type Source int
+
+const (
+ Client Source = iota
+ Server Source = iota
+)
+
+func (s Source) String() string {
+ switch s {
+ case Client:
+ return "Client"
+ case Server:
+ return "Server"
+ }
+
+ panic("Unknown log source type")
+}