summaryrefslogtreecommitdiff
path: root/internal/source/source.go
blob: bf1c880fb455ea46fa0066e1ae2b38fd692c1fcd (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")
}