Documentation
¶
Index ¶
- Variables
- type Ack
- type Config
- type Hit
- type Mate
- func (p *Mate) Ack() string
- func (*Mate) Descriptor() ([]byte, []int)deprecated
- func (x *Mate) GetHits() []*Hit
- func (x *Mate) GetRow() uint32
- func (x *Mate) GetText() string
- func (*Mate) ProtoMessage()
- func (x *Mate) ProtoReflect() protoreflect.Message
- func (x *Mate) Reset()
- func (x *Mate) String() string
- type Query
- func (*Query) Descriptor() ([]byte, []int)deprecated
- func (x *Query) GetAgTypes() []string
- func (x *Query) GetGrepType() string
- func (x *Query) GetMaxCount() uint32
- func (x *Query) GetPaths() []string
- func (x *Query) GetPattern() string
- func (x *Query) GetRgTypes() []string
- func (x *Query) GetSearcher() Searcher
- func (x *Query) GetUgTypes() []string
- func (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
- type Result
- type Searcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Searcher_name = map[int32]string{ 0: "none", 1: "rg", 2: "ug", 3: "ag", } Searcher_value = map[string]int32{ "none": 0, "rg": 1, "ug": 2, "ag": 3, } )
Enum value maps for Searcher.
View Source
var File_pb_ack_proto protoreflect.FileDescriptor
View Source
var File_pb_config_proto protoreflect.FileDescriptor
View Source
var File_pb_hit_proto protoreflect.FileDescriptor
View Source
var File_pb_mate_proto protoreflect.FileDescriptor
View Source
var File_pb_query_proto protoreflect.FileDescriptor
View Source
var File_pb_result_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Ack ¶
type Ack struct { File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` Mates []*Mate `protobuf:"bytes,2,rep,name=mates,proto3" json:"mates,omitempty"` // contains filtered or unexported fields }
Ack 格式.
func (*Ack) Descriptor
deprecated
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
func (*Ack) ProtoReflect ¶
func (x *Ack) ProtoReflect() protoreflect.Message
type Config ¶
type Config struct { Query *Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // Paths 被选目录. Dirs []string `protobuf:"bytes,2,rep,name=dirs,proto3" json:"dirs,omitempty"` // contains filtered or unexported fields }
Config 配置.
func (*Config) Descriptor
deprecated
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Hit ¶
type Hit struct { Col uint32 `protobuf:"varint,1,opt,name=col,proto3" json:"col,omitempty"` Len uint32 `protobuf:"varint,2,opt,name=len,proto3" json:"len,omitempty"` // contains filtered or unexported fields }
Hit.
func (*Hit) Descriptor
deprecated
func (*Hit) ProtoMessage ¶
func (*Hit) ProtoMessage()
func (*Hit) ProtoReflect ¶
func (x *Hit) ProtoReflect() protoreflect.Message
type Mate ¶
type Mate struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Row uint32 `protobuf:"varint,2,opt,name=row,proto3" json:"row,omitempty"` Hits []*Hit `protobuf:"bytes,3,rep,name=hits,proto3" json:"hits,omitempty"` // contains filtered or unexported fields }
Mate ackmate.
func (*Mate) Descriptor
deprecated
func (*Mate) ProtoMessage ¶
func (*Mate) ProtoMessage()
func (*Mate) ProtoReflect ¶
func (x *Mate) ProtoReflect() protoreflect.Message
type Query ¶
type Query struct { Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` MaxCount uint32 `protobuf:"varint,2,opt,name=maxCount,proto3" json:"maxCount,omitempty"` Searcher Searcher `protobuf:"varint,3,opt,name=searcher,proto3,enum=pb.Searcher" json:"searcher,omitempty"` Paths []string `protobuf:"bytes,4,rep,name=paths,proto3" json:"paths,omitempty"` RgTypes []string `protobuf:"bytes,5,rep,name=rgTypes,proto3" json:"rgTypes,omitempty"` AgTypes []string `protobuf:"bytes,6,rep,name=agTypes,proto3" json:"agTypes,omitempty"` UgTypes []string `protobuf:"bytes,7,rep,name=ugTypes,proto3" json:"ugTypes,omitempty"` GrepType string `protobuf:"bytes,8,opt,name=grepType,proto3" json:"grepType,omitempty"` // contains filtered or unexported fields }
Query .
func (*Query) Descriptor
deprecated
func (*Query) GetAgTypes ¶
func (*Query) GetGrepType ¶
func (*Query) GetMaxCount ¶
func (*Query) GetPattern ¶
func (*Query) GetRgTypes ¶
func (*Query) GetSearcher ¶
func (*Query) GetUgTypes ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type Result ¶
type Result struct { Query *Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Acks []*Ack `protobuf:"bytes,2,rep,name=acks,proto3" json:"acks,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type Searcher ¶
type Searcher int32
func (Searcher) Descriptor ¶
func (Searcher) Descriptor() protoreflect.EnumDescriptor
func (Searcher) EnumDescriptor
deprecated
func (Searcher) Number ¶
func (x Searcher) Number() protoreflect.EnumNumber
func (Searcher) Type ¶
func (Searcher) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.