Documentation
¶
Index ¶
- type AsyncSearchRequest
- type AsyncSearchStatus
- type AsyncSearcher
- func (as *AsyncSearcher) CancelSearch(id string)
- func (as *AsyncSearcher) DeleteSearch(id string)
- func (as *AsyncSearcher) FetchSearchResult(r FetchSearchResultRequest) (FetchSearchResultResponse, bool)
- func (as *AsyncSearcher) GetAsyncSearchesList(r GetAsyncSearchesListRequest) []*AsyncSearchesListItem
- func (as *AsyncSearcher) StartSearch(r AsyncSearchRequest, fracs fracmanager.List) error
- type AsyncSearcherConfig
- type AsyncSearchesListItem
- type FetchSearchResultRequest
- type FetchSearchResultResponse
- type GetAsyncSearchesListRequest
- type MappingProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncSearchRequest ¶
type AsyncSearchStatus ¶
type AsyncSearchStatus byte
const ( AsyncSearchStatusDone AsyncSearchStatus = iota AsyncSearchStatusInProgress AsyncSearchStatusError AsyncSearchStatusCanceled )
type AsyncSearcher ¶
type AsyncSearcher struct {
// contains filtered or unexported fields
}
func MustStartAsync ¶
func MustStartAsync(config AsyncSearcherConfig, mp MappingProvider, fracs fracmanager.List) *AsyncSearcher
func (*AsyncSearcher) CancelSearch ¶
func (as *AsyncSearcher) CancelSearch(id string)
func (*AsyncSearcher) DeleteSearch ¶
func (as *AsyncSearcher) DeleteSearch(id string)
func (*AsyncSearcher) FetchSearchResult ¶
func (as *AsyncSearcher) FetchSearchResult(r FetchSearchResultRequest) (FetchSearchResultResponse, bool)
func (*AsyncSearcher) GetAsyncSearchesList ¶
func (as *AsyncSearcher) GetAsyncSearchesList(r GetAsyncSearchesListRequest) []*AsyncSearchesListItem
func (*AsyncSearcher) StartSearch ¶
func (as *AsyncSearcher) StartSearch(r AsyncSearchRequest, fracs fracmanager.List) error
type AsyncSearcherConfig ¶
type AsyncSearchesListItem ¶
type AsyncSearchesListItem struct {
ID string
Status AsyncSearchStatus
StartedAt time.Time
ExpiresAt time.Time
CanceledAt time.Time
FracsDone int
FracsInQueue int
DiskUsage int
// Search request info
AggQueries []processor.AggQuery
HistInterval uint64
Query string
From seq.MID
To seq.MID
Retention time.Duration
WithDocs bool
Size int64
Error string
}
type FetchSearchResultResponse ¶
type FetchSearchResultResponse struct {
Status AsyncSearchStatus
QPR seq.QPR
CanceledAt time.Time
Error string
StartedAt time.Time
ExpiresAt time.Time
FracsDone int
FracsInQueue int
DiskUsage int
// Stuff that needed seq-db proxy to complete async search response.
AggQueries []processor.AggQuery
HistInterval uint64
Query string
From seq.MID
To seq.MID
Retention time.Duration
WithDocs bool
Size int64
}
type GetAsyncSearchesListRequest ¶
type GetAsyncSearchesListRequest struct {
Status *AsyncSearchStatus
IDs []string
}
type MappingProvider ¶
Click to show internal directories.
Click to hide internal directories.