trace

package
v1.6.15 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 2 Imported by: 2

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

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