Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeDomain = "domain" TypeIP = "ip" SchemeHTTP = "http" SchemeHTTPS = "https" PortHTTP = 80 PortHTTPS = 443 )
Variables ¶
This section is empty.
Functions ¶
func CheckTCP ¶
func CheckTCP(ctx *appcontext.AppContext, address string) error
func IsValidICMP ¶
func IsValidICMP(ctx *appcontext.AppContext, input string) bool
Types ¶
type Domain ¶
func ParseDomain ¶
func ParseDomain(ctx *appcontext.AppContext, input string) (*Domain, error)
type ICMP ¶
type ICMP struct { PackageTransmitted int PackageReceived int PackageLoss float64 IPAddress string ResponseTimeInMs int64 }
func CheckICMP ¶
func CheckICMP(ctx *appcontext.AppContext, address string) (*ICMP, error)
type IP ¶
type IP struct {
List []string
}
func IPLookup ¶
func IPLookup(ctx *appcontext.AppContext, host string) (*IP, error)
type Measure ¶
func MeasureHTTPResponseTime ¶
func MeasureHTTPResponseTime(ctx *appcontext.AppContext, url string) (*Measure, error)
func MeasureTCPResponseTime ¶
func MeasureTCPResponseTime(ctx *appcontext.AppContext, address string) (*Measure, error)
type SSL ¶
func CheckSSL ¶
func CheckSSL(ctx *appcontext.AppContext, host string, port int) (result *SSL, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.