Regularize JSON stuff
This commit is contained in:
parent
b9911d0db7
commit
c3e0f262d1
13 changed files with 164 additions and 114 deletions
|
@ -15,10 +15,10 @@ package zerotier
|
|||
|
||||
// Peer is another ZeroTier node
|
||||
type Peer struct {
|
||||
Address Address
|
||||
Version [3]int
|
||||
Latency int
|
||||
Role int
|
||||
Paths []Path
|
||||
Clock int64
|
||||
Address Address `json:"address"`
|
||||
Version [3]int `json:"version"`
|
||||
Latency int `json:"latency"`
|
||||
Role int `json:"role"`
|
||||
Paths []Path `json:"paths,omitempty"`
|
||||
Clock int64 `json:"clock"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue