context

package
v0.0.0-...-b124b1e Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCtx

type BaseCtx struct {
	context.Context
	XLog  logger.Logger
	Timer *timer.XTimer
}

func (*BaseCtx) Deadline

func (t *BaseCtx) Deadline() (deadline time.Time, ok bool)

func (*BaseCtx) Done

func (t *BaseCtx) Done() <-chan struct{}

func (*BaseCtx) Err

func (t *BaseCtx) Err() error

func (*BaseCtx) GetLog

func (t *BaseCtx) GetLog() logger.Logger

func (*BaseCtx) GetTimer

func (t *BaseCtx) GetTimer() *timer.XTimer

func (*BaseCtx) Value

func (t *BaseCtx) Value(key interface{}) interface{}

type Context

type Context interface {
	context.Context
	GetLog() logger.Logger
	GetTimer() *timer.XTimer
}

func WithNewContext

func WithNewContext(parent Context, ctx context.Context) Context

Jump to

Keyboard shortcuts

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