Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCallPlugin ¶
func NewCallPlugin(fn func(*Label) CallForwarder) tp.Plugin
NewCallPlugin creates a proxy plugin for handling unknown calling.
func NewPushPlugin ¶
func NewPushPlugin(fn func(*Label) PushForwarder) tp.Plugin
NewPushPlugin creates a proxy plugin for handling unknown pushing.
Types ¶
type CallForwarder ¶
type CallForwarder interface {
Call(uri string, arg interface{}, result interface{}, setting ...tp.MessageSetting) tp.CallCmd
}
CallForwarder the object used to call
type Forwarder ¶
type Forwarder interface { CallForwarder PushForwarder }
Forwarder the object used to call and push
type Label ¶
type Label struct {
SessionID, RealIP, ServiceMethod string
}
Label proxy label information
type PushForwarder ¶
type PushForwarder interface {
Push(uri string, arg interface{}, setting ...tp.MessageSetting) *tp.Rerror
}
PushForwarder the object used to push
Click to show internal directories.
Click to hide internal directories.