Documentation ¶
Overview ¶
Package filetree implements a lookup table for files in a tree structure.
Table format:
dirs:<corpus>\n<root>\n<path> -> srvpb.FileDirectory dirs:corpusRoots -> srvpb.CorpusRoots
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CorpusRootsKey = []byte(dirTablePrefix + "corpusRoots")
CorpusRootsKey is the filetree lookup key for the tree's srvpb.CorpusRoots.
Functions ¶
Types ¶
type Table ¶
Table implements the FileTree interface using a static lookup table.
func (*Table) CorpusRoots ¶
func (t *Table) CorpusRoots(ctx context.Context, req *ftpb.CorpusRootsRequest) (*ftpb.CorpusRootsReply, error)
CorpusRoots implements part of the filetree Service interface.
func (*Table) Directory ¶
func (t *Table) Directory(ctx context.Context, req *ftpb.DirectoryRequest) (*ftpb.DirectoryReply, error)
Directory implements part of the filetree Service interface.
Click to show internal directories.
Click to hide internal directories.