proxy

package
v1.4.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(ProxyFactory)

Option ...

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

Proxy struct

func NewProxy

func NewProxy(invoke protocol.Invoker, callBack interface{}, attachments map[string]string) *Proxy

NewProxy ...

func (*Proxy) Get

func (p *Proxy) Get() common.RPCService

Get ...

func (*Proxy) GetCallback added in v1.3.0

func (p *Proxy) GetCallback() interface{}

GetCallback ...

func (*Proxy) Implement

func (p *Proxy) Implement(v common.RPCService)

type ProxyFactory

type ProxyFactory interface {
	GetProxy(invoker protocol.Invoker, url *common.URL) *Proxy
	GetAsyncProxy(invoker protocol.Invoker, callBack interface{}, url *common.URL) *Proxy
	GetInvoker(url common.URL) protocol.Invoker
}

ProxyFactory ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL