Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
Chunk is a chunk of content.
func UnmarshalCompressed ¶
UnmarshalCompressed unmarshals a chunk from compressed data.
func (*Chunk) MarshalCompressed ¶
MarshalCompressed marshals a chunk to compressed data for storing in the database. Like git, we add an object header, then compute the hash of the header and content, then compress the header and content.
type Universe ¶
type Universe struct {
// contains filtered or unexported fields
}
func Open ¶
Open opens the universe, creating kv db and its buckets if it doesn't exist.
Buckets: - name: chunk, key: content hash, value: content chunk - name: embedding, key: content hash, value: embedding - name: root, key: document path, value: merkle hash - name: tree, key: merkle hash, value: list of hashes of trees or chunks
Click to show internal directories.
Click to hide internal directories.