utils

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrTimeout

func IsErrTimeout(err error) bool

func NewErrTimeOut

func NewErrTimeOut(d time.Duration, c string) errTimeOut

func PathSplitter added in v0.6.9

func PathSplitter(path string) []string

PathSplitter splits a slash delimited string, permitting escaped slashes.

func TimedCall

func TimedCall(description string, d time.Duration, fn func() error) error

TimedCall runs fn, failing if it doesn't complete in the given duration. The description is used in the timeout error message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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