local

package
v0.0.0-...-4873089 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyTraceID = `__trace_id__`
)

Variables

This section is empty.

Functions

func Clear

func Clear() context.Context

...

func Get

func Get() context.Context

Get ...

func Go

func Go(fn func())

Go ...

func GoContext

func GoContext(ctx context.Context, fn func())

GoContext ...

func Goid

func Goid() uint64

func Int64

func Int64(key interface{}) int64

func Set

func Set(ctx context.Context)

Set ...

func String

func String(key interface{}) string

String return the local value as string.

func Temp

func Temp(key, val interface{}) context.Context

Value ...

func Uint64

func Uint64(key interface{}) uint64

Uint64 convert any number value to uint64.

func Value

func Value(key interface{}) interface{}

Value ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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