timeout

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 ExecuteTimeout

type ExecuteTimeout struct {
	Timeout time.Duration
}

ExecuteTimeout plugin for hprose.

func New

func New(timeout ...time.Duration) *ExecuteTimeout

New returns an ExecuteTimeout instance.

func (*ExecuteTimeout) Handler

func (et *ExecuteTimeout) Handler(ctx context.Context, name string, args []interface{}, next core.NextInvokeHandler) (result []interface{}, err error)

Handler for ExecuteTimeout.

Jump to

Keyboard shortcuts

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