svc

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceContext

type ServiceContext struct {
	GinContext *gin.Context
}

ServiceContext 实现 context.Context 接口

func NewServiceContext

func NewServiceContext(c *gin.Context) *ServiceContext

func (*ServiceContext) Deadline added in v1.6.3

func (c *ServiceContext) Deadline() (deadline time.Time, ok bool)

func (*ServiceContext) Done added in v1.6.3

func (c *ServiceContext) Done() <-chan struct{}

func (*ServiceContext) Err added in v1.6.3

func (c *ServiceContext) Err() error

func (*ServiceContext) Value added in v1.6.3

func (c *ServiceContext) Value(key any) any

Jump to

Keyboard shortcuts

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