util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stats = &stats{}

Stats is the process-wide traffic/connection counter.

Functions

func EnableDebug

func EnableDebug()

EnableDebug configures the logger to show debug messages.

func LogDebug

func LogDebug(format string, args ...interface{})

func LogError

func LogError(format string, args ...interface{})

func LogInfo

func LogInfo(format string, args ...interface{})

func LogSuccess

func LogSuccess(format string, args ...interface{})

func LogWarning

func LogWarning(format string, args ...interface{})

func StartStatsReporter

func StartStatsReporter(ctx context.Context)

StartStatsReporter launches a goroutine that logs tunnel statistics every 10 seconds. It stops when ctx is cancelled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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