Versions in this module Expand all Collapse all v0 v0.6.0 Nov 27, 2021 Changes in this version + func NameByNodeId(nodeId int64) string + func NewGeneratedFile(nodeId int64, opts Opts) em_file.File + func SizeByNodeId(nodeId int64, opts Opts) int64 + func TimeByNodeId(nodeId int64, opts Opts) time.Time + type Generator interface + Generate func(opt ...Opt) (root em_file.Folder) + Update func(root em_file.Folder, r *rand.Rand) + func NewPoissonTree() Generator + type Opt func(o Opts) Opts + func Depth(max int) Opt + func FileDate(min, max time.Time) Opt + func FileSize(min, max int64) Opt + func NumDescendant(maxFilesInFolder, maxFoldersInFolder int) Opt + func NumFiles(files int) Opt + func Seed(seed int64) Opt + type Opts struct + func Default() Opts + func (z Opts) Apply(opt []Opt) Opts