onscreensServer

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FlagImageFile = filepath.Join(c.Conf.RunDir, "flag.png")

Functions

func HideGPSImage

func HideGPSImage()

TODO: this should probably return an error

func InitFlagImage

func InitFlagImage()

func InitGPSImage

func InitGPSImage()

func InitLeaderboard

func InitLeaderboard()

func InitLeftRotator

func InitLeftRotator()

func InitMiddleText

func InitMiddleText()

func InitRightRotator

func InitRightRotator()

func InitTimewarp

func InitTimewarp()

func ShowFlag

func ShowFlag(dur time.Duration)

TODO: this should probably return an error

func ShowGPSImage

func ShowGPSImage()

TODO: this should probably return an error

func ShowLeaderboard

func ShowLeaderboard(content string)

func ShowTimewarp

func ShowTimewarp()

Types

type Onscreen

type Onscreen struct {
	Content       string
	Expires       time.Time
	DontExpire    bool
	SleepInterval time.Duration
	IsShowing     bool
	// contains filtered or unexported fields
}
var FlagImage *Onscreen
var GPSImage *Onscreen
var Leaderboard *Onscreen
var LeftRotator *Onscreen
var MiddleText *Onscreen
var RightRotator *Onscreen
var Timewarp *Onscreen

func New

func New(outputFile string) *Onscreen

func NewImage

func NewImage(imageFile string) *Onscreen

func (*Onscreen) Extend

func (osc *Onscreen) Extend(dur time.Duration)

func (*Onscreen) Hide

func (osc *Onscreen) Hide()

Hide will remove an onscreen from the screen

func (*Onscreen) SetContent

func (osc *Onscreen) SetContent(content string)

func (*Onscreen) Show

func (osc *Onscreen) Show(content string)

Show makes an onscreen visible until hidden

func (*Onscreen) ShowFor

func (osc *Onscreen) ShowFor(content string, dur time.Duration)

ShowFor makes an Onscreen visible for a duration of time

Jump to

Keyboard shortcuts

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