mirror of
https://github.com/zoriya/tide.git
synced 2026-08-15 18:43:19 +00:00
31 lines
413 B
Go
31 lines
413 B
Go
package models
|
|
|
|
import "time";
|
|
|
|
type State string
|
|
const (
|
|
Stale State = "stale"
|
|
Downloading State = "downloading"
|
|
Seeding State = "seeding"
|
|
Finished State = "finished"
|
|
)
|
|
|
|
type File struct {
|
|
Name string
|
|
Priority int
|
|
Size uint64
|
|
AvailableSize uint64
|
|
Path string
|
|
}
|
|
|
|
type Item struct {
|
|
Id string
|
|
Name string
|
|
State State
|
|
Size uint64
|
|
AvailableSize uint64
|
|
Path string
|
|
AddedDate time.Time
|
|
Files []File
|
|
}
|