util

package
v0.0.0-...-95e2e8c Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddress

func GetAddress(address net.Addr) string

func GetBufferedReaderOffset

func GetBufferedReaderOffset(
	reader io.ReadSeeker,
	buffer *bufio.Reader,
) (int64, error)

func GetTypeFromConfigUnmarshaler

func GetTypeFromConfigUnmarshaler(unmarshal func(interface{}) error) (string, error)

func IsInArray

func IsInArray(value string, array []string) bool

func RemoveCharacters

func RemoveCharacters(value string, charactersToRemove string) string

func SetBufferedReaderOffset

func SetBufferedReaderOffset(
	reader io.ReadSeeker,
	buffer *bufio.Reader,
	offset int64,
) error

func StartFilesystemWatchProcess

func StartFilesystemWatchProcess(
	watcher *fsnotify.Watcher,
	dieOnChange bool,
	logger *logrus.Entry,
)

func TrackProgress

func TrackProgress(
	sizeable Sizeable,
	logger *logrus.Entry,
) (updateProgress func(position int64))

Types

type Sizeable

type Sizeable interface {
	Size() (int64, error)
}

Jump to

Keyboard shortcuts

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