common

package
v0.0.0-...-68fb021 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// PollInterval is the sleep duration between each sleep.
	// PollInterval should always be greater than zero or the watcher i
	//initialization fails.
	PollInterval time.Duration

	// CloseTimout defines how long for to wait for watcher.Close() to complete.
	// A CloseTimeout of zero waits indefinitely for the watcher.Close() operation
	// to complete
	CloseTimeout time.Duration
}

Config contains all relevant options for a watcher to work effectively

type Stats

type Stats struct {
	KeyWatchCount       int64
	KeyNewWatchCount    int64
	KeyNewValueDetected int64
	KeyGetDuration      histogram.Fast

	WatcherClosedByContext      int64
	WatcherClosedByWatcherClose int64
	WatcherCloseDuration        histogram.Fast
}

type StatsCollector

type StatsCollector interface {
	Collect(Stats)
}

Jump to

Keyboard shortcuts

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