utils

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeOffset time.Duration

TimeOffset is the offset from the current time of the computer.

Functions

func CheckNTP added in v0.2.4

func CheckNTP()

CheckNTP queries an NTP server and asks for the current time

func ManageFdLimit

func ManageFdLimit() (changed bool, newLimit uint64, err error)

ManageFdLimit raise the current max file descriptor count of the process based on the IPFS_FD_MAX value

func Now added in v0.2.4

func Now() time.Time

Now gets the true time (not relying on computer time)

Types

This section is empty.

Jump to

Keyboard shortcuts

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