summaryrefslogtreecommitdiff
path: root/internal/io/dlog/source.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/io/dlog/source.go')
-rw-r--r--internal/io/dlog/source.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/io/dlog/source.go b/internal/io/dlog/source.go
new file mode 100644
index 0000000..265885e
--- /dev/null
+++ b/internal/io/dlog/source.go
@@ -0,0 +1,19 @@
+package dlog
+
+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")
+}