gls

package
v0.0.0-...-4aef51c Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

README

goroutine local storage

  • get current goroutine id
  • get reflect.Type by name
  • goroutine local storage

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteGls

func DeleteGls(goid int64)

func Get

func Get(key interface{}) interface{}

func GetGls

func GetGls(goid int64) map[interface{}]interface{}

func GoID

func GoID() int64

GoID returns the goroutine id of current goroutine

func IsGlsEnabled

func IsGlsEnabled(goid int64) bool

func ResetGls

func ResetGls(goid int64, initialValue map[interface{}]interface{})

func Set

func Set(key interface{}, value interface{})

func WithEmptyGls

func WithEmptyGls(f func()) func()

func WithGls

func WithGls(f func()) func()

Types

This section is empty.

Jump to

Keyboard shortcuts

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