Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MetadataMap = &serviceMap{ serviceMap: make(map[string]map[string]*Service), interfaceMap: make(map[string][]*Service), }
MetadataMap store metadata of service.
Functions ¶
func NewProxyInvoker ¶
Types ¶
type MethodType ¶
type MethodType struct {
// contains filtered or unexported fields
}
MethodType is description of service method.
func (*MethodType) ArgsType ¶
func (m *MethodType) ArgsType() []reflect.Type
ArgsType gets @m.argsType.
func (*MethodType) ReplyType ¶
func (m *MethodType) ReplyType() reflect.Type
ReplyType gets @m.replyType.
func (*MethodType) SuiteContext ¶
func (m *MethodType) SuiteContext(ctx context.Context) reflect.Value
SuiteContext transfers @ctx to reflect.Value type or get it from @m.ctxType.
type ProxyInvoker ¶
type ProxyInvoker struct {
protocol.BaseInvoker
}
ProxyInvoker is a invoker struct
func (*ProxyInvoker) Invoke ¶
func (pi *ProxyInvoker) Invoke(ctx context.Context, invocation protocol.Invocation) protocol.Result
Invoke is used to call service method by invocation
Click to show internal directories.
Click to hide internal directories.