MCPcopy Create free account
hub / github.com/apache/dubbo-go / GetAsyncProxy

Method GetAsyncProxy

proxy/proxy_factory/default.go:71–77  ·  view source on GitHub ↗

GetAsyncProxy gets a async proxy

(invoker base.Invoker, callBack any, url *common.URL)

Source from the content-addressed store, hash-verified

69
70// GetAsyncProxy gets a async proxy
71func (factory *DefaultProxyFactory) GetAsyncProxy(invoker base.Invoker, callBack any, url *common.URL) *proxy.Proxy {
72 // create proxy
73 attachments := map[string]string{}
74 attachments[constant.AsyncKey] = url.GetParam(constant.AsyncKey, "false")
75 attachments[constant.EnvironmentKey] = url.GetParam(constant.EnvironmentKey, "dev")
76 return proxy.NewProxy(invoker, callBack, attachments)
77}
78
79// GetInvoker gets a invoker
80func (factory *DefaultProxyFactory) GetInvoker(url *common.URL) base.Invoker {

Callers 2

TestGetAsyncProxyFunction · 0.95
GetProxyMethod · 0.95

Calls 2

NewProxyFunction · 0.92
GetParamMethod · 0.45

Tested by 1

TestGetAsyncProxyFunction · 0.76