Documentation
¶
Index ¶
- Constants
- func DelTraceId(key string)
- func GetGoIdTraceId() string
- func GetTraceId(key string) string
- func Go(f func())
- func HasTraceId(key string) bool
- func NewFastCache(maxBytes int) *fastCache
- func NewFreeCache(maxBytes int) *freeCache
- func NewTraceId() string
- func SetCache(c Cache)
- func SetTraceId(key string, value string)
- type Cache
Constants ¶
View Source
const IdKey = "Trace-Id"
Variables ¶
This section is empty.
Functions ¶
func DelTraceId ¶
func DelTraceId(key string)
func GetGoIdTraceId ¶
func GetGoIdTraceId() string
func GetTraceId ¶
func HasTraceId ¶ added in v1.3.28
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 SetTraceId ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.