a compiling proof of concept
- abstract type - http, tcp, icmp & dns monitor types - unmarshal from json into any monitor type
This commit is contained in:
13
tcp.go
Normal file
13
tcp.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package cachet
|
||||
|
||||
type TCPMonitor struct {
|
||||
// same as output from net.JoinHostPort
|
||||
// defaults to parsed config from /etc/resolv.conf when empty
|
||||
DNSServer string
|
||||
|
||||
// Will be converted to FQDN
|
||||
Domain string
|
||||
Type string
|
||||
// expected answers (regex)
|
||||
Expect []string
|
||||
}
|
||||
Reference in New Issue
Block a user