Documentation ¶
Index ¶
- Constants
- func AvailableModules() []models.Module
- func DetectPages(dir string) ([]int, error)
- func EmitPage(dev *models.VirtualDev, page int)
- func HandleInput(engine *Engine, dev *models.VirtualDev, key *api.Key, page int)
- func InitDBUS() error
- func InitGame()
- func Listen(dev *models.VirtualDev, engine *Engine)
- func LoadModule(path string)
- func RegisterBaseModules(action models.Action)
- func RegisterCounter() models.Module
- func RegisterGame(action models.Action) models.Module
- func RegisterGif() models.Module
- func RegisterIconState() models.Module
- func RegisterModule(m models.Module)
- func RegisterTime() models.Module
- func SetImage(engine *Engine, dev *models.VirtualDev, img image.Image, i int, page int)
- func SetKey(engine *Engine, dev *models.VirtualDev, currentKey *api.Key, i int, page int)
- func SetKeyImage(engine *Engine, dev *models.VirtualDev, currentKey *api.Key, i int, page int)
- func SetPage(engine *Engine, dev *models.VirtualDev, page int)
- func SetupConfigurationFromDir(dirPath string) (*api.Config, error)
- func UnmarshalRow(raw string) (*models.PageRow, error)
- func UnmountPageHandlers(page api.Page)
- type Engine
- func (engine *Engine) Disconnect(dev *models.VirtualDev)
- func (engine *Engine) ReadConfig() (*api.Config, error)
- func (engine *Engine) ReadConfigNew() (*api.Config, error)
- func (engine *Engine) ReloadConfig() error
- func (engine *Engine) Run(newConfig bool) error
- func (engine *Engine) SaveConfig() error
- func (engine *Engine) SetConfig(configString string) error
- func (engine *Engine) SetImage(img image.Image, i int, page int)
- type PageRawContent
- type StreamDeckDBus
- func (s StreamDeckDBus) CommitConfig() *dbus.Error
- func (s StreamDeckDBus) GetConfig() (string, *dbus.Error)
- func (s StreamDeckDBus) GetDeckInfo() (string, *dbus.Error)
- func (StreamDeckDBus) GetModules() (string, *dbus.Error)
- func (s StreamDeckDBus) PressButton(serial string, keyIndex int) *dbus.Error
- func (s StreamDeckDBus) ReloadConfig() *dbus.Error
- func (s StreamDeckDBus) SetConfig(configString string) *dbus.Error
- func (s StreamDeckDBus) SetPage(serial string, page int) *dbus.Error
Constants ¶
View Source
const PAGE_NAME_PATTERN = "page-"
Variables ¶
This section is empty.
Functions ¶
func AvailableModules ¶
func DetectPages ¶
func EmitPage ¶
func EmitPage(dev *models.VirtualDev, page int)
func HandleInput ¶
func Listen ¶
func Listen(dev *models.VirtualDev, engine *Engine)
func LoadModule ¶
func LoadModule(path string)
func RegisterBaseModules ¶
func RegisterCounter ¶
func RegisterGif ¶
func RegisterIconState ¶
func RegisterModule ¶
func RegisterTime ¶
func SetKeyImage ¶
func UnmountPageHandlers ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) Disconnect ¶
func (engine *Engine) Disconnect(dev *models.VirtualDev)
func (*Engine) ReloadConfig ¶
func (*Engine) SaveConfig ¶
type PageRawContent ¶
type StreamDeckDBus ¶
type StreamDeckDBus struct {
// contains filtered or unexported fields
}
func NewStreamDeckBus ¶
func NewStreamDeckBus(engine *Engine) *StreamDeckDBus
func (StreamDeckDBus) CommitConfig ¶
func (s StreamDeckDBus) CommitConfig() *dbus.Error
func (StreamDeckDBus) GetConfig ¶
func (s StreamDeckDBus) GetConfig() (string, *dbus.Error)
func (StreamDeckDBus) GetDeckInfo ¶
func (s StreamDeckDBus) GetDeckInfo() (string, *dbus.Error)
func (StreamDeckDBus) GetModules ¶
func (StreamDeckDBus) GetModules() (string, *dbus.Error)
func (StreamDeckDBus) PressButton ¶
func (s StreamDeckDBus) PressButton(serial string, keyIndex int) *dbus.Error
func (StreamDeckDBus) ReloadConfig ¶
func (s StreamDeckDBus) ReloadConfig() *dbus.Error
func (StreamDeckDBus) SetConfig ¶
func (s StreamDeckDBus) SetConfig(configString string) *dbus.Error
func (StreamDeckDBus) SetPage ¶
func (s StreamDeckDBus) SetPage(serial string, page int) *dbus.Error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.