Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEntries ¶
Types ¶
type Collection ¶
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 }
Click to show internal directories.
Click to hide internal directories.