Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.2.0
func DefaultConfig ¶ added in v0.2.0
func DefaultConfig() *Config
type FetchPlugin ¶ added in v0.2.0
type FetchPlugin interface {
Run(string) FetchResult
}
type FetchResult ¶ added in v0.2.0
type FilterPlugin ¶ added in v0.2.0
type FilterPlugin interface {
Run(*common.Args) FilterResult
}
FilterPlugin Plugin of Filter
type FilterResult ¶ added in v0.2.0
type FilterResult struct {
Error string
}
type Plugin ¶ added in v0.2.0
type Plugin interface {
Init() error
RunFetch(string) FetchResult
RunFilter(*common.Args) FilterResult
RunScore(*common.Args) ScoreResult
}
type ScorePlugin ¶ added in v0.2.0
type ScorePlugin interface {
Run(*common.Args) ScoreResult
}
ScorePlugin Plugin of Score
type ScoreResult ¶ added in v0.2.0
type ScoreResult struct {
Score int64
}
Click to show internal directories.
Click to hide internal directories.