pb

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_file_proto protoreflect.FileDescriptor
View Source
var File_pb_hit_proto protoreflect.FileDescriptor
View Source
var File_pb_word_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type File

type File struct {

	// ID 文件主键.
	ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// Name 文件名.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Size 文件尺寸.
	Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// IsDir 目录.
	IsDir bool `protobuf:"varint,4,opt,name=isDir,proto3" json:"isDir,omitempty"`
	// ModTime 修改时间.
	ModTime int64 `protobuf:"varint,5,opt,name=modTime,proto3" json:"modTime,omitempty"`
	// Hits 命中.
	Hits []*Hit `protobuf:"bytes,6,rep,name=hits,proto3" json:"hits,omitempty"`
	// WordCount 词数量.
	WordCount uint32 `protobuf:"varint,7,opt,name=wordCount,proto3" json:"wordCount,omitempty"`
	// Words 词汇.
	Words []string `protobuf:"bytes,8,rep,name=words,proto3" json:"words,omitempty"`
	// indexSize 索引占用字节数.
	IndexSize uint32 `protobuf:"varint,9,opt,name=indexSize,proto3" json:"indexSize,omitempty"`
	// contains filtered or unexported fields
}

File 文件.

func (*File) Descriptor deprecated

func (*File) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetHits

func (x *File) GetHits() []*Hit

func (*File) GetID

func (x *File) GetID() uint32

func (*File) GetIndexSize added in v1.0.2

func (x *File) GetIndexSize() uint32

func (*File) GetIsDir

func (x *File) GetIsDir() bool

func (*File) GetModTime

func (x *File) GetModTime() int64

func (*File) GetName

func (x *File) GetName() string

func (*File) GetSize

func (x *File) GetSize() int64

func (*File) GetWordCount

func (x *File) GetWordCount() uint32

func (*File) GetWords

func (x *File) GetWords() []string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

type Hit

type Hit struct {

	// Text 文本.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// Line 行号.
	Line uint32 `protobuf:"varint,2,opt,name=Line,proto3" json:"Line,omitempty"`
	// Words 词位置.
	Words map[uint32]uint32 `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

Hit 命中.

func (*Hit) Descriptor deprecated

func (*Hit) Descriptor() ([]byte, []int)

Deprecated: Use Hit.ProtoReflect.Descriptor instead.

func (*Hit) GetLine

func (x *Hit) GetLine() uint32

func (*Hit) GetText

func (x *Hit) GetText() string

func (*Hit) GetWords

func (x *Hit) GetWords() map[uint32]uint32

func (*Hit) ProtoMessage

func (*Hit) ProtoMessage()

func (*Hit) ProtoReflect

func (x *Hit) ProtoReflect() protoreflect.Message

func (*Hit) Reset

func (x *Hit) Reset()

func (*Hit) String

func (x *Hit) String() string

type Word

type Word struct {

	// ID 词主键.
	ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// Word 词.
	Word string `protobuf:"bytes,2,opt,name=Word,proto3" json:"Word,omitempty"`
	// Count 包含的文件数量.
	Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	// Files 关联的文件.
	Files []*File `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"`
	// indexSize 索引占用字节数.
	IndexSize uint32 `protobuf:"varint,5,opt,name=indexSize,proto3" json:"indexSize,omitempty"`
	// contains filtered or unexported fields
}

Word 词信息.

func (*Word) Descriptor deprecated

func (*Word) Descriptor() ([]byte, []int)

Deprecated: Use Word.ProtoReflect.Descriptor instead.

func (*Word) GetCount

func (x *Word) GetCount() uint32

func (*Word) GetFiles

func (x *Word) GetFiles() []*File

func (*Word) GetID

func (x *Word) GetID() uint32

func (*Word) GetIndexSize added in v1.0.2

func (x *Word) GetIndexSize() uint32

func (*Word) GetWord

func (x *Word) GetWord() string

func (*Word) ProtoMessage

func (*Word) ProtoMessage()

func (*Word) ProtoReflect

func (x *Word) ProtoReflect() protoreflect.Message

func (*Word) Reset

func (x *Word) Reset()

func (*Word) String

func (x *Word) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL