pages

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanPages

func CleanPages(cleaned chan<- protos.ID) jobs.Page

func FilterTitles

func FilterTitles(titles []string) func(chan<- protos.ID) jobs.Page

FilterTitles filters a source channel of pages to only include those with the specified Title.

func Run

func Run(ctx context.Context, source Source, parallel int, job func(chan<- protos.ID) jobs.Page, sink protos.Sink) error

Types

type Source

type Source func(ctx context.Context, errs chan<- error) (<-chan *documents.Page, error)

func StreamDB

func StreamDB(inDBPath string, parallel int) Source

func StreamDBKeys

func StreamDBKeys(inDBPath string, parallel int, keys []uint) Source

Jump to

Keyboard shortcuts

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