context

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContextValue

func GetContextValue(name string) interface{}

func RemoveContextValue

func RemoveContextValue(name string)

func SetContextValue

func SetContextValue(name string, v interface{})

Types

type GlobalContext

type GlobalContext struct {
	sync.RWMutex
	ContextVariables map[string]*routine.ThreadLocal[interface{}]
}

func (*GlobalContext) GetVariable

func (gc *GlobalContext) GetVariable(name string) interface{}

func (*GlobalContext) RemoveVariable

func (gc *GlobalContext) RemoveVariable(name string)

func (*GlobalContext) SetVariable

func (gc *GlobalContext) SetVariable(name string, v interface{})

Jump to

Keyboard shortcuts

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