MCPcopy
hub / github.com/perkeep/perkeep / NewGenerationer

Function NewGenerationer

pkg/blobserver/local/generation.go:38–40  ·  view source on GitHub ↗

NewGenerationer returns a struct for implementing blobserver.Generationer

(rootDir string)

Source from the content-addressed store, hash-verified

36
37// NewGenerationer returns a struct for implementing blobserver.Generationer
38func NewGenerationer(rootDir string) *Generationer {
39 return &Generationer{rootDir}
40}
41
42func (g Generationer) generationFile() string {
43 return filepath.Join(g.root, "GENERATION.dat")

Callers 2

newStorageFunction · 0.92
NewFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected