plugin

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 11 Imported by: 6

README

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

type Config struct {
	Config config.Config
}

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 FetchResult struct {
	AllocatableResource common.Resource
	RequestedResource   common.Resource
}

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
}

func New added in v0.2.0

func New(_ context.Context, cfg *Config) Plugin

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
}

Jump to

Keyboard shortcuts

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