tui

package
v0.0.0-...-5d77f35 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Keymap = keymap{
	Back: key.NewBinding(
		key.WithKeys("esc"),
		key.WithHelp("esc", "back"),
	),
	Quit: key.NewBinding(
		key.WithKeys("ctrl+c", "q"),
		key.WithHelp("ctrl+c/q", "quit"),
	),
}

Keymap reusable key mappings shared across models

Functions

func StartTUI

func StartTUI(nContext string) error

Types

type NatsContext

type NatsContext struct {
	CA                   string `json:"ca"`
	Cert                 string `json:"cert"`
	ColorScheme          string `json:"color_scheme"`
	Creds                string `json:"creds"`
	Desc                 string `json:"description"`
	InboxPrefix          string `json:"inbox_prefix"`
	JetstreamApiPrefix   string `json:"jetstream_api_prefix"`
	JetstreamDomain      string `json:"jetstream_domain"`
	JetstreamEventPrefix string `json:"jetstream_event_prefix"`
	Key                  string `json:"key"`
	Nkey                 string `json:"nkey"`
	Nsc                  string `json:"nsc"`
	Password             string `json:"password"`
	SocksProxy           string `json:"socks_proxy"`
	Token                string `json:"token"`
	URL                  string `json:"url"`
	User                 string `json:"user"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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