package
2.10.1-stable+incompatible
Repository: https://github.com/algorand/go-algorand.git
Documentation: pkg.go.dev
# Packages
Package bloom implements Bloom filters.
No description provided by the author
No description provided by the author
Package db defines database utility functions.
No description provided by the author
Package metrics provides a metric logging wrappers for Prometheus server.
No description provided by the author
No description provided by the author
Package timers provides a Clock abstraction useful for simulating timeouts.
No description provided by the author
# Functions
CopyFile uses io.Copy() to copy a file to another location This was copied from https://opensource.com/article/18/6/copying-files-go.
CopyFolder recursively copies an entire directory to another location (ignoring symlinks).
CopyFolderWithFilter recursively copies an entire directory to another location (ignoring symlinks) with an optional filter function to include/exclude folders or files.
ExecAndCaptureOutput runs the specified command and args and captures stdout into a string, returning the string or an error upon completion.
ExeDir returns the absolute path to the current executing binary (not including the filename).
FileExists checks to see if the specified file (or directory) exists.
FindProcess looks for a running process by its pid.
GetCurrentProcessTimes gets current process kernel and usermode times.
GetFirstLineFromFile retrieves the first line of the specified file.
Getrusage gets file descriptors usage statistics.
IsDir returns true if the specified directory is valid.
KillProcess kills a running OS process.
MakeWatchdogStreamReader creates a watchdogStreamReader and initializes it.
RaiseRlimit increases the number of file descriptors we can have.
# Variables
ErrWatchdogStreamReaderReaderReachedDataLimit is returned when watchdogStreamReader was asked to read beyond the designated data limits.
ErrWatchdogStreamReaderTimerElapsed is returned when the watchdogStreamReader was not reset in the past readaheadDuration and read was attempted.
# Interfaces
WatchdogStreamReader is the public interface for the watchdogStreamReader implementation.
# Type aliases
IncludeFilter is a callback for filtering files and folders encountered while copying with CopyFileWithFilter().