status-go/vendor/github.com/anacrolix/torrent/request-strategy/piece.go

13 lines
193 B
Go
Raw Normal View History

2022-03-10 09:44:48 +00:00
package request_strategy
type ChunksIterFunc func(func(ChunkIndex))
type ChunksIter interface {
Iter(func(ci ChunkIndex))
}
type Piece interface {
Request() bool
NumPendingChunks() int
}