addons

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

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caster

type Caster struct {
	SD *streamdeck.StreamDeck
}

func (*Caster) Buttons

func (c *Caster) Buttons()

func (*Caster) Init

func (c *Caster) Init()

type LEDWallBg

type LEDWallBg struct {
	Action string `json:"action"`
	Red    uint8  `json:"r"`
	Green  uint8  `json:"g"`
	Blue   uint8  `json:"b"`
}

type LEDWallFirework

type LEDWallFirework struct {
	Action string `json:"action"`
	Hue    uint8  `json:"b,omitempty"`
}

type LEDWallSnake

type LEDWallSnake struct {
	Action  string `json:"action"`
	Enabled bool   `json:"enabled"`
}

type MQTTBgAction

type MQTTBgAction struct {
	Client  mqtt.Client
	Options LEDWallBg
	// contains filtered or unexported fields
}

func (*MQTTBgAction) Pressed

func (action *MQTTBgAction) Pressed(btn streamdeck.Button)

type MQTTFireworkAction

type MQTTFireworkAction struct {
	Client  mqtt.Client
	Options LEDWallFirework
	// contains filtered or unexported fields
}

func (*MQTTFireworkAction) Pressed

func (action *MQTTFireworkAction) Pressed(btn streamdeck.Button)

type MQTTSnakeAction

type MQTTSnakeAction struct {
	Client  mqtt.Client
	Options LEDWallSnake
	// contains filtered or unexported fields
}

func (*MQTTSnakeAction) Pressed

func (action *MQTTSnakeAction) Pressed(btn streamdeck.Button)

type MqttThing

type MqttThing struct {
	SD *streamdeck.StreamDeck
	// contains filtered or unexported fields
}

func (*MqttThing) Buttons

func (p *MqttThing) Buttons()

Set up buttons

func (*MqttThing) Init

func (p *MqttThing) Init()

type Mute

type Mute struct {
	SD        *streamdeck.StreamDeck
	Status    bool // true if muted
	Button_id int
}

func (*Mute) Buttons

func (s *Mute) Buttons()

func (*Mute) Init

func (s *Mute) Init()

type Nightbot

type Nightbot struct {
	SD           *streamdeck.StreamDeck
	AccessToken  string
	RefreshToken string
	Text         string
	ChatLines    []string
	ChatIndex    int
}

func (*Nightbot) Buttons

func (n *Nightbot) Buttons()

func (*Nightbot) Init

func (n *Nightbot) Init()

type NightbotAction

type NightbotAction struct {
	Action  string
	Bot     *Nightbot
	Scanner bufio.Scanner
}

func (*NightbotAction) Pressed

func (action *NightbotAction) Pressed(btn streamdeck.Button)

type NightbotAuthTokenResponse

type NightbotAuthTokenResponse struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
}

type NightbotMessage

type NightbotMessage struct {
	Message string `json:"message"`
}

type OBSSceneAction

type OBSSceneAction struct {
	Client obsws.Client
	Scene  string
	// contains filtered or unexported fields
}

func (*OBSSceneAction) Pressed

func (action *OBSSceneAction) Pressed(btn streamdeck.Button)

type OBSStartAction

type OBSStartAction struct {
	Client obsws.Client
	Obs    *Obs
	// contains filtered or unexported fields
}

func (*OBSStartAction) Pressed

func (action *OBSStartAction) Pressed(btn streamdeck.Button)

type OBSSwitchAction

type OBSSwitchAction struct {
	Client obsws.Client
	Obs    *Obs
	// contains filtered or unexported fields
}

func (*OBSSwitchAction) Pressed

func (action *OBSSwitchAction) Pressed(btn streamdeck.Button)

type OBSToggleStreamAction

type OBSToggleStreamAction struct {
	Client obsws.Client
	Obs    *Obs
	// contains filtered or unexported fields
}

func (*OBSToggleStreamAction) Pressed

func (action *OBSToggleStreamAction) Pressed(btn streamdeck.Button)

type Obs

type Obs struct {
	SD *streamdeck.StreamDeck

	Offset int
	// contains filtered or unexported fields
}

func (*Obs) Buttons

func (o *Obs) Buttons()

func (*Obs) ClearButtons

func (o *Obs) ClearButtons()

func (*Obs) Init

func (o *Obs) Init()

func (*Obs) ObsEventHandlers

func (o *Obs) ObsEventHandlers()

type ObsScene

type ObsScene struct {
	Name     string `mapstructure:"name"`
	Image    string `mapstructure:"image"`
	Button   int    `mapstructure:"button"`
	ButtonId int
}

func (*ObsScene) SetButtonId

func (scene *ObsScene) SetButtonId(id int)

type Screenshot

type Screenshot struct {
	SD *streamdeck.StreamDeck
}

func (*Screenshot) Buttons

func (s *Screenshot) Buttons()

func (*Screenshot) Init

func (s *Screenshot) Init()

type Twitch

type Twitch struct {
	SD *streamdeck.StreamDeck
	// contains filtered or unexported fields
}

func (*Twitch) Buttons

func (t *Twitch) Buttons()

func (*Twitch) Init

func (t *Twitch) Init()

type TwitchAction

type TwitchAction struct {
	Client helix.Client
	Action string
	Twitch *Twitch
}

func (*TwitchAction) Pressed

func (action *TwitchAction) Pressed(btn streamdeck.Button)

type WindowMgmt

type WindowMgmt struct {
	SD *streamdeck.StreamDeck
}

func (*WindowMgmt) Buttons

func (s *WindowMgmt) Buttons()

func (*WindowMgmt) Init

func (s *WindowMgmt) Init()

Jump to

Keyboard shortcuts

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