util

package
v0.0.0-...-d98ca20 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = &http.Client{
	Transport: &http.Transport{
		TLSHandshakeTimeout:   time.Second * 5,
		MaxIdleConnsPerHost:   1,
		ResponseHeaderTimeout: time.Second * 5,
	},
	Timeout: time.Second * 15,
}
View Source
var NoRedirectClient *http.Client

Functions

func DefaultConfigDir

func DefaultConfigDir() string

func Jitter

func Jitter(in time.Duration) time.Duration

Adds up to +-5 seconds of deviaton to the input time

func Lock

func Lock(file *os.File) error

func SizeToISO

func SizeToISO(val int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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