13 lines
192 B
Go
13 lines
192 B
Go
package requestStrategy
|
|
|
|
type ChunksIterFunc func(func(ChunkIndex))
|
|
|
|
type ChunksIter interface {
|
|
Iter(func(ci ChunkIndex))
|
|
}
|
|
|
|
type Piece interface {
|
|
Request() bool
|
|
NumPendingChunks() int
|
|
}
|