examples

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBaseModules

func RegisterBaseModules()

func RegisterCounter

func RegisterCounter() handlers.Module

func RegisterGif

func RegisterGif() handlers.Module

func RegisterSpotify

func RegisterSpotify() handlers.Module

func RegisterTime

func RegisterTime() handlers.Module

Types

type Connection

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

func Connect

func Connect() (*Connection, error)

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) GetAlbumArtUrl

func (c *Connection) GetAlbumArtUrl() (string, error)

type CounterIconHandler

type CounterIconHandler struct {
	Count    int
	Running  bool
	Callback func(image image.Image)
}

func (*CounterIconHandler) IsRunning

func (c *CounterIconHandler) IsRunning() bool

func (*CounterIconHandler) SetRunning

func (c *CounterIconHandler) SetRunning(running bool)

func (*CounterIconHandler) Start

func (c *CounterIconHandler) Start(k api.Key, info api.StreamDeckInfo, callback func(image image.Image))

func (CounterIconHandler) Stop

func (c CounterIconHandler) Stop()

type CounterKeyHandler

type CounterKeyHandler struct{}

func (CounterKeyHandler) Key

func (CounterKeyHandler) Key(key api.Key, info api.StreamDeckInfo)

type GifIconHandler

type GifIconHandler struct {
	Running bool
	Lock    *semaphore.Weighted
	Quit    chan bool
}

func (*GifIconHandler) IsRunning

func (s *GifIconHandler) IsRunning() bool

func (*GifIconHandler) SetRunning

func (s *GifIconHandler) SetRunning(running bool)

func (*GifIconHandler) Start

func (s *GifIconHandler) Start(key api.Key, info api.StreamDeckInfo, callback func(image image.Image))

func (*GifIconHandler) Stop

func (s *GifIconHandler) Stop()

type SpotifyIconHandler

type SpotifyIconHandler struct {
	Running bool

	Quit chan bool
	// contains filtered or unexported fields
}

func (*SpotifyIconHandler) IsRunning

func (s *SpotifyIconHandler) IsRunning() bool

func (*SpotifyIconHandler) SetRunning

func (s *SpotifyIconHandler) SetRunning(running bool)

func (*SpotifyIconHandler) Start

func (s *SpotifyIconHandler) Start(key api.Key, info api.StreamDeckInfo, callback func(image image.Image))

func (*SpotifyIconHandler) Stop

func (s *SpotifyIconHandler) Stop()

type TimeIconHandler

type TimeIconHandler struct {
	Running bool
	Quit    chan bool
}

func (*TimeIconHandler) IsRunning

func (t *TimeIconHandler) IsRunning() bool

func (*TimeIconHandler) SetRunning

func (t *TimeIconHandler) SetRunning(running bool)

func (*TimeIconHandler) Start

func (t *TimeIconHandler) Start(k api.Key, info api.StreamDeckInfo, callback func(image image.Image))

func (*TimeIconHandler) Stop

func (t *TimeIconHandler) Stop()

Jump to

Keyboard shortcuts

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