Help us shape the future of Go! Take the 2026 Go Developer Survey

connectivity

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

Checker - verifies that the monitor itself has internet connectivity. It is used to avoid false-positive DOWN statuses when the host running EndPoll loses its own connection (e.g. home internet outage).

func New

func New(cfg *types.Connectivity) *Checker

New - creates a connectivity checker from the configuration.

func (*Checker) Online

func (c *Checker) Online() bool

Online - reports whether the monitor currently has connectivity. The result is cached for the configured interval to avoid probing on every failed host check. When disabled it always returns true.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL