Documentation
¶
Index ¶
- type AddAndDelPlugin
- type ComparisonScorePlugin
- type Dialer
- type Feedback
- type FeedbackPlugin
- type FilterPlugin
- type Plugin
- type Plugins
- func (m *Plugins) AddProxy(ctx context.Context, proxy *Proxy) error
- func (m *Plugins) DelProxy(ctx context.Context, proxy *Proxy) error
- func (m *Plugins) Feedback(ctx context.Context, target *Target, proxy *Proxy, feedback *Feedback)
- func (m *Plugins) Ranking(ctx context.Context, target *Target) ([]*Proxy, error)
- func (m *Plugins) Register(plugins ...Plugin)
- type Proxy
- type Schedialer
- type ScorePlugin
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAndDelPlugin ¶
type ComparisonScorePlugin ¶
type FeedbackPlugin ¶
type FilterPlugin ¶
type Plugins ¶
type Plugins struct { AddAndDelPlugins []AddAndDelPlugin FilterPlugins []FilterPlugin ComparisonScorePlugins []ComparisonScorePlugin ScorePlugins []ScorePlugin FeedbackPlugins []FeedbackPlugin Proxies map[string]*Proxy }
func NewPlugins ¶
type Proxy ¶
type Schedialer ¶
func NewSchedialer ¶
func NewSchedialer(plugins *Plugins) *Schedialer
func (*Schedialer) DialContext ¶
type ScorePlugin ¶
Click to show internal directories.
Click to hide internal directories.