Documentation ¶
Index ¶
- type Piece
- func (_m *Piece) Downloaded() bool
- func (_m *Piece) GetBlocks() []*piece.Block
- func (_m *Piece) GetDownloader() string
- func (_m *Piece) GetIdx() int
- func (_m *Piece) GetLength() int64
- func (_m *Piece) GetStatus() piece.PieceStatus
- func (_m *Piece) SetDownloader(_a0 string)
- func (_m *Piece) SetStatus(_a0 piece.PieceStatus)
- type SafePieces
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Piece ¶
Piece is an autogenerated mock type for the Piece type
func (*Piece) Downloaded ¶
Downloaded provides a mock function with given fields:
func (*Piece) GetDownloader ¶
GetDownloader provides a mock function with given fields:
func (*Piece) GetStatus ¶
func (_m *Piece) GetStatus() piece.PieceStatus
GetStatus provides a mock function with given fields:
func (*Piece) SetDownloader ¶
SetDownloader provides a mock function with given fields: _a0
func (*Piece) SetStatus ¶
func (_m *Piece) SetStatus(_a0 piece.PieceStatus)
SetStatus provides a mock function with given fields: _a0
type SafePieces ¶
SafePieces is an autogenerated mock type for the SafePieces type
func (*SafePieces) Data ¶
func (_m *SafePieces) Data() map[int]piece.Piece
Data provides a mock function with given fields:
func (*SafePieces) Get ¶
func (_m *SafePieces) Get(_a0 int) piece.Piece
Get provides a mock function with given fields: _a0
func (*SafePieces) Len ¶
func (_m *SafePieces) Len() int
Len provides a mock function with given fields:
func (*SafePieces) Put ¶
func (_m *SafePieces) Put(_a0 piece.Piece)
Put provides a mock function with given fields: _a0
func (*SafePieces) TryToReserve ¶
func (_m *SafePieces) TryToReserve(_a0 int, _a1 string) bool
TryToReserve provides a mock function with given fields: _a0, _a1