subscribe

package
v1.2.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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 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

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 执行消息处理逻辑
	DoSubScribe(event *common.PluginEvent) error

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

Subscribe is a plugin for subscribe

Jump to

Keyboard shortcuts

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