Documentation ¶
Index ¶
Constants ¶
View Source
const ITArmyConfigURL string = "https://raw.githubusercontent.com/Kashkovsky/hostmonitor/main/itarmy_targets.txt"
Variables ¶
This section is empty.
Functions ¶
func GetStringFromURL ¶
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func NewPrinter() Printer
type TestResult ¶
type Tester ¶
type Tester struct {
// contains filtered or unexported fields
}
func NewTester ¶
func NewTester(config *WatchConfig, out chan TestResult, quit chan bool) Tester
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
func (*Transport) ConnDuration ¶
func (*Transport) ReqDuration ¶
type WatchConfig ¶
func (*WatchConfig) UpdateURLs ¶
func (c *WatchConfig) UpdateURLs() (string, error)
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func NewWatcher(config *WatchConfig) Watcher
func (*Watcher) Watch ¶
func (w *Watcher) Watch(f func(TestResult))
Click to show internal directories.
Click to hide internal directories.