Documentation
¶
Index ¶
- Variables
- type Manager
- type Match
- func (*Match) Descriptor() ([]byte, []int)
- func (m *Match) Marshal() (dAtA []byte, err error)
- func (m *Match) MarshalTo(dAtA []byte) (int, error)
- func (*Match) ProtoMessage()
- func (m *Match) Reset()
- func (m *Match) Size() (n int)
- func (this *Match) String() string
- func (m *Match) Unmarshal(dAtA []byte) error
- func (m *Match) XXX_DiscardUnknown()
- func (m *Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Match) XXX_Merge(src proto.Message)
- func (m *Match) XXX_Size() int
- func (m *Match) XXX_Unmarshal(b []byte) error
- type MatchList
- type Matches
- func (*Matches) Descriptor() ([]byte, []int)
- func (m *Matches) Marshal() (dAtA []byte, err error)
- func (m *Matches) MarshalTo(dAtA []byte) (int, error)
- func (*Matches) ProtoMessage()
- func (m *Matches) Reset()
- func (m *Matches) Size() (n int)
- func (this *Matches) String() string
- func (m *Matches) Unmarshal(dAtA []byte) error
- func (m *Matches) XXX_DiscardUnknown()
- func (m *Matches) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Matches) XXX_Merge(src proto.Message)
- func (m *Matches) XXX_Size() int
- func (m *Matches) XXX_Unmarshal(b []byte) error
- type Options
- func (*Options) Descriptor() ([]byte, []int)
- func (m *Options) Marshal() (dAtA []byte, err error)
- func (m *Options) MarshalTo(dAtA []byte) (int, error)
- func (*Options) ProtoMessage()
- func (m *Options) Reset()
- func (m *Options) Size() (n int)
- func (this *Options) String() string
- func (m *Options) Unmarshal(dAtA []byte) error
- func (m *Options) XXX_DiscardUnknown()
- func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Options) XXX_Merge(src proto.Message)
- func (m *Options) XXX_Size() int
- func (m *Options) XXX_Unmarshal(b []byte) error
- type Request
- type Result
- func (*Result) Descriptor() ([]byte, []int)
- func (m *Result) Marshal() (dAtA []byte, err error)
- func (m *Result) MarshalTo(dAtA []byte) (int, error)
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) Size() (n int)
- func (this *Result) String() string
- func (m *Result) Unmarshal(dAtA []byte) error
- func (m *Result) XXX_DiscardUnknown()
- func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Result) XXX_Merge(src proto.Message)
- func (m *Result) XXX_Size() int
- func (m *Result) XXX_Unmarshal(b []byte) error
- type Search
- func (*Search) Descriptor() ([]byte, []int)
- func (m *Search) Marshal() (dAtA []byte, err error)
- func (m *Search) MarshalTo(dAtA []byte) (int, error)
- func (*Search) ProtoMessage()
- func (m *Search) Reset()
- func (m *Search) Size() (n int)
- func (this *Search) String() string
- func (m *Search) Unmarshal(dAtA []byte) error
- func (m *Search) XXX_DiscardUnknown()
- func (m *Search) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Search) XXX_Merge(src proto.Message)
- func (m *Search) XXX_Size() int
- func (m *Search) XXX_Unmarshal(b []byte) error
- type Search_Status
- type Summary
- func (*Summary) Descriptor() ([]byte, []int)
- func (m *Summary) Marshal() (dAtA []byte, err error)
- func (m *Summary) MarshalTo(dAtA []byte) (int, error)
- func (*Summary) ProtoMessage()
- func (m *Summary) Reset()
- func (m *Summary) Size() (n int)
- func (this *Summary) String() string
- func (m *Summary) Unmarshal(dAtA []byte) error
- func (m *Summary) XXX_DiscardUnknown()
- func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Summary) XXX_Merge(src proto.Message)
- func (m *Summary) XXX_Size() int
- func (m *Summary) XXX_Unmarshal(b []byte) error
- type SummaryList
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthSearch = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSearch = fmt.Errorf("proto: integer overflow") )
View Source
var Search_Status_name = map[int32]string{
0: "Queued",
1: "Started",
2: "Completed",
}
View Source
var Search_Status_value = map[string]int32{
"Queued": 0,
"Started": 1,
"Completed": 2,
}
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
Queue *queue.Queue
List map[string]*Search
Plugins *repo.Repo
Themes *repo.Repo
Loaded bool
sync.RWMutex
// contains filtered or unexported fields
}
Manager controls the processing and storage of searches
type Match ¶
type Match struct {
Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"`
File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
LineNum uint32 `protobuf:"varint,3,opt,name=line_num,json=lineNum,proto3" json:"line_num,omitempty"`
LineText string `protobuf:"bytes,4,opt,name=line_text,json=lineText,proto3" json:"line_text,omitempty"`
}
func (*Match) Descriptor ¶
func (*Match) ProtoMessage ¶
func (*Match) ProtoMessage()
func (*Match) XXX_DiscardUnknown ¶
func (m *Match) XXX_DiscardUnknown()
func (*Match) XXX_Marshal ¶
func (*Match) XXX_Unmarshal ¶
type Matches ¶
type Matches struct {
List []*Match `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"`
}
func (*Matches) Descriptor ¶
func (*Matches) ProtoMessage ¶
func (*Matches) ProtoMessage()
func (*Matches) XXX_DiscardUnknown ¶
func (m *Matches) XXX_DiscardUnknown()
func (*Matches) XXX_Marshal ¶
func (*Matches) XXX_Unmarshal ¶
type Options ¶
type Options struct {
IgnoreCase bool `protobuf:"varint,1,opt,name=ignore_case,json=ignoreCase,proto3" json:"ignore_case,omitempty"`
LinesOfContext uint32 `protobuf:"varint,2,opt,name=lines_of_context,json=linesOfContext,proto3" json:"lines_of_context,omitempty"`
FileRegexp string `protobuf:"bytes,3,opt,name=file_regexp,json=fileRegexp,proto3" json:"file_regexp,omitempty"`
IgnoreComments bool `protobuf:"varint,4,opt,name=ignore_comments,json=ignoreComments,proto3" json:"ignore_comments,omitempty"`
Offset uint32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
Limit uint32 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
}
func (*Options) Descriptor ¶
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) XXX_DiscardUnknown ¶
func (m *Options) XXX_DiscardUnknown()
func (*Options) XXX_Marshal ¶
func (*Options) XXX_Unmarshal ¶
type Result ¶
type Result struct {
Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
Homepage string `protobuf:"bytes,4,opt,name=homepage,proto3" json:"homepage,omitempty"`
ActiveInstalls uint32 `protobuf:"varint,5,opt,name=active_installs,json=activeInstalls,proto3" json:"active_installs"`
Matches uint32 `protobuf:"varint,6,opt,name=matches,proto3" json:"matches"`
}
func (*Result) Descriptor ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) XXX_DiscardUnknown ¶
func (m *Result) XXX_DiscardUnknown()
func (*Result) XXX_Marshal ¶
func (*Result) XXX_Unmarshal ¶
type Search ¶
type Search struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Input string `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
Repo string `protobuf:"bytes,3,opt,name=repo,proto3" json:"repo,omitempty"`
Started string `protobuf:"bytes,4,opt,name=started,proto3" json:"started,omitempty"`
Completed string `protobuf:"bytes,5,opt,name=completed,proto3" json:"completed,omitempty"`
Progress uint32 `protobuf:"varint,6,opt,name=progress,proto3" json:"progress,omitempty"`
Private bool `protobuf:"varint,7,opt,name=private,proto3" json:"private,omitempty"`
Status Search_Status `protobuf:"varint,8,opt,name=status,proto3,enum=search.Search_Status" json:"status,omitempty"`
Options *Options `protobuf:"bytes,9,opt,name=options" json:"options,omitempty"`
Matches uint32 `protobuf:"varint,10,opt,name=matches,proto3" json:"matches"`
Revision uint32 `protobuf:"varint,11,opt,name=revision,proto3" json:"revision,omitempty"`
}
func (*Search) Descriptor ¶
func (*Search) ProtoMessage ¶
func (*Search) ProtoMessage()
func (*Search) XXX_DiscardUnknown ¶
func (m *Search) XXX_DiscardUnknown()
func (*Search) XXX_Marshal ¶
func (*Search) XXX_Unmarshal ¶
type Search_Status ¶
type Search_Status int32
const ( Queued Search_Status = 0 Started Search_Status = 1 Completed Search_Status = 2 )
func (Search_Status) EnumDescriptor ¶
func (Search_Status) EnumDescriptor() ([]byte, []int)
func (Search_Status) String ¶
func (x Search_Status) String() string
type Summary ¶
type Summary struct {
Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
List map[string]*Result `` /* 135-byte string literal not displayed */
}
func (*Summary) Descriptor ¶
func (*Summary) ProtoMessage ¶
func (*Summary) ProtoMessage()
func (*Summary) XXX_DiscardUnknown ¶
func (m *Summary) XXX_DiscardUnknown()
func (*Summary) XXX_Marshal ¶
func (*Summary) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.