page

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConnectionPageId = "Connection"
)
View Source
const (
	HelpPageId = "Help"
)
View Source
const (
	MainPageId = "Main"
)
View Source
const (
	WelcomePageId = "Welcome"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	*core.BaseElement
	*core.Flex
	// contains filtered or unexported fields
}

Connection is a view for connecting to mongodb using tview package

func NewConnection

func NewConnection() *Connection

NewConnection creates a new connection view

func (*Connection) Init

func (c *Connection) Init(app *core.App) error

Init overrides the Init function from the BaseElement struct

func (*Connection) Render

func (c *Connection) Render()

func (*Connection) SetOnSubmitFunc

func (c *Connection) SetOnSubmitFunc(onSubmit func())

SetOnSubmitFunc sets callback function

type Help

type Help struct {
	*core.BaseElement
	*core.Table
	// contains filtered or unexported fields
}

Help is a view that provides a help screen for keybindings

func NewHelp

func NewHelp() *Help

NewHelp creates a new Help view

func (*Help) AddKeySection

func (h *Help) AddKeySection(name string, keys []config.Key, row *int, col int)

func (*Help) Render

func (h *Help) Render() error

type Main

type Main struct {
	*core.BaseElement
	*core.Flex
	// contains filtered or unexported fields
}

func NewMain

func NewMain() *Main

func (*Main) Render

func (m *Main) Render()

func (*Main) ShowAIPrompt added in v0.1.10

func (m *Main) ShowAIPrompt()

func (*Main) ShowServerInfoModal

func (m *Main) ShowServerInfoModal()

func (*Main) UpdateDao

func (m *Main) UpdateDao(dao *mongo.Dao)

UpdateDao updates the dao in the components

type Welcome

type Welcome struct {
	*core.BaseElement
	*core.Flex
	// contains filtered or unexported fields
}

func NewWelcome

func NewWelcome() *Welcome

func (*Welcome) Init

func (w *Welcome) Init(app *core.App) error

func (*Welcome) Render

func (w *Welcome) Render()

func (*Welcome) SetOnSubmitFunc

func (w *Welcome) SetOnSubmitFunc(onSubmit func())

Jump to

Keyboard shortcuts

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