util

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnixSocketNotExists = errors.New("util/socket: unix socket does not exists")

ErrUnixSocketNotExists is returned if the socket won't appear within the timeout duration.

Functions

func WaitForUnixSocket added in v1.11.0

func WaitForUnixSocket(timeout time.Duration, interval time.Duration, path string) error

WaitForUnixSocket waits for the duration of `timeout` until `path` exists by checking it every `interval`. It returns `ErrUnixSocketNotExists` if the socket won't appear within the timeout, otherwise it returns nil.

Types

This section is empty.

Directories

Path Synopsis
testutil
assert
Package assert provides utilities for making assertions during tests.
Package assert provides utilities for making assertions during tests.

Jump to

Keyboard shortcuts

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