context

package
v0.0.0-...-bc15ebc Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package context provides a context with a message.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctxBase context.Context, msg *types.Context, deadline time.Time) (context.Context, context.CancelFunc)

New returns a new context with the given message and deadline.

func Value

func Value(ctx context.Context) (*types.Context, bool)

Value returns the context value.

Types

type Key

type Key int

Key is the key type for the context.

Jump to

Keyboard shortcuts

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