Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PieceWriter ¶
type PieceWriter struct { Piece *piece.Piece Source interface{} Buffer bufferpool.Buffer HashOK bool Error error }
func New ¶
func New(p *piece.Piece, source interface{}, buf bufferpool.Buffer) *PieceWriter
func (*PieceWriter) Run ¶
func (w *PieceWriter) Run(resultC chan *PieceWriter, closeC chan struct{}, writesPerSecond, writeBytesPerSecond metrics.Meter, sem *semaphore.Semaphore)
Click to show internal directories.
Click to hide internal directories.