Documentation ¶
Index ¶
- type Device
- func (d *Device) List(msg *broker.Msg)
- func (d *Device) Play(ctx context.Context, pl *pb.Playlist)
- func (d *Device) PlayTest(ctx context.Context)
- func (d *Device) Player()
- func (d *Device) Publish(subj string, data []byte) error
- func (d *Device) Run()
- func (d *Device) Status(msg *nats.Msg)
- func (d *Device) Stop()
- func (d *Device) Subscribe(subj string, f func(*nats.Msg)) (*nats.Subscription, error)
- func (d *Device) Test(msg *broker.Msg)
- func (d *Device) Update(msg *broker.Msg)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { sync.Mutex Config config.Device PlaylistData pb.Playlist // contains filtered or unexported fields }
Device the device struct
Click to show internal directories.
Click to hide internal directories.