trace

package
v1.3.40 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const IdKey = "Trace-Id"

Variables

This section is empty.

Functions

func DelTraceId

func DelTraceId(key string)

func GetTraceId

func GetTraceId(key string) string

func Go

func Go(f func())

func HasTraceId added in v1.3.28

func HasTraceId(key string) bool

func NewFastCache added in v1.3.28

func NewFastCache(maxBytes int) *fastCache

func NewFreeCache added in v1.3.28

func NewFreeCache(maxBytes int) *freeCache

func NewTraceId added in v1.3.28

func NewTraceId() string

func SetCache added in v1.3.28

func SetCache(c Cache)

func SetTraceId

func SetTraceId(key string, value string)

Types

type Cache added in v1.3.28

type Cache interface {
	Set(k, v []byte)
	Get([]byte) []byte
	Exist([]byte) bool
	Del([]byte)
	Clear()
}

func GetCache

func GetCache() Cache

Jump to

Keyboard shortcuts

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