Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContextKeyServer ctxKey = iota ContextKeyClient )
Context keys
Variables ¶
View Source
var (
//GitCommit is injected at build time with the commit hash
GitCommit = "0"
)
Functions ¶
Types ¶
type Client ¶
type Client struct { ServerAddress string Tracing struct { Enabled bool ServerAddress string ServiceName string } }
Client represents client config
func GetClientConfig ¶
GetClientConfig extracts Client config from context
type DMXProfileMap ¶
type DMXProfileMap map[string]LightProfileDMX
DMXProfileMap represents a map of dmx profiles
type LightDMX ¶
type LightDMX struct { Name string StartAddress int `mapstructure:"start_address"` Universe int Profile string }
LightDMX hol;ds config info for a dmx light
type LightGeneric ¶
type LightGeneric struct {
Name string
}
LightGeneric holds config info for a Generic
type LightProfileDMX ¶
LightProfileDMX holds config info for a dmx profile: channel and capability mappings
type Lights ¶
type Lights struct { Hue []LightHue DMX []LightDMX Generic []LightGeneric }
Lights represents the lists of lights, by type
type Server ¶
type Server struct { Inputs struct { RPC struct { Enabled bool Address string } HTTP struct { Enabled bool Address string WSTickInterval time.Duration } HomeKit struct { Enabled bool Pin string } } Outputs struct { OLA struct { Enabled bool Address string Tick time.Duration } Hue struct { Enabled bool Address string Username string } } Tracing struct { Enabled bool ServerAddress string ServiceName string } Timings struct { FadeInterpolationTick time.Duration CueBackoff time.Duration } Triggers []Trigger Lights Lights DMXProfiles DMXProfileMap Commands UserCommandMap Jobs []Job }
Server represents server config
func GetServerConfig ¶
GetServerConfig extracts Server config from context
type UserCommandMap ¶
type UserCommandMap map[string]UserCommand
UserCommandMap is used to map user commands by name
Click to show internal directories.
Click to hide internal directories.