Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultSize = 4 * 1024 * 1024
DefaultSize is the default size limit for FileArgs
Variables ¶
View Source
var TempDirectory = os.TempDir()
TempDirectory is the directory where FileArgs will mount the actual files to. Defaults to os.TempDir() but can be globally overridden by the application before any FileArgs are used.
Functions ¶
This section is empty.
Types ¶
type FileArgs ¶
type FileArgs struct {
// contains filtered or unexported fields
}
func New ¶
New initializes a new set of file-based arguments. Remember to call Close() if you're done using it, otherwise this leaks memory and mounts.
func NewWithSize ¶
NewWithSize is the same as new, but with a custom size limit. Please be aware that this data cannot be swapped out and using a size limit that's too high can deadlock your kernel.
Click to show internal directories.
Click to hide internal directories.