diff options
| author | Paul Buetow <paul@buetow.org> | 2021-10-02 11:23:08 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-02 12:26:36 +0300 |
| commit | 6e1af993924bc7bebe898b403962db5a6b3505d1 (patch) | |
| tree | e4f124dfc917bc96a669e8598400775b2ca5fc25 /internal/source | |
| parent | 764ef99a3d779a0db1fb60679292af52425ba2f6 (diff) | |
Client default log dir is ~/log
Diffstat (limited to 'internal/source')
| -rw-r--r-- | internal/source/source.go | 19 |
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") +} |
