checker: add resolver ping test
This commit is contained in:
parent
2baa88a7aa
commit
c889cb4283
2 changed files with 64 additions and 2 deletions
47
checker/checks.go
Normal file
47
checker/checks.go
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
package main
|
||||
|
||||
type AdlinTest int
|
||||
|
||||
const (
|
||||
HTTPonIP AdlinTest = iota
|
||||
HTTPonAssociatedDomain
|
||||
HTTPSonAssociatedDomain
|
||||
DNSDelegation
|
||||
HTTPonDelegatedDomain
|
||||
HTTPSonDelegatedDomain
|
||||
Matrix
|
||||
SNI
|
||||
DNSSEC
|
||||
PingResolver
|
||||
DHCPonRH
|
||||
DHCPonGuests
|
||||
RHaccessNews
|
||||
RHaccessNet
|
||||
GuestNet
|
||||
)
|
||||
|
||||
var CheckMap = map[int]map[AdlinTest]int{
|
||||
2: map[AdlinTest]int{
|
||||
HTTPonIP: 100,
|
||||
HTTPonAssociatedDomain: 101,
|
||||
HTTPSonAssociatedDomain: 102,
|
||||
DNSDelegation: 103,
|
||||
HTTPonDelegatedDomain: 104,
|
||||
HTTPSonDelegatedDomain: 105,
|
||||
Matrix: 106,
|
||||
DNSSEC: 107,
|
||||
},
|
||||
3: map[AdlinTest]int{
|
||||
PingResolver: 200,
|
||||
HTTPonIP: 201,
|
||||
DNSDelegation: 203,
|
||||
HTTPonDelegatedDomain: 204,
|
||||
HTTPSonDelegatedDomain: 205,
|
||||
Matrix: 206,
|
||||
DHCPonRH: 208,
|
||||
DHCPonGuests: 211,
|
||||
RHaccessNews: 209,
|
||||
RHaccessNet: 210,
|
||||
GuestNet: 212,
|
||||
},
|
||||
}
|
||||
Reference in a new issue