Documentation
¶
Index ¶
- Variables
- func InitApp(l *lib.Logger, cfg *config.Config) error
- type Application
- func (app *Application) Close()
- func (app *Application) PostDbMessage(msg workers.Message, accountname string, f PostCallback)
- func (app *Application) PostImapMessage(msg workers.Message, accountname string, f PostCallback)
- func (app *Application) PostMessage(m workers.ClonableMessage, accountname string, f PostCallback)
- func (app *Application) Run()
- func (app *Application) SetWindow(w *Window)
- func (app *Application) Stop()
- type ComposeView
- func (c *ComposeView) Draw()
- func (c *ComposeView) HandleEvent(ks []*lib.KeyStroke) bool
- func (c *ComposeView) HandleTransitions(ev *lib.Event) bool
- func (c *ComposeView) IsActiveTerm() bool
- func (c *ComposeView) SetTermView(view *views.ViewPort, screen tcell.Screen)
- func (c *ComposeView) TabTitle() string
- type MailPartsView
- type MailView
- func (mv *MailView) Draw()
- func (mv *MailView) HandleEvent(ks []*lib.KeyStroke) bool
- func (mv *MailView) MarkAsRead()
- func (mv *MailView) OnRead(f func())
- func (mv *MailView) SaveIndDb(mailbox, acc string)
- func (mv *MailView) SetFilepath(filepath string)
- func (mv *MailView) SetMail(m *models.Mail, mailbox, acc string)
- func (mv *MailView) TabTitle() string
- type MailboxView
- func (mv *MailboxView) Draw()
- func (mv *MailboxView) Error(err error)
- func (mv *MailboxView) FetchNewMessages(lastuid uint32)
- func (mv *MailboxView) FetchUpdateMessages(lastuid uint32)
- func (mv *MailboxView) HandleEvent(ks []*lib.KeyStroke) bool
- func (mv *MailboxView) HandleTransitions(ev *lib.Event) bool
- func (mv *MailboxView) Refresh(lastuid uint32)
- func (mv *MailboxView) SetThreads(threads []*models.Thread)
- func (mv *MailboxView) TabTitle() string
- type MailboxesView
- type PostCallback
- type Status
- type ThreadView
- type Window
- func (w *Window) AskRedraw()
- func (w *Window) Draw()
- func (w *Window) Errorf(msg string, args ...interface{})
- func (w *Window) HandleEvent(ev tcell.Event) bool
- func (w *Window) HandleTransitions(ev *lib.Event) bool
- func (w *Window) OnExCmd(cmd string)
- func (w *Window) Redraw()
- func (w *Window) ResetRedraw()
- func (w *Window) SetScreen(s tcell.Screen)
- func (w *Window) ShouldRedraw() bool
- func (w *Window) ShowMessage(msg string)
- func (w *Window) ShowMessagef(msg string, args ...interface{})
- func (w *Window) Size() (int, int)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStopWalk = errors.New("stop walk")
Functions ¶
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
var App *Application
func (*Application) Close ¶
func (app *Application) Close()
func (*Application) PostDbMessage ¶
func (app *Application) PostDbMessage(msg workers.Message, accountname string, f PostCallback)
func (*Application) PostImapMessage ¶
func (app *Application) PostImapMessage(msg workers.Message, accountname string, f PostCallback)
func (*Application) PostMessage ¶
func (app *Application) PostMessage(m workers.ClonableMessage, accountname string, f PostCallback)
func (*Application) Run ¶
func (app *Application) Run()
func (*Application) SetWindow ¶
func (app *Application) SetWindow(w *Window)
func (*Application) Stop ¶
func (app *Application) Stop()
type ComposeView ¶
type ComposeView struct { *widgets.BaseWidget // contains filtered or unexported fields }
func NewComposeView ¶
func NewComposeView(acc *config.Account, bindings config.Mapping) *ComposeView
func (*ComposeView) Draw ¶
func (c *ComposeView) Draw()
func (*ComposeView) HandleEvent ¶
func (c *ComposeView) HandleEvent(ks []*lib.KeyStroke) bool
func (*ComposeView) HandleTransitions ¶
func (c *ComposeView) HandleTransitions(ev *lib.Event) bool
func (*ComposeView) IsActiveTerm ¶
func (c *ComposeView) IsActiveTerm() bool
func (*ComposeView) SetTermView ¶
func (c *ComposeView) SetTermView(view *views.ViewPort, screen tcell.Screen)
type MailPartsView ¶
type MailPartsView struct { *widgets.TreeWidget // contains filtered or unexported fields }
func NewMailPartsView ¶
func (*MailPartsView) HandleEvent ¶
func (mp *MailPartsView) HandleEvent(ks []*lib.KeyStroke) bool
type MailView ¶
type MailView struct { *widgets.BaseWidget // contains filtered or unexported fields }
func NewMailView ¶
func (*MailView) MarkAsRead ¶
func (mv *MailView) MarkAsRead()
func (*MailView) SetFilepath ¶
type MailboxView ¶
type MailboxView struct { *widgets.ListWidget // contains filtered or unexported fields }
func NewMailboxView ¶
func (*MailboxView) Draw ¶
func (mv *MailboxView) Draw()
func (*MailboxView) Error ¶
func (mv *MailboxView) Error(err error)
func (*MailboxView) FetchNewMessages ¶
func (mv *MailboxView) FetchNewMessages(lastuid uint32)
func (*MailboxView) FetchUpdateMessages ¶
func (mv *MailboxView) FetchUpdateMessages(lastuid uint32)
func (*MailboxView) HandleEvent ¶
func (mv *MailboxView) HandleEvent(ks []*lib.KeyStroke) bool
func (*MailboxView) HandleTransitions ¶
func (mv *MailboxView) HandleTransitions(ev *lib.Event) bool
func (*MailboxView) Refresh ¶
func (mv *MailboxView) Refresh(lastuid uint32)
func (*MailboxView) SetThreads ¶
func (mv *MailboxView) SetThreads(threads []*models.Thread)
type MailboxesView ¶
type MailboxesView struct { *widgets.TreeWidget // contains filtered or unexported fields }
func NewMailboxesView ¶
func (*MailboxesView) Draw ¶
func (mv *MailboxesView) Draw()
func (*MailboxesView) HandleEvent ¶
func (mv *MailboxesView) HandleEvent(ks []*lib.KeyStroke) bool
func (*MailboxesView) SetMailboxes ¶
func (mv *MailboxesView) SetMailboxes(mboxes []*models.Mailbox)
type PostCallback ¶
type Status ¶
func (*Status) ShowMessage ¶
type ThreadView ¶
type ThreadView struct { *widgets.TreeWidget // contains filtered or unexported fields }
func NewThreadView ¶
func (*ThreadView) HandleEvent ¶
func (tv *ThreadView) HandleEvent(ks []*lib.KeyStroke) bool
func (*ThreadView) SetMails ¶
func (tv *ThreadView) SetMails(mails []*models.Mail)
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
func (*Window) HandleEvent ¶
func (*Window) ResetRedraw ¶
func (w *Window) ResetRedraw()
func (*Window) ShouldRedraw ¶
func (*Window) ShowMessage ¶
func (*Window) ShowMessagef ¶
Click to show internal directories.
Click to hide internal directories.