summaryrefslogtreecommitdiff
path: root/internal/source
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-10-02 11:23:08 +0300
committerPaul Buetow <paul@buetow.org>2021-10-02 12:26:36 +0300
commit6e1af993924bc7bebe898b403962db5a6b3505d1 (patch)
treee4f124dfc917bc96a669e8598400775b2ca5fc25 /internal/source
parent764ef99a3d779a0db1fb60679292af52425ba2f6 (diff)
Client default log dir is ~/log
Diffstat (limited to 'internal/source')
-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")
+}