Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notice ¶
type Notice interface { Info() model.PluginInfo Send(data []byte) model.JsonRes }
Notice 通知服务插件接口
type NoticePlugin ¶
type NoticePlugin struct{}
NoticePlugin 插件的虚拟实现。用于PluginMap的插件接口。在运行时,来自插件实现的实际实现会覆盖
type NoticeRPC ¶
NoticeRPC 基于RPC实现
func (*NoticeRPC) Info ¶
func (g *NoticeRPC) Info() model.PluginInfo
type NoticeRPCServer ¶
type NoticeRPCServer struct {
Impl Notice
}
NoticeRPCServer GreeterRPC的RPC服务器,符合 net/rpc的要求
func (*NoticeRPCServer) Info ¶
func (s *NoticeRPCServer) Info(args interface{}, resp *model.PluginInfo) error
Click to show internal directories.
Click to hide internal directories.