proxy

package
v1.4.0-rc1 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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