Regularize JSON stuff

This commit is contained in:
Adam Ierymenko 2019-10-02 09:34:44 -07:00
parent b9911d0db7
commit c3e0f262d1
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
13 changed files with 164 additions and 114 deletions

View file

@ -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"`
}