trace

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled() bool

IsEnabled return the trace mode status

func RegisterOnTraceModeChanges

func RegisterOnTraceModeChanges(onTraceModeChanged Handler)

RegisterOnTraceModeChanges register a handler to capture Start/Stop activities

func Start

func Start() (err error)

Start enables the trace mode.

How to use it? First thing is RegisterOnTraceModeChanges(), and Start(), and Stop() finally.

func Stop

func Stop()

Stop disables the trace mode

Types

type Handler

type Handler func(old, new bool)

Handler can capture Start/Stop activities

Jump to

Keyboard shortcuts

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