mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Regularize JSON stuff
This commit is contained in:
parent
b9911d0db7
commit
c3e0f262d1
13 changed files with 164 additions and 114 deletions
|
@ -17,18 +17,18 @@ import "net"
|
|||
|
||||
// Path is a path to another peer on the network
|
||||
type Path struct {
|
||||
IP net.IP
|
||||
Port int
|
||||
LastSend int64
|
||||
LastReceive int64
|
||||
TrustedPathID uint64
|
||||
Latency float32
|
||||
PacketDelayVariance float32
|
||||
ThroughputDisturbCoeff float32
|
||||
PacketErrorRatio float32
|
||||
PacketLossRatio float32
|
||||
Stability float32
|
||||
Throughput uint64
|
||||
MaxThroughput uint64
|
||||
Allocation float32
|
||||
IP net.IP `json:"ip"`
|
||||
Port int `json:"port"`
|
||||
LastSend int64 `json:"lastSend"`
|
||||
LastReceive int64 `json:"lastReceive"`
|
||||
TrustedPathID uint64 `json:"trustedPathID"`
|
||||
Latency float32 `json:"latency"`
|
||||
PacketDelayVariance float32 `json:"packetDelayVariance"`
|
||||
ThroughputDisturbCoeff float32 `json:"throughputDisturbCoeff"`
|
||||
PacketErrorRatio float32 `json:"packetErrorRatio"`
|
||||
PacketLossRatio float32 `json:"packetLossRatio"`
|
||||
Stability float32 `json:"stability"`
|
||||
Throughput uint64 `json:"throughput"`
|
||||
MaxThroughput uint64 `json:"maxThroughput"`
|
||||
Allocation float32 `json:"allocation"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue