Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCallPlugin ¶
func NewCallPlugin(fn func(*Label) CallForwarder) drpc.Plugin
NewCallPlugin 创建call方法的代理插件
func NewPushPlugin ¶
func NewPushPlugin(fn func(*Label) PushForwarder) drpc.Plugin
NewPushPlugin 创建push方法的代理插件
Types ¶
type CallForwarder ¶
type CallForwarder interface {
Call(uri string, arg interface{}, result interface{}, setting ...message.MsgSetting) drpc.CallCmd
}
type Forwarder ¶
type Forwarder interface { CallForwarder PushForwarder }
type PushForwarder ¶
type PushForwarder interface {
Push(uri string, arg interface{}, setting ...message.MsgSetting) *drpc.Status
}
Click to show internal directories.
Click to hide internal directories.