Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SubScribedServices is a map of subscribed services SubScribedServices []model.ServiceKey )
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct { Subscribe // contains filtered or unexported fields }
Proxy of WeightAdjuster
func (*Proxy) SetRealPlugin ¶
SetRealPlugin 设置
func (*Proxy) WatchService ¶
func (p *Proxy) WatchService(key model.ServiceKey) (interface{}, error)
type Subscribe ¶
type Subscribe interface { plugin.Plugin // DoSubScribe 执行消息处理逻辑 DoSubScribe(event *common.PluginEvent) error // WatchService 订阅service消息 WatchService(key model.ServiceKey) (interface{}, error) }
Subscribe is a plugin for subscribe
Click to show internal directories.
Click to hide internal directories.