parsers

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LatestParserVersion  = semver.MustParse("1.0.0")
	MinimumParserVersion = semver.MustParse("1.0.0")
)
View Source
var (
	ErrNoParserFound = fmt.Errorf("no parser found for the given URL")
)

Functions

func AddParser

func AddParser(p ...parser.Parser)

func LoadPlugins

func LoadPlugins(ctx context.Context, dir string) error

func ParseWithContext

func ParseWithContext(ctx context.Context, url string) (*parser.Item, error)

Types

type PluginMeta

type PluginMeta struct {
	Name        string `json:"name"`
	Version     string `json:"version"` // [TODO] 分版本解析, 但是我们现在只有 v1 所以先不写
	Description string `json:"description"`
	Author      string `json:"author"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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