authclock

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package authclock carries the Runtime clock across its transaction boundary. It is internal plumbing, not a source of authorization or caller credentials.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now(ctx context.Context, origin, started time.Time) time.Time

Now must be called after acquiring locks, not before waiting for them. Direct store calls retain their supplied time origin but include elapsed wait.

func With

func With(ctx context.Context, now func() time.Time) context.Context

With preserves the configured clock, including deterministic test clocks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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