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 Fetch ¶ added in v0.4.0
type Fetch struct {
Impl FetchImpl
}
type FetchImpl ¶ added in v0.5.0
type FetchImpl interface {
Run(string) FetchResult
}
type FetchRPC ¶ added in v0.4.0
type FetchRPC struct {
// contains filtered or unexported fields
}
func (*FetchRPC) Run ¶ added in v0.4.0
func (n *FetchRPC) Run(host string) FetchResult
type FetchRPCServer ¶ added in v0.4.0
type FetchRPCServer struct {
Impl FetchImpl
}
func (*FetchRPCServer) Run ¶ added in v0.4.0
func (n *FetchRPCServer) Run(host string, resp *FetchResult) error
type FetchResult ¶ added in v0.2.0
type Filter ¶ added in v0.4.0
type Filter struct {
Impl FilterImpl
}
type FilterImpl ¶ added in v0.5.0
type FilterImpl interface {
Run(*common.Args) FilterResult
}
type FilterRPC ¶ added in v0.4.0
type FilterRPC struct {
// contains filtered or unexported fields
}
type FilterRPCServer ¶ added in v0.4.0
type FilterRPCServer struct {
Impl FilterImpl
}
func (*FilterRPCServer) Run ¶ added in v0.4.0
func (n *FilterRPCServer) Run(args *common.Args, resp *FilterResult) error
type FilterResult ¶ added in v0.2.0
type FilterResult struct {
Error string
}
type Plugin ¶ added in v0.2.0
type Plugin interface { Init(context.Context) error Deinit(context.Context) error RunFetch(context.Context, string, string) (FetchResult, error) RunFilter(context.Context, string, *common.Task, *common.Node) (FilterResult, error) RunScore(context.Context, string, *common.Task, *common.Node) (ScoreResult, error) }
type Score ¶ added in v0.4.0
type Score struct {
Impl ScoreImpl
}
type ScoreImpl ¶ added in v0.5.0
type ScoreImpl interface {
Run(*common.Args) ScoreResult
}
type ScoreRPCServer ¶ added in v0.4.0
type ScoreRPCServer struct {
Impl ScoreImpl
}
func (*ScoreRPCServer) Run ¶ added in v0.4.0
func (n *ScoreRPCServer) Run(args *common.Args, resp *ScoreResult) error
type ScoreResult ¶ added in v0.2.0
type ScoreResult struct {
Score int64
}
Click to show internal directories.
Click to hide internal directories.