verifier

package
v1.12.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Progress

type Progress struct {
	Checked uint32
}

Progress information about the verification.

type Verifier

type Verifier struct {
	Bitfield *bitfield.Bitfield
	Error    error
	// contains filtered or unexported fields
}

Verifier verifies the pieces on disk.

func New

func New() *Verifier

New returns a new Verifier.

func (*Verifier) Close

func (v *Verifier) Close()

Close the verifier.

func (*Verifier) Run

func (v *Verifier) Run(pieces []piece.Piece, progressC chan Progress, resultC chan *Verifier)

Run and verify all pieces of the torrent.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL