Documentation ¶
Overview ¶
storage
Index ¶
- func DeleteDir(dir string) error
- func GetNumOpenFiles() int
- func Init()
- func Insert(file string, jData []byte) (uint16, int)
- func MakeDir(dir string) error
- func Read(file string, line uint16) ([]byte, int)
- func SetFileOpenTime(t time.Duration)
- func SetMaxOpenFiles(max uint16)
- func ShutDown()
- func Update(file string, line uint16, jData []byte) int
- type OpenFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNumOpenFiles ¶
func GetNumOpenFiles() int
GetNumopenFiles gets the number of OpenFiles in system
func Insert ¶
Insert appends a JSON encoded []byte at the end of given JSON file and reports back the line number that was written to
func SetFileOpenTime ¶
SetFileOpenTime preference allows you to keep OpenFiles open for a given duration.
func SetMaxOpenFiles ¶
func SetMaxOpenFiles(max uint16)
SetMaxOpenFiles preference sets the maximum number of OpenFile to be open. When the maximum number of OpenFile has been reached, a random OpenFile will be closed.
Types ¶
Click to show internal directories.
Click to hide internal directories.