Documentation
¶
Overview ¶
Package space holds a PC's local Space: a World on a database in the daemon's directory. Modlock keeps game files there as UnixFS objects, which store each file as content-addressed blocks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// Handle is the object's root directory.
Handle *unixfs.FSHandle
// Key is the object's key in the World.
Key string
// Type is the object's UnixFS kind.
Type unixfs_world.FSType
// World is the World the object lives in.
World world.WorldState
// contains filtered or unexported fields
}
FS is an open UnixFS object in the Space.
type Space ¶
type Space struct {
// contains filtered or unexported fields
}
Space is an open local Space. Release it after every handle it opened.
func Open ¶
Open opens the Space in the database at path, creating it when absent. Only one process may open path at a time; the daemon's lock ensures it.
Click to show internal directories.
Click to hide internal directories.