summaryrefslogtreecommitdiff
path: root/internal/source/source.go
blob: 73dccb2ebf7a01ab3a986c1b1c55f496fe659377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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")
}