instanceclock

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package instanceclock selects time for one credential transport before serving. Only the in-module harness can install a different clock; there is no global override.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(p instance) timeutil.Clock

Get returns exactly the production clock unless this instance has an override.

func Set

func Set(p instance, clock timeutil.Clock)

Set installs the clock on an unused transport. It must never race with serving or dialing.

Types

type Slot

type Slot struct {
	// contains filtered or unexported fields
}

Slot is embedded through a private alias. Its method is invisible outside this package.

Jump to

Keyboard shortcuts

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