controller

package
v0.0.0-...-a07ad1b Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (controller *Controller) HandleMainLoop(elapsedTime time.Duration) (*models.State, error)

Jump to

Keyboard shortcuts

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