subscribe

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 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 of WeightAdjuster

func (*Proxy) SetRealPlugin

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

设置

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