sources

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailToLoad = apperrors.System(nil, "fail to load sources", "SOURCES:FAIL_TO_LOAD")

Functions

This section is empty.

Types

type Collection

type Collection []scraper.SourceDefinition

func Load

func Load(ctx context.Context, opt LoadOptions) (Collection, error)

func (Collection) Names

func (c Collection) Names() []string

func (Collection) OnlyStorieSuported

func (c Collection) OnlyStorieSuported() Collection

type LoadOptions

type LoadOptions struct {
	Paths []string `fig:"paths" yaml:"paths"`
	Only  []string `fig:"only"  yaml:"only"`
}

Jump to

Keyboard shortcuts

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