Documentation ¶
Index ¶
- Variables
- func Copy(src, dst string, exclude []string) error
- func DirSize(path string) (int64, error)
- func Exists(path string) bool
- func FullVersion() string
- func GetDatafiles(path string) ([]string, error)
- func LoadFromJsonFile(path string, v interface{}) error
- func ParseIds(fns []string) ([]int, error)
- func SaveJsonToFile(v interface{}, path string, mode os.FileMode) error
- type Entry
- type Item
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version release version Version = "0.0.1" // Commit will be overwritten automatically by the build system Commit = "HEAD" )
Functions ¶
func DirSize ¶
DirSize returns the space occupied by the given `path` on disk on the current file system.
func GetDatafiles ¶
GetDatafiles returns a list of all data files stored in the database path given by `path`. All datafiles are identified by the the glob `*.data` and the basename is represented by a monotonic increasing integer. The returned files are *sorted* in increasing order.
func LoadFromJsonFile ¶
LoadFromJsonFile reads file located at `path` and put its content in json format in v
Types ¶
type Item ¶
type Item struct { FileID int `json:"fileid"` Offset int64 `json:"offset"` Size int64 `json:"size"` }
Item represents the location of the value on disk. This is used by the internal Adaptive Radix Tree to hold an in-memory structure mapping keys to locations on disk of where the value(s) can be read from.
Click to show internal directories.
Click to hide internal directories.