Documentation ¶
Index ¶
- type TriggerIndex
- func (index *TriggerIndex) Delete(triggerIDs []string) error
- func (index *TriggerIndex) GetCount() (int64, error)
- func (index *TriggerIndex) Search(filterTags []string, searchString string, onlyErrors bool, page int64, ...) (searchResults []*moira.SearchResult, total int64, err error)
- func (index *TriggerIndex) Write(checks []*moira.TriggerCheck) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TriggerIndex ¶
type TriggerIndex struct {
// contains filtered or unexported fields
}
TriggerIndex is implementation of index.TriggerIndex interface
func CreateTriggerIndex ¶
func CreateTriggerIndex(mapping mapping.IndexMapping) (*TriggerIndex, error)
CreateTriggerIndex returns TriggerIndex by provided mapping
func (*TriggerIndex) Delete ¶
func (index *TriggerIndex) Delete(triggerIDs []string) error
Delete removes triggerIDs from TriggerIndex
func (*TriggerIndex) GetCount ¶
func (index *TriggerIndex) GetCount() (int64, error)
GetCount returns number of documents in TriggerIndex
func (*TriggerIndex) Search ¶
func (index *TriggerIndex) Search(filterTags []string, searchString string, onlyErrors bool, page int64, size int64) (searchResults []*moira.SearchResult, total int64, err error)
Search gets search params and returns triggerIDs in following order: TriggerCheck.Score (desc) Relevance (asc) Trigger.Name (asc)
func (*TriggerIndex) Write ¶
func (index *TriggerIndex) Write(checks []*moira.TriggerCheck) error
Write adds moira.TriggerChecks to TriggerIndex
Click to show internal directories.
Click to hide internal directories.