time

package
v1.177.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 5 Imported by: 7

Documentation

Index

Constants

View Source
const (
	// Timeout as a general guidance of the maximum time any operation should take.
	Timeout = 30 * time.Second

	// Backoff as a general guidance of the scalar time any retry should take.
	Backoff = 100 * time.Millisecond
)

Variables

View Source
var Module = fx.Options(
	ntp.Module,
	nts.Module,
)

Module for fx.

Functions

func IsEnabled added in v1.176.0

func IsEnabled(c *Config) bool

IsEnabled for time.

func MustParseDuration added in v1.150.0

func MustParseDuration(s string) time.Duration

MustParseDuration for time.

Types

type Config added in v1.176.0

type Config struct {
	NTP *ntp.Config `yaml:"ntp,omitempty" json:"ntp,omitempty" toml:"ntp,omitempty"`
	NTS *nts.Config `yaml:"nts,omitempty" json:"nts,omitempty" toml:"nts,omitempty"`
}

Config for time.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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