Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrGetSessionID ¶
CreateOrGetSessionID 获取或创建会话ID
func GetCurrentSessionID ¶
GetCurrentSessionID 获取当前会话ID(线程安全,仅初始化一次)
func ResetSessionID ¶ added in v0.8.2
func ResetSessionID()
ResetSessionID clears the cached session ID so the next call to GetCurrentSessionID will re-resolve against the current database. Intended for tests that switch database paths.
Types ¶
This section is empty.
Source Files
¶
- session.go
Click to show internal directories.
Click to hide internal directories.