Documentation
¶
Index ¶
- Variables
- func AddParser(p ...parser.Parser)
- func AddPlugin(ctx context.Context, code string, name string) error
- func CanHandle(url string) (bool, parser.Parser)
- func LoadPlugins(ctx context.Context, dir string) error
- func ParseWithContext(ctx context.Context, url string) (*parser.Item, error)
- type ParserMethod
- type PluginMeta
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 ¶
Types ¶
type ParserMethod ¶ added in v0.30.0
type ParserMethod uint
const ( ParserMethodCanHandle ParserMethod ParserMethodParse )
Click to show internal directories.
Click to hide internal directories.