ui

package
v0.0.0-...-1494de3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	Since(time.Time) time.Duration
}

Clock allows time.Now to be mocked in tests.

type TimerFunc

type TimerFunc func(time.Time, string)

TimerFunc is a function whose execution can be deferred in order to time an event.

func TimeTracker

func TimeTracker(w io.Writer, c Clock, maxMessageLen int) TimerFunc

TimeTracker returns a new TimerFunc, given a maxMessageLen, which determines at which point messages should start to get truncated.

Jump to

Keyboard shortcuts

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