clock

package
v2.8.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalClock clock.Clock = realtimeClock{clock.New()}

Functions

func AdjustTimeInLog added in v2.3.0

func AdjustTimeInLog(ctx context.Context, record slog.Record) (slog.Record, bool, error)

AdjustTimeInLog is a slog middleware to adjust timestamps in logs

func ToClockworkClock added in v2.7.2

func ToClockworkClock(clock clock.Clock) clockwork.Clock

Types

type Clock added in v2.7.15

type Clock = clock.Clock

Jump to

Keyboard shortcuts

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