Documentation ¶
Overview ¶
Package cpd contains the Captive Portal Detection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Host is the host address used for probing. Host = "connectivity-check.ubuntu.com" // HTTPTimeout is the timeout for http requests in seconds. HTTPTimeout = 5 * time.Second // ProbeCount is the number of probes to run. ProbeCount = 3 // ProbeWait is the time between probes. ProbeWait = time.Second // ProbeTimer is the probe timer in case of no detected portal // in seconds. ProbeTimer = 300 * time.Second // ProbeTimerDetected is the probe timer in case of a detected portal // in seconds. ProbeTimerDetected = 15 * time.Second )
Functions ¶
This section is empty.
Types ¶
type CPD ¶
type CPD struct {
// contains filtered or unexported fields
}
CPD is a captive portal detection instance.
type Config ¶ added in v0.1.0
type Config struct { Host string HTTPTimeout time.Duration ProbeCount int ProbeWait time.Duration ProbeTimer time.Duration ProbeTimerDetected time.Duration }
Config is the configuration of the captive portal detection.
Click to show internal directories.
Click to hide internal directories.