Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NameFunc = keyPath HashFunc = sha1.New )
Functions ¶
This section is empty.
Types ¶
type File ¶
type Fs ¶
type Fs struct {
// NameFunc maps Keys to file names on disk. The names
// are used to Load and Store data on the filesystem.
NameFunc func(Key) string
// HashFunc returns a new hash.Hash algorithm used to address
// the underlying file contents
HashFunc func() hash.Hash
// contains filtered or unexported fields
}
Fs is a key value store
func (*Fs) NewFile ¶
NewFile returns a *File satisfying io.WriteCloser. A File's data may not be committed to the filesystem until a Sync() or Close() occur.
Click to show internal directories.
Click to hide internal directories.