diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-02-13 18:10:54 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-02-13 18:10:54 +0100 |
commit | 6fc90db16480abee1b6aa3ee4352793054f99714 (patch) | |
tree | 5f43b8018e33457b1f556097c16704930d12255c /cmd/dolmetschctld/statemachine.go | |
parent | added web handler for language (diff) |
added basic web socket interface
Diffstat (limited to 'cmd/dolmetschctld/statemachine.go')
-rw-r--r-- | cmd/dolmetschctld/statemachine.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/dolmetschctld/statemachine.go b/cmd/dolmetschctld/statemachine.go index 9ae5ff3..2cea91d 100644 --- a/cmd/dolmetschctld/statemachine.go +++ b/cmd/dolmetschctld/statemachine.go @@ -65,6 +65,11 @@ func (l Language) String() string { return string(l) } +func (s Language) MarshalText() (data []byte, err error) { + data = []byte(s.String()) + return +} + type MixerChannelState struct { level mixer.FaderLevel mute mixer.Mute |