]> Sergey Matveev's repositories - btrtrc.git/blob - request-strategy/piece.go
Drop support for go 1.20
[btrtrc.git] / request-strategy / piece.go
1 package requestStrategy
2
3 type ChunksIterFunc func(func(ChunkIndex))
4
5 type ChunksIter interface {
6         Iter(func(ci ChunkIndex))
7 }
8
9 type Piece interface {
10         Request() bool
11         NumPendingChunks() int
12 }