ui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source

BANNER of the qelk.

View Source
const VERSION = "0.1.0"

VERSION of the qelk.

Variables

This section is empty.

Functions

func MainDashboard

func MainDashboard()

MainDashboard initiates the main menu.

func Read

func Read(r io.Reader) string

Read the response.

func SearchDashboard

func SearchDashboard(query string, size int, index string, fields []string, sort []string)

SearchDashboard initiates the Search window.

func StatsDashboard

func StatsDashboard()

StatsDashboard initiates the Stats window.

Types

type MainWindow

type MainWindow struct {
	// contains filtered or unexported fields
}

MainWindow creates the Main Menu Window.

type Results

type Results struct {
	*tview.Grid
	// contains filtered or unexported fields
}

Results implements tview's Grid for search response.

func SearchResults

func SearchResults(sizes int, index string, query string, fields []string, sort []string) *Results

SearchResults initiates search results window.

func (*Results) DefaultInputHandler

func (c *Results) DefaultInputHandler(ev *tcell.EventKey) *tcell.EventKey

DefaultInputHandler is for setting keys of results page.

func (*Results) InspectResult

func (c *Results) InspectResult() *tview.Modal

InspectResult creates a modal for inspecting long results.

type SearchWindow

type SearchWindow struct {
	// contains filtered or unexported fields
}

SearchWindow search UI.

type StatsWindow

type StatsWindow struct {
	// contains filtered or unexported fields
}

StatsWindow stats UI.

Jump to

Keyboard shortcuts

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