timeout

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeoutKey = "Timeout-Millisecond"
)

Variables

This section is empty.

Functions

func CalcRemainTimeout

func CalcRemainTimeout(ctx context.Context) (int64, error)

func SetStart

func SetStart(ctx context.Context, timeout int64) context.Context

func TimeoutMiddleware

func TimeoutMiddleware(timeout time.Duration) func(c *gin.Context)

TimeoutMiddleware 超时控制中间件

Types

This section is empty.

Jump to

Keyboard shortcuts

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