2021-05-13 09:56:58 +10:00
|
|
|
package request_strategy
|
|
|
|
|
2021-10-05 20:06:23 +11:00
|
|
|
type ChunksIterFunc func(func(ChunkIndex))
|
|
|
|
|
|
|
|
type ChunksIter interface {
|
2021-10-07 17:31:10 +11:00
|
|
|
Iter(func(ci ChunkIndex))
|
2021-10-05 20:06:23 +11:00
|
|
|
}
|
2021-05-14 13:06:12 +10:00
|
|
|
|
2021-12-01 19:21:25 +11:00
|
|
|
type Piece interface {
|
|
|
|
Request() bool
|
|
|
|
NumPendingChunks() int
|
2021-05-13 20:56:12 +10:00
|
|
|
}
|