proxy

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Proxy

func Proxy(fn func(*ProxyLabel) Caller) tp.Plugin

Proxy creates a proxy plugin for handling unknown calling and pushing.

func ProxyCall

func ProxyCall(fn func(*ProxyLabel) CallCaller) tp.Plugin

ProxyCall creates a proxy plugin for handling unknown calling.

func ProxyPush

func ProxyPush(fn func(*ProxyLabel) PushCaller) tp.Plugin

ProxyPush creates a proxy plugin for handling unknown pushing.

Types

type CallCaller

type CallCaller interface {
	Call(uri string, arg interface{}, result interface{}, setting ...socket.PacketSetting) tp.CallCmd
}

CallCaller the object used to call

type Caller

type Caller interface {
	CallCaller
	PushCaller
}

Caller the object used to call and push

type ProxyLabel

type ProxyLabel struct {
	SessionId, RealIp, Uri string
}

ProxyLabel proxy label information

type PushCaller

type PushCaller interface {
	Push(uri string, arg interface{}, setting ...socket.PacketSetting) *tp.Rerror
}

PushCaller the object used to push

Jump to

Keyboard shortcuts

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