Files
TorrServerJellyfin/server/torr/storage/state/state.go
2021-08-19 07:24:32 +03:00

31 lines
442 B
Go

package state
import (
"server/torr/state"
)
type CacheState struct {
Hash string
Capacity int64
Filled int64
PiecesLength int64
PiecesCount int
Torrent *state.TorrentStatus
Pieces map[int]ItemState
Readers []*ReaderState
}
type ItemState struct {
Id int
Length int64
Size int64
Completed bool
Priority int
}
type ReaderState struct {
Start int
End int
Reader int
}