linkloader

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEntries

func LoadEntries[T model.IEntry](ctx context.Context, opt LoadOptions) ([]T, error)

Types

type Collection

type Collection[T model.IEntry] struct {
	SourceName string
	Entries    []T
}

func FromSource

func FromSource[T model.IEntry](ctx context.Context, source scraper.SourceDefinition) (Collection[T], error)

type Collections

type Collections[T model.IEntry] []Collection[T]

func FromSources

func FromSources[T model.IEntry](ctx context.Context, options LoadOptions) (Collections[T], error)

func (Collections[T]) Entries

func (c Collections[T]) Entries() []T

func (Collections[T]) Shuffle

func (c Collections[T]) Shuffle() []T

type LoadOptions

type LoadOptions struct {
	Workers int
	Sources []scraper.SourceDefinition
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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