search

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hit

type Hit struct {
	Source         Source        `json:"_source"`
	SearchCriteria []interface{} `json:"sort"`
}

type Hits

type Hits struct {
	Hits     []Hit   `json:"hits"`
	MaxScore float64 `json:"max_score"`
}

type Match

type Match struct {
	Title string `json:"kubernetes.labels.app"`
}

type OpenSearchRequest

type OpenSearchRequest struct {
	Query       Query          `json:"query"`
	SearchAfter []interface{}  `json:"search_after"`
	Sort        []SortCriteria `json:"sort"`
}

type OpenSearchResponse

type OpenSearchResponse struct {
	Took     float64 `json:"took"`
	HitsRoot Hits    `json:"hits"`
}

type Query

type Query struct {
	Match Match `json:"match_phrase"`
}

type SortCriteria

type SortCriteria map[string]string

type Source

type Source struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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