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