threadlocal

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTraceId

func GetTraceId() string

GetTraceId 获取跟踪ID

func GetUserId

func GetUserId() string

GetUserId 获取登录用户ID

func SetTraceId

func SetTraceId(traceId string)

SetTraceId 设置跟踪ID

func SetUserId

func SetUserId(userId string)

SetUserId 设置登录用户ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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