monitor

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySkip     = "skip"
	KeySelfLoop = "self-loop"
)

constant keys to help standardize log output

Variables

This section is empty.

Functions

func Log

func Log(key string, val any)

func PrefixFor

func PrefixFor(proc processor.P)

func Reset

func Reset()

func Set

func Set(monitor Monitor)

Types

type FilterFn

type FilterFn func(phase int, alg, key string) bool

func MatchAll

func MatchAll(phase int, alg, key string) FilterFn

type Monitor

type Monitor interface {
	Log(phase int, alg, key string, val any)
}

func NewFilteredChan

func NewFilteredChan(c chan any, filter FilterFn) Monitor

func NewFunc

func NewFunc(fn func(phase int, alg, key string, val any)) Monitor

func WrapFilter

func WrapFilter(m Monitor, f FilterFn) Monitor

Jump to

Keyboard shortcuts

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