screens

package
v0.0.0-...-8df2434 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpotifyScreen

func NewSpotifyScreen(cfg config.ConfigFile) display.Screen

func NewWifiQRCode

func NewWifiQRCode(cfg config.ConfigFile) display.Screen

Types

type Spotify

type Spotify struct {
	// contains filtered or unexported fields
}

func (*Spotify) GetConfig

func (s *Spotify) GetConfig() map[string]string

func (*Spotify) GetHTMLPage

func (s *Spotify) GetHTMLPage() (attrs []display.HTMLAttribute)

func (*Spotify) Init

func (s *Spotify) Init(r *gin.RouterGroup) (name string, err error)

func (*Spotify) Render

func (s *Spotify) Render() (img image.Image, dur time.Duration, err error)

func (*Spotify) UpdateConfig

func (s *Spotify) UpdateConfig(m map[string]string) error

type WifiQRCode

type WifiQRCode struct {
	// contains filtered or unexported fields
}

func (*WifiQRCode) GetConfig

func (w *WifiQRCode) GetConfig() map[string]string

func (*WifiQRCode) GetHTMLPage

func (w *WifiQRCode) GetHTMLPage() (attrs []display.HTMLAttribute)

func (*WifiQRCode) Init

func (w *WifiQRCode) Init(r *gin.RouterGroup) (name string, err error)

func (*WifiQRCode) Render

func (w *WifiQRCode) Render() (img image.Image, dur time.Duration, err error)

func (*WifiQRCode) UpdateConfig

func (w *WifiQRCode) UpdateConfig(m map[string]string) error

Jump to

Keyboard shortcuts

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