package
Version:
v1.35.3-cluster
Opens a new window with list of versions in this module.
Published: May 7, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 23
Opens a new window with list of known importers.
Documentation
¶
Allowed returns the amount of system memory allowed to use by the app.
The function must be called only after flag.Parse is called.
func Remaining ¶
added in
v1.27.0
Remaining returns the amount of memory remaining to the OS.
This function must be called only after flag.Parse is called.
type Limiter struct {
MaxSize uint64
}
Limiter is the memory limiter.
It limits memory to MaxSize.
Get obtains n bytes of memory from ml.
It returns true on success, false on error.
Put returns back n bytes of memory to ml.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.