Documentation ¶
Index ¶
- Constants
- func WithCancel(parent context.Context, id string) (context.Context, context.CancelFunc)
- func WithDeadline(parent context.Context, id string, deadline time.Time) (context.Context, context.CancelFunc)
- func WithTimeout(parent context.Context, id string, timeout time.Duration) (context.Context, context.CancelFunc)
- func WithValue(parent context.Context, key interface{}, val interface{}) context.Context
- type Context
- type ContextKey
Constants ¶
View Source
const ContextID = ContextKey("id")
Variables ¶
This section is empty.
Functions ¶
func WithCancel ¶
func WithDeadline ¶
func WithTimeout ¶
Types ¶
type ContextKey ¶
type ContextKey string
Click to show internal directories.
Click to hide internal directories.