summaryrefslogtreecommitdiff
path: root/internal/source/source.go
blob: be7aecdd806a2d8993a64545d8d84c3b8861e52f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package source

type Source int

const (
	Client      Source = iota
	Server      Source = iota
	HealthCheck Source = iota
)

func (s Source) String() string {
	switch s {
	case Client:
		return "CLIENT"
	case Server:
		return "SERVER"
	case HealthCheck:
		return "HEALTHCHECK"
	}

	panic("Unknown source type")
}