Help us shape the future of Go! Take the 2026 Go Developer Survey

taken

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package taken is a reading of a box's clock that a server took: the date of a pass it checked, on a call it answered, the pass's not_after less protocol.PassLifetime. Every deletion by the clock is by one, and never by a reading of the clock (PROTOCOL.md §12.4): a box whose clock is far off is stopped at its pass, and one whose clock jumps or steps back while a call is in flight deletes nothing by where it went. A pass is the only way to a Reading, so no path of the client, a new one included, deletes by a reading no server saw.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reading

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

Reading is a reading of the box's clock a server took. Its zero value is none: no server answered, and it is before every time, so it deletes nothing.

func By

func By(pass string) (Reading, error)

By is the reading pass is dated by, for a call the server answered.

func (Reading) At

func (r Reading) At() time.Time

At is the reading, or the zero time for none.

func (Reading) None

func (r Reading) None() bool

None reports whether r is no reading: no server answered.

Jump to

Keyboard shortcuts

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