Documentation ¶
Index ¶
Constants ¶
View Source
const BadgerRecommendedMaxFileDescr = 65535
Variables ¶
This section is empty.
Functions ¶
func AbsInt64 ¶
AbsInt64 takes an int64 and returns the absolute value Source: http://cavaliercoder.com/blog/optimized-abs-for-int64-in-go.html
func CheckFileDescriptorLimit ¶
CheckFileDescriptorLimit checks if the OS limit for open file descriptors is high enough and if not, tries to increase it.
func CropString ¶
CropString crops a given string if it is bigger than size
func ParseSizeInBytes ¶
ParseSizeInBytes converts strings like 1GB or 12 mb into an unsigned integer number of bytes
func StdoutIsTerminal ¶
func StdoutIsTerminal() bool
Types ¶
type OutOfSpaceError ¶
type OutOfSpaceError string
func NewOutOfSpaceError ¶
func NewOutOfSpaceError(format string, a ...any) OutOfSpaceError
func (OutOfSpaceError) Error ¶
func (o OutOfSpaceError) Error() string
Click to show internal directories.
Click to hide internal directories.