proxy

package
v0.0.0-...-f567649 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecuteMiddlewaresFn

type ExecuteMiddlewaresFn func(*v8go.Value, ...*v8go.Value) (*v8go.Value, error)

type Proxy

type Proxy interface {
	GetOnInitFunctionCallback() v8go.FunctionCallback
	GetOnDestroyFunctionCallback() v8go.FunctionCallback

	GetAddReceivedMessageMiddlewareFunctionCallback() v8go.FunctionCallback
	GetAddSentMessageMiddlewareFunctionCallback() v8go.FunctionCallback

	GetAddResponseToBackendMessageMiddlewareFunctionCallback() v8go.FunctionCallback
	GetAddResponseToClientMessageMiddlewareFunctionCallback() v8go.FunctionCallback

	ExecuteReceivedMessageMiddlewares(*v8go.Value, ...*v8go.Value) (*v8go.Value, error)
	ExecuteSentMessageMiddlewares(*v8go.Value, ...*v8go.Value) (*v8go.Value, error)
	ExecuteResponseToBackendMessageMiddlewares(*v8go.Value, ...*v8go.Value) (*v8go.Value, error)
	ExecuteResponseToClientMessageMiddlewares(*v8go.Value, ...*v8go.Value) (*v8go.Value, error)

	ExecuteOnInit() error
	ExecuteOnDestroy() error
}

func InjectTo

func InjectTo(ctx *v8go.Context) (Proxy, error)

func NewProxy

func NewProxy() Proxy

Jump to

Keyboard shortcuts

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