cui

package
v0.0.0-...-2873b17 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidDue = errors.New("invalid due")

Functions

This section is empty.

Types

type CUI

type CUI struct {
	io.CUILib
	// contains filtered or unexported fields
}

CUI represents the Console User Interface, the instance of this struct is shared by Presenter and Controller.

func New

func New(lib io.CUILib) *CUI

New creates a new CUI.

type Controller

type Controller struct {
	*CUI
	io.IO
	CasesTask use.CasesTask
}

Controller is the controller of CUI.

func (*Controller) Loop

func (c *Controller) Loop() error

Loop starts rendering the CUI.

func (*Controller) Update

func (c *Controller) Update() error

type Presenter

type Presenter struct {
	*CUI
}

func (*Presenter) ShowTaskAdded

func (p *Presenter) ShowTaskAdded(task *model.Task) error

func (*Presenter) ShowTasksOfParentID

func (p *Presenter) ShowTasksOfParentID(parentID int64, tasks []*model.Task) error

Directories

Path Synopsis
Package io contains codes that are hard to test, the less code here the better.
Package io contains codes that are hard to test, the less code here the better.

Jump to

Keyboard shortcuts

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