watcher

package
v0.0.0-...-4e9e2fa Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ps *pubsub.PubSub, loggerArg *logrus.Logger, logArg *base.LogObject, arguments []string, baseDir string) int

Run :

Types

type GoroutineLeakDetectionParams

type GoroutineLeakDetectionParams struct {
	// contains filtered or unexported fields
}

GoroutineLeakDetectionParams holds the global goroutine leak detection parameters

func (*GoroutineLeakDetectionParams) Get

Get atomically gets the global goroutine leak detection parameters

func (*GoroutineLeakDetectionParams) MakeStoppable

func (gldp *GoroutineLeakDetectionParams) MakeStoppable()

MakeStoppable creates a cancellable context and a stop function

func (*GoroutineLeakDetectionParams) Set

func (gldp *GoroutineLeakDetectionParams) Set(threshold int, checkInterval, checkStatsFor, keepStatsFor, cooldownPeriod time.Duration)

Set atomically sets the global goroutine leak detection parameters

func (*GoroutineLeakDetectionParams) Stop

func (gldp *GoroutineLeakDetectionParams) Stop()

Stop cancels the context to stop the monitoring goroutine

Jump to

Keyboard shortcuts

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