Properly go fmt that time

[ci skip]
This commit is contained in:
Justin Li 2013-09-06 21:43:58 -04:00
parent 7e402b162f
commit 5685a504fc

View file

@ -5,23 +5,23 @@
package models package models
type Peer struct { type Peer struct {
ID string `json:"id"` ID string `json:"id"`
UserID uint64 `json:"user_id"` UserID uint64 `json:"user_id"`
TorrentID uint64 `json:"torrent_id"` TorrentID uint64 `json:"torrent_id"`
IP string `json:"ip"` IP string `json:"ip"`
Port uint64 `json:"port"` Port uint64 `json:"port"`
Uploaded uint64 `json:"uploaded"` Uploaded uint64 `json:"uploaded"`
Downloaded uint64 `json:"downloaded` Downloaded uint64 `json:"downloaded`
Left uint64 `json:"left"` Left uint64 `json:"left"`
LastAnnounce int64 `json:"last_announce"` LastAnnounce int64 `json:"last_announce"`
} }
type Torrent struct { type Torrent struct {
ID uint64 `json:"id"` ID uint64 `json:"id"`
Infohash string `json:"infohash"` Infohash string `json:"infohash"`
Active bool `json:"active"` Active bool `json:"active"`
Seeders map[string]Peer `json:"seeders"` Seeders map[string]Peer `json:"seeders"`
Leechers map[string]Peer `json:"leechers"` Leechers map[string]Peer `json:"leechers"`
@ -29,7 +29,7 @@ type Torrent struct {
Snatches uint `json:"snatches"` Snatches uint `json:"snatches"`
UpMultiplier float64 `json:"up_multiplier"` UpMultiplier float64 `json:"up_multiplier"`
DownMultiplier float64 `json:"down_multiplier"` DownMultiplier float64 `json:"down_multiplier"`
LastAction int64 `json:"last_action"` LastAction int64 `json:"last_action"`
} }
type User struct { type User struct {