Files
tide/api/models/item.go
T
2023-09-16 16:57:57 +02:00

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
}