Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonitorBind ¶
func MonitorBind() string
MonitorBind reports the configured host, defaulting to loopback.
func SetMonitorBind ¶
func SetMonitorBind(host string)
SetMonitorBind records the address the monitor page should listen on. The engine calls it once, before any listener exists. An empty host, or one that means "everything", is left as the caller wrote it — refusing to serve publicly is a decision for the operator, not for this function.
Types ¶
type SystemStats ¶
type SystemStats struct {
TunnelStatus string `json:"tunnelStatus"`
CPUUsage string `json:"cpuUsage"`
RAMUsage string `json:"ramUsage"`
DiskUsage string `json:"diskUsage"`
SwapUsage string `json:"swapUsage"`
NetworkTraffic string `json:"networkTraffic"`
UploadSpeed string `json:"uploadSpeed"`
DownloadSpeed string `json:"downloadSpeed"`
TunnelTraffic string `json:"tunnelTraffic"`
Sniffer string `json:"sniffer"`
AllConnections string `json:"allConnections"`
}
type Usage ¶
type Usage struct {
// contains filtered or unexported fields
}
func NewDataStore ¶
func (*Usage) AddOrUpdatePort ¶
Click to show internal directories.
Click to hide internal directories.