mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
25 lines
399 B
Go
25 lines
399 B
Go
package state
|
|
|
|
import (
|
|
"server/torr/state"
|
|
"server/torr/storage/reader"
|
|
)
|
|
|
|
type CacheState struct {
|
|
Hash string
|
|
Capacity int64
|
|
Filled int64
|
|
PiecesLength int64
|
|
PiecesCount int
|
|
Torrent *state.TorrentStatus
|
|
Pieces map[int]ItemState
|
|
Readers []*reader.ReaderState
|
|
}
|
|
|
|
type ItemState struct {
|
|
Id int
|
|
Length int64
|
|
Size int64
|
|
Completed bool
|
|
}
|