dir

package
v0.0.0-...-deb3f62 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJob

func NewJob(corpus, path string) *job.Job

NewJob

Types

type Crawler

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

Crawler

func NewCrawler

func NewCrawler(prefix string, sleepTime time.Duration, channel job.Channel) *Crawler

NewCrawler initializes new Crawler.

func (*Crawler) AddPath

func (c *Crawler) AddPath(ctx context.Context, path string) error

AddPath adds new directory path that has to be crawled.

func (*Crawler) Start

func (c *Crawler) Start(ctx context.Context)

Start

type JobPayload

type JobPayload file.JobPayload

JobPayload

type Scanner

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

Scanner

func NewScanner

func NewScanner(channel job.Channel) *Scanner

NewScanner

func (*Scanner) ScanJob

func (s *Scanner) ScanJob(j *job.Job) error

ScanJob

Jump to

Keyboard shortcuts

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