Add backend weight round robin select (#34)
[dns-over-https.git] / doh-client / selector / upstreamStatus.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package selector

type upstreamStatus int

const (
	// when query upstream timeout, usually upstream is unavailable for a long time
	Timeout upstreamStatus = iota

	// when query upstream return 5xx response, upstream still alive, maybe just a lof of query for him
	Error

	// when query upstream ok, means upstream is available
	OK
)