Documentation ¶
Index ¶
- type Controller
- func (controller *Controller) CalculateIntervalToNextMainLoop(now time.Time) time.Duration
- func (controller *Controller) Dispatch(newState *models.State)
- func (controller *Controller) GetScreen() *views.Screen
- func (controller *Controller) HandleKeyPress(ch rune, key termbox.Key)
- func (controller *Controller) HandleMainLoop(elapsedTime time.Duration) (*models.State, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func CreateController ¶
func CreateController() (*Controller, error)
func (*Controller) CalculateIntervalToNextMainLoop ¶
func (controller *Controller) CalculateIntervalToNextMainLoop(now time.Time) time.Duration
func (*Controller) Dispatch ¶
func (controller *Controller) Dispatch(newState *models.State)
func (*Controller) GetScreen ¶
func (controller *Controller) GetScreen() *views.Screen
func (*Controller) HandleKeyPress ¶
func (controller *Controller) HandleKeyPress(ch rune, key termbox.Key)
func (*Controller) HandleMainLoop ¶
Click to show internal directories.
Click to hide internal directories.