Versions in this module Expand all Collapse all v1 v1.0.9 Aug 19, 2025 Changes in this version + var HandshakeConfig = plugin.HandshakeConfig + func OutJsonRes(code int, message string, data interface{}) string + type Notice interface + Info func() model.PluginInfo + Send func(data []byte) model.JsonRes + type NoticePlugin struct + func (NoticePlugin) Client(b *gplugin.MuxBroker, c *rpc.Client) (interface{}, error) + func (NoticePlugin) Server(*gplugin.MuxBroker) (interface{}, error) + type NoticeRPC struct + Client *rpc.Client + func (g *NoticeRPC) Info() model.PluginInfo + func (g *NoticeRPC) Send(data []byte) model.JsonRes + type NoticeRPCServer struct + Impl Notice + func (s *NoticeRPCServer) Info(args interface{}, resp *model.PluginInfo) error + func (s *NoticeRPCServer) Send(data []byte, resp *model.JsonRes) error + type Protocol interface + Decode func(data model.DataReq) model.JsonRes + Encode func(args model.DataReq) model.JsonRes + Info func() model.PluginInfo + type ProtocolPlugin struct + func (p *ProtocolPlugin) Client(b *gplugin.MuxBroker, c *rpc.Client) (interface{}, error) + func (p *ProtocolPlugin) Server(*gplugin.MuxBroker) (interface{}, error) + type ProtocolRPC struct + Client *rpc.Client + func (p *ProtocolRPC) Decode(data model.DataReq) model.JsonRes + func (p *ProtocolRPC) Encode(args model.DataReq) model.JsonRes + func (p *ProtocolRPC) Info() model.PluginInfo + type ProtocolRPCServer struct + Impl Protocol + func (s *ProtocolRPCServer) Decode(args model.DataReq, resp *model.JsonRes) error + func (s *ProtocolRPCServer) Encode(args model.DataReq, resp *model.JsonRes) error + func (s *ProtocolRPCServer) Info(args interface{}, resp *model.PluginInfo) error