forward

package
v3.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forward

type Forward struct {
	Timeout time.Duration
	// contains filtered or unexported fields
}

Forward plugin for hprose.

func New

func New(uri ...string) *Forward

New returns a Forward instance.

func (*Forward) Forward

func (f *Forward) Forward(ctx context.Context, name string, args []interface{}) (result []interface{}, err error)

Forward can be used as MissingMethod.

func (*Forward) IOHandler

func (f *Forward) IOHandler(ctx context.Context, request []byte, next core.NextIOHandler) (response []byte, err error)

IOHandler for Forward.

func (*Forward) InvokeHandler

func (f *Forward) InvokeHandler(ctx context.Context, name string, args []interface{}, next core.NextInvokeHandler) (result []interface{}, err error)

InvokeHandler for Forward.

func (*Forward) Unuse

func (f *Forward) Unuse(handler ...core.PluginHandler) *Forward

Unuse plugin handlers.

func (*Forward) Use

func (f *Forward) Use(handler ...core.PluginHandler) *Forward

Use plugin handlers.

Jump to

Keyboard shortcuts

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