Documentation ¶
Index ¶
- type ActionConfig
- type ActionCoreInterface
- type ActionInterface
- type ActionState
- type ActionStepConfig
- type AliasConfig
- type AliasCoreInterface
- type DeviceState
- type EngineConfig
- type EngineState
- type GameConfig
- type GameState
- type InputInterface
- type InputState
- type LeveLState
- type LevelConfig
- type LinkedStateConfig
- type OutputGroupConfig
- type OutputGroupCoreInterface
- type OutputGroupState
- type OutputIdent
- type OutputInterface
- type OutputState
- type StateActionConditionConfig
- type StateConfig
- type StateCoreInterface
- type StateInterface
- type StateState
- type TimerConfig
- type TimerCoreInterface
- type TimerInterface
- type TimerState
- type WLEDOutputState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionConfig ¶
type ActionConfig struct { ID string Steps []ActionStepConfig }
type ActionCoreInterface ¶
type ActionCoreInterface interface { Load(stateConfigs []ActionConfig) GetByID(id string) ActionInterface GetCurrentConfigs() []ActionConfig UpdateTimer(newConfig ActionConfig) DeleteTimer(id string) error }
type ActionInterface ¶
type ActionInterface interface { }
type ActionState ¶
type ActionState struct {
Config ActionConfig
}
type ActionStepConfig ¶
type ActionStepConfig struct { ActionType string // | s==state | o=output | t==timer | l=level | ActionParameter string // | new State | new Setting | new Duration | new Level | LinkedStates []LinkedStateConfig // | Allows to link states to the action replacing %d, in parameter with value of state, only valid for outputSteps | IDs []string // | IDs the actions should be executed for | }
type AliasConfig ¶
type AliasCoreInterface ¶
type AliasCoreInterface interface { Load(inputAliasConfigs []AliasConfig, outputAliasConfigs []AliasConfig) GetInputByID(id string) InputInterface GetOutputByID(id string) OutputInterface GetCurrentInputAliasConfigs() []AliasConfig GetCurrentOutputAliasConfigs() []AliasConfig UpdateInputAlias(aliasConfig AliasConfig) UpdateOutputAlias(aliasConfig AliasConfig) DeleteInputAlias(id string) error DeleteOutputAlias(id string) error }
type DeviceState ¶
type DeviceState struct { ID string DeviceOnlineStatus string DeviceState *WLEDOutputState InputStatuses []InputState OutputStatuses []OutputState }
type EngineConfig ¶
type EngineConfig struct {
Game GameConfig
}
type EngineState ¶
type EngineState struct { Game GameState Devices []DeviceState Inputs []InputState Outputs []OutputState }
type GameConfig ¶
type GameConfig struct { ID string InputAliases []AliasConfig OutputAliases []AliasConfig Levels []LevelConfig }
type GameState ¶
type GameState struct { Config GameConfig RequiredInputIDs []string RequiredOutputIDs []string ActiveLevel LeveLState }
type InputInterface ¶
type InputInterface interface { }
type LeveLState ¶
type LeveLState struct { ID string Actions []ActionState OutputGroups []OutputGroupState States []StateState Timers []TimerState }
type LevelConfig ¶
type LevelConfig struct { ID string OutputGroups []OutputGroupConfig States []StateConfig Timers []TimerConfig Actions []ActionConfig }
type LinkedStateConfig ¶
type OutputGroupConfig ¶
type OutputGroupConfig struct { ID string OutputIdents []OutputIdent }
OutputGroupConfig struct { ID string OutputIDs []string }
type OutputGroupCoreInterface ¶
type OutputGroupCoreInterface interface { Load(outputGroupConfigs []OutputGroupConfig) GetByID(id string) OutputInterface GetCurrentOutputGroupConfigs() []OutputGroupConfig UpdateOutputGroup(OutputGroupConfig) DeleteOutputGroup(id string) error }
type OutputGroupState ¶
type OutputGroupState struct { Config OutputGroupConfig OutputStatuses []OutputState }
type OutputIdent ¶
type OutputInterface ¶
type OutputInterface interface { }
type OutputState ¶
type OutputState struct { ID string Index int Online bool DetectMode bool State *WLEDOutputState }
type StateConfig ¶
type StateConfig struct { ID string InitialValue int ActionConditions []StateActionConditionConfig }
type StateCoreInterface ¶
type StateCoreInterface interface { Load(stateConfigs []StateConfig) GetByID(id string) StateInterface GetCurrentConfigs() []StateConfig UpdateTimer(newStateConfig StateConfig) DeleteTimer(id string) error }
type StateInterface ¶
type StateInterface interface { }
type StateState ¶
type StateState struct { Config StateConfig Value int }
type TimerConfig ¶
type TimerCoreInterface ¶
type TimerCoreInterface interface { Load(timerConfigs []TimerConfig) GetByID(id string) TimerInterface GetCurrentConfigs() []TimerConfig UpdateTimer(TimerConfig) DeleteTimer(id string) error }
type TimerInterface ¶
type TimerState ¶
type TimerState struct { Config TimerConfig RemainingMs int }
type WLEDOutputState ¶
type WLEDOutputState struct { MasterBrightness int `xml:"ac"` PrimaryColorRGB []int `xml:"cl"` SecondaryColorRGB []int `xml:"cs"` NotificationSendingOn bool `xml:"ns"` NotificationReceiveOn bool `xml:"nr"` NightlightActive bool `xml:"nl"` NightlightDelay int `xml:"nf"` NightlightTargetBrightness int `xml:"nd"` EffectIndex int `xml:"fx"` EffectSpeed int `xml:"sx"` EffectIntensity int `xml:"ix"` FastLEDPalette int `xml:"fp"` PrimaryWhiteValue int `xml:"wv"` SecondaryWhite int `xml:"ws"` CurrentPreset int `xml:"ps"` PresetCyclingEnabled bool `xml:"cy"` RGBorHSBUIMode bool `xml:"md"` ServerDescription string `xml:"ds"` SegmentID int `xml:"ss"` }
Click to show internal directories.
Click to hide internal directories.