proxy

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(ProxyFactory)

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

func (*Proxy) Get

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

func (*Proxy) Implement

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

proxy implement In consumer, RPCService like:

		type XxxProvider struct {
 		Yyy func(ctx context.Context, args []interface{}, rsp *Zzz) error
		}

type ProxyFactory

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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