tui

package
v0.0.0-...-7555be3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderWindowTitle = "Redis Manager"
	FooterWindowTitle = "q: quit • ^r refresh"
)

Variables

This section is empty.

Functions

func FetchAll

func FetchAll() tea.Cmd

Types

type FetchResponse

type FetchResponse struct {
	Data map[string]string
	Err  error
}

type Model

type Model struct {
	List  list.Model
	State State
}

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type State

type State int
const (
	Error State = iota
	Active
	Fetching
)

Jump to

Keyboard shortcuts

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