checksummer

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UseSHA1 sha1 checksum
	UseSHA1 = iota
	// UseXXHash xxhash checksum
	UseXXHash
	// UseCRC32 CRC32 checksum
	UseCRC32
	// UseMD5 MD5 checksum
	UseMD5
)

Variables

This section is empty.

Functions

func GetHashMethods

func GetHashMethods() string

GetHashMethods returns all available checksum methods and index

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

Pool worker pool

func NewPool

func NewPool(flogger *logger.FileLogger) *Pool

NewPool create a new pool

func (*Pool) AddJob

func (p *Pool) AddJob(entry *node.Node, hashType int, nb int)

AddJob push a new job to the queue

func (*Pool) Start

func (p *Pool) Start()

Start start the pool

func (*Pool) Wait

func (p *Pool) Wait()

Wait wait for all worker to be done

Jump to

Keyboard shortcuts

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