subscribe

package
v1.2.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SubScribedServices []model.ServiceKey
)

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Subscribe
	// contains filtered or unexported fields
}

Proxy proxy of WeightAdjuster

func (*Proxy) SetRealPlugin

func (p *Proxy) SetRealPlugin(plug plugin.Plugin, engine model.Engine)

SetRealPlugin 设置

func (*Proxy) WatchService

func (p *Proxy) WatchService(key model.ServiceKey) (interface{}, error)

type Subscribe

type Subscribe interface {
	plugin.Plugin

	// 执行消息处理逻辑
	DoSubScribe(event *common.PluginEvent) error

	// 订阅service消息
	WatchService(key model.ServiceKey) (interface{}, error)
}

Jump to

Keyboard shortcuts

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