Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BabelConfig ¶
type DeviceType ¶ added in v0.0.345
type DeviceType string
const ( DeviceTypeDtD DeviceType = "DtD" DeviceTypeWireguard DeviceType = "Wireguard" )
type SysinfoInterface ¶ added in v0.0.344
type SysinfoNodeDetails ¶ added in v0.0.344
type SysinfoResponse ¶ added in v0.0.344
type SysinfoResponse struct {
Node string `json:"node"`
Lat any `json:"lat"`
Lon any `json:"lon"`
NodeDetails SysinfoNodeDetails `json:"node_details"`
Interfaces []SysinfoInterface `json:"interfaces"`
Lqm LQM `json:"lqm"`
}
type Tracker ¶
type Tracker struct {
FirstSeen int `json:"-"`
LastSeen int `json:"lastseen"`
LastUp int `json:"lastup"`
Type DeviceType `json:"type"`
Device string `json:"device"`
MAC string `json:"mac"`
IPv6LL string `json:"ipv6ll"`
Refresh int `json:"refresh"`
LQ int `json:"lq"`
AvgLQ float64 `json:"avg_lq"`
RxCost int `json:"rxcost"`
TxCost int `json:"txcost"`
RTT *float64 `json:"rtt"`
TxPackets uint64 `json:"tx_packets"`
TxFail uint64 `json:"tx_fail"`
TxRetries uint64 `json:"-"`
LastTxPackets *uint64 `json:"last_tx_packets"`
LastTxFail *uint64 `json:"-"`
LastTxRetries *uint64 `json:"-"`
AvgTx float64 `json:"avg_tx_packets"`
AvgTxFail float64 `json:"-"`
AvgTxRetries float64 `json:"-"`
TxQuality float64 `json:"tx_quality"`
PingQuality int `json:"ping_quality"`
PingSuccessTime float64 `json:"ping_success_time"`
Quality *int `json:"quality"`
Hostname string `json:"hostname"`
CanonicalIP string `json:"canonical_ip"`
IP string `json:"ip"`
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
Distance float64 `json:"distance"`
LocalArea bool `json:"localarea"`
Model string `json:"model"`
FirmwareVersion string `json:"firmware_version"`
RevLastSeen int `json:"rev_lastseen"`
RevPingSuccessTime float64 `json:"rev_ping_success_time"`
RevPingQuality int `json:"rev_ping_quality"`
RevQuality int `json:"rev_quality"`
NodeRouteCount int `json:"-"`
BabelRouteCount int `json:"babel_route_count"`
BabelMetric int `json:"babel_metric"`
Routable bool `json:"routable"`
UserBlocks bool `json:"user_blocks"`
BabelConfig *BabelConfig `json:"babel_config,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.