anchortime

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

Validator is used to validate anchor times (from, until) against server time.

func New

func New(maxDelta uint64) *Validator

New creates new anchor time validator.

func (*Validator) Validate

func (v *Validator) Validate(from, until int64) error

Validate validates anchor times (from and until) against current time.

Jump to

Keyboard shortcuts

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