context

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(parent context.Context, lc *LumigoContext) context.Context

NewContext returns a new Context that carries value lumigo context.

Types

type LumigoContext

type LumigoContext struct {
	TracerVersion string
}

LumigoContext is the set of metadata that is passed for every Invoke.

func FromContext

func FromContext(ctx context.Context) (*LumigoContext, bool)

FromContext returns the lumigoKey value stored in ctx, if any.

Jump to

Keyboard shortcuts

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