plugin

package
v0.0.0-...-3458964 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

Functions

This section is empty.

Types

type ProtocolPlugin

type ProtocolPlugin struct {
	Impl rpc2.Protocol
}

ProtocolPlugin 插件接口实现 这有两种方法:服务器必须为此插件返回RPC服务器类型。我们为此构建了一个RPCServer。 客户端必须返回我们的接口的实现通过RPC客户端。我们为此返回RPC。

func (*ProtocolPlugin) Client

func (t *ProtocolPlugin) Client(b *gplugin.MuxBroker, c *rpc.Client) (interface{}, error)

Client 此方法由宿主进程调用

func (*ProtocolPlugin) Server

func (t *ProtocolPlugin) Server(g *gplugin.MuxBroker) (interface{}, error)

Server 此方法由插件进程延迟调

Jump to

Keyboard shortcuts

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