GetAsyncProxy gets a async proxy
(invoker base.Invoker, callBack any, url *common.URL)
| 69 | |
| 70 | // GetAsyncProxy gets a async proxy |
| 71 | func (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 |
| 80 | func (factory *DefaultProxyFactory) GetInvoker(url *common.URL) base.Invoker { |