Documentation ¶
Index ¶
Constants ¶
View Source
const ( AudioStatePlaying = "PLAYING" AudioStateStoped = "STOPED" AudioStatePaused = "PAUSED" AudioStateFinished = "FINISHED" )
Variables ¶
View Source
var ( DefaultRegistry = &Registry{ services: make(map[string]*service), } )
Functions ¶
func RegisterService ¶
Types ¶
type AudioPlayer ¶
type AudioPlayer struct {
// contains filtered or unexported fields
}
func NewAudioPlayer ¶
func NewAudioPlayer() *AudioPlayer
func (*AudioPlayer) Context ¶
func (a *AudioPlayer) Context() *proto.Message
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry负责注册所有的用户接口对象,提供Dispatch方法来分发指令到具体的对象 同时也提供Context方法返回当前所有对象的状态
func (*Registry) GetService ¶
func (*Registry) RegisterService ¶
type ScreenExtendedCard ¶
type ScreenExtendedCard struct { }
func (*ScreenExtendedCard) RenderPlayerInfo ¶
func (s *ScreenExtendedCard) RenderPlayerInfo(m *proto.Message) error
type VoiceInput ¶
type VoiceInput struct {
// contains filtered or unexported fields
}
func NewVoiceInput ¶
func NewVoiceInput() *VoiceInput
func (*VoiceInput) StopListen ¶
func (v *VoiceInput) StopListen(m *proto.Message) error
type VoiceOutput ¶
type VoiceOutput struct {
// contains filtered or unexported fields
}
func NewVoiceOutput ¶
func NewVoiceOutput() *VoiceOutput
Click to show internal directories.
Click to hide internal directories.