app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BmMailAppType

type BmMailAppType struct {
	App   *tview.Application // Main TUI application
	Pages *tview.Pages       // Set of pages for the TUI application

	Vault          *vault.Vault     // Opened vault (or nil)
	CurrentAddr    *address.Address // Current selected account (or nil)
	CurrentBox     *string          // Current selected box (or nil)
	CurrentMessage *string          // Current selected message (or nil)

	StaleVault   bool // when true, the vault must be refreshed
	StaleAddr    bool // when true, the address must be refreshed
	StaleBox     bool // when true, the box must be refreshed
	StaleMessage bool // when true, the message must be refreshed

	// Cached items, can change at any time
	MailBoxLists          map[string]*api.MailboxList // Cache of all mailboxes
	CachedMailboxMessages *api.MailboxMessages        // Cache of current selected mailbox messages
	Client                *api.API                    // Current connection to the server

	// GLobal UI elements that we need to populate / use at certain occasions
	MessageAccountTree *tview.TreeView
	MessageBoxTree     *tview.TreeView
	MessageList        *components.MessageList
	MessageView        *tview.TextView
}

BmMailAppType is a struct that holds the current application and "global" data

var MailApp *BmMailAppType

MailApp is the general mail app structure

Jump to

Keyboard shortcuts

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