Documentation ¶
Overview ¶
Package filetree_proto is a generated protocol buffer package.
It is generated from these files:
kythe/proto/filetree.proto
It has these top-level messages:
CorpusRootsRequest CorpusRootsReply DirectoryRequest DirectoryReply
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFileTreeServiceServer ¶
func RegisterFileTreeServiceServer(s *grpc.Server, srv FileTreeServiceServer)
Types ¶
type CorpusRootsReply ¶
type CorpusRootsReply struct {
Corpus []*CorpusRootsReply_Corpus `protobuf:"bytes,1,rep,name=corpus" json:"corpus,omitempty"`
}
func (*CorpusRootsReply) GetCorpus ¶
func (m *CorpusRootsReply) GetCorpus() []*CorpusRootsReply_Corpus
func (*CorpusRootsReply) ProtoMessage ¶
func (*CorpusRootsReply) ProtoMessage()
func (*CorpusRootsReply) Reset ¶
func (m *CorpusRootsReply) Reset()
func (*CorpusRootsReply) String ¶
func (m *CorpusRootsReply) String() string
type CorpusRootsReply_Corpus ¶
type CorpusRootsReply_Corpus struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Root []string `protobuf:"bytes,2,rep,name=root" json:"root,omitempty"` }
func (*CorpusRootsReply_Corpus) ProtoMessage ¶
func (*CorpusRootsReply_Corpus) ProtoMessage()
func (*CorpusRootsReply_Corpus) Reset ¶
func (m *CorpusRootsReply_Corpus) Reset()
func (*CorpusRootsReply_Corpus) String ¶
func (m *CorpusRootsReply_Corpus) String() string
type CorpusRootsRequest ¶
type CorpusRootsRequest struct { }
func (*CorpusRootsRequest) ProtoMessage ¶
func (*CorpusRootsRequest) ProtoMessage()
func (*CorpusRootsRequest) Reset ¶
func (m *CorpusRootsRequest) Reset()
func (*CorpusRootsRequest) String ¶
func (m *CorpusRootsRequest) String() string
type DirectoryReply ¶
type DirectoryReply struct { // Set of tickets for each contained sub-directory's corpus, root, and path. Subdirectory []string `protobuf:"bytes,1,rep,name=subdirectory" json:"subdirectory,omitempty"` // Set of file tickets contained within this directory. File []string `protobuf:"bytes,2,rep,name=file" json:"file,omitempty"` }
func (*DirectoryReply) ProtoMessage ¶
func (*DirectoryReply) ProtoMessage()
func (*DirectoryReply) Reset ¶
func (m *DirectoryReply) Reset()
func (*DirectoryReply) String ¶
func (m *DirectoryReply) String() string
type DirectoryRequest ¶
type DirectoryRequest struct { Corpus string `protobuf:"bytes,1,opt,name=corpus" json:"corpus,omitempty"` Root string `protobuf:"bytes,2,opt,name=root" json:"root,omitempty"` Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"` }
func (*DirectoryRequest) ProtoMessage ¶
func (*DirectoryRequest) ProtoMessage()
func (*DirectoryRequest) Reset ¶
func (m *DirectoryRequest) Reset()
func (*DirectoryRequest) String ¶
func (m *DirectoryRequest) String() string
type FileTreeServiceClient ¶
type FileTreeServiceClient interface { // CorpusRoots returns all known corpus/root pairs for stored files. CorpusRoots(ctx context.Context, in *CorpusRootsRequest, opts ...grpc.CallOption) (*CorpusRootsReply, error) // Directory returns the file/sub-directory contents of the given directory. Directory(ctx context.Context, in *DirectoryRequest, opts ...grpc.CallOption) (*DirectoryReply, error) }
func NewFileTreeServiceClient ¶
func NewFileTreeServiceClient(cc *grpc.ClientConn) FileTreeServiceClient
type FileTreeServiceServer ¶
type FileTreeServiceServer interface { // CorpusRoots returns all known corpus/root pairs for stored files. CorpusRoots(context.Context, *CorpusRootsRequest) (*CorpusRootsReply, error) // Directory returns the file/sub-directory contents of the given directory. Directory(context.Context, *DirectoryRequest) (*DirectoryReply, error) }
Click to show internal directories.
Click to hide internal directories.