package
Version:
v0.6.6
Opens a new window with list of versions in this module.
Published: Jan 9, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IsEnabled return the trace mode status
func RegisterOnTraceModeChanges(onTraceModeChanged Handler)
RegisterOnTraceModeChanges register a handler to capture Start/Stop activities
Start enables the trace mode.
How to use it? First thing is RegisterOnTraceModeChanges(), and Start(), and Stop() finally.
Stop disables the trace mode
type Handler func(old, new bool)
Handler can capture Start/Stop activities
Source Files
¶
Click to show internal directories.
Click to hide internal directories.