Documentation ¶ Index ¶ func Background() context.Context type Context func WithCancel(parent context.Context) *Context func WithDeadline(parent context.Context, deadline time.Time) *Context func WithTimeout(parent context.Context, timeout time.Duration) *Context func (c *Context) Cancel() func (c *Context) Wait() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Background ¶ func Background() context.Context Types ¶ type Context ¶ type Context struct { Parent context.Context Ctx context.Context CancelFunc context.CancelFunc } func WithCancel ¶ func WithCancel(parent context.Context) *Context func WithDeadline ¶ func WithDeadline(parent context.Context, deadline time.Time) *Context func WithTimeout ¶ func WithTimeout(parent context.Context, timeout time.Duration) *Context func (*Context) Cancel ¶ func (c *Context) Cancel() func (*Context) Wait ¶ func (c *Context) Wait() Source Files ¶ View all Source files context.go Click to show internal directories. Click to hide internal directories.