package
1.2.8
Repository: https://github.com/iotaledger/hornet.git
Documentation: pkg.go.dev

# Functions

CloseFileAndRename closes the file descriptor and renames the file.
CreateTempFile creates a file descriptor with _tmp as file extension.
DirectoryEmpty returns whether the given directory is empty.
EstimateRemainingTime estimates the remaining time for a running operation and returns the finished percentage.
FolderSize returns the size of a folder.
LoadEd25519PrivateKeysFromEnvironment loads ed25519 private keys from the given environment variable.
LoadStringFromEnvironment loads a string from the given environment variable.
MergeContexts creates a new mergedContext based on two contexts.
No description provided by the author
NewTimeHeap creates a new TimeHeap object.
NewWrappedLogger creates a new WrappedLogger.
No description provided by the author
No description provided by the author
RandomInsecure returns a random int in the range of min to max.
ReadFromFile reads structured binary data from the file named by filename to data.
ReadJSONFromFile reads JSON data from the file named by filename to data.
ReadTOMLFromFile reads TOML data from the file named by filename to data.
ReturnErrIfChannelClosed returns the given error if the provided channel was closed.
ReturnErrIfCtxDone returns the given error if the provided context is done.
Uint32Diff returns the difference between newCount and oldCount and catches overflows.
WaitForChannelClosed waits until the channel is closed or the context is done.
WriteJSONToFile writes the JSON representation of data to a file named by filename.
WriteToFile writes the binary representation of data to a file named by filename.
WriteTOMLToFile writes the TOML representation of data to a file named by filename.

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
TimeHeap implements a heap sorted by time, where older elements are popped during AveragePerSecond call.
WrappedLogger is a wrapper to call logging functions in case a logger was passed.