engine

package
v0.0.0-...-48e7947 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Connected() bool
	Clear() error
	GetMessage(line int) string
	DisplayMessage(text string, line int) error
	DisplayTemporaryMessage(text string, line int, timeout time.Duration) error
	DisplayImage(reader io.Reader) error
	DisplayTemporaryImage(reader io.Reader, duration time.Duration) error
	ClearMessage(line int) error
	AppendMessage(text string) error
	Shutdown()
}

Engine is a singleton object to manage the screen

func GetEngine

func GetEngine() (Engine, error)

GetEngine instantiates a new, or returns an existing Engine instance Use Engine.Connected() to see if screen has been connected successfully

Jump to

Keyboard shortcuts

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