Documentation
¶
Index ¶
- type Server
- func (s *Server) AddSpeakersToZone(ctx context.Context, in *ZoneRequest) (*UpdateResponse, error)
- func (s *Server) ChangeZoneName(ctx context.Context, in *ZoneRequest) (*UpdateResponse, error)
- func (s *Server) CreateZone(ctx context.Context, in *ZoneRequest) (*CreateResponse, error)
- func (s *Server) DeleteZone(ctx context.Context, in *ZoneRequest) (*UpdateResponse, error)
- func (s *Server) GetCurrentTrack(ctx context.Context, in *GetTrackRequest) (*Track, error)
- func (s *Server) GetMuteForSpeaker(ctx context.Context, in *GetMuteRequest) (*SpeakerMuteResponse, error)
- func (s *Server) GetSpeakers(ctx context.Context, in *GetSpeakersRequest) (*GetSpeakersResponse, error)
- func (s *Server) GetZones(ctx context.Context, in *GetZonesRequest) (*GetZonesResponse, error)
- func (s *Server) RemoveSpeakersFromZone(ctx context.Context, in *ZoneRequest) (*UpdateResponse, error)
- func (s *Server) SetDisplayNameForSpeaker(ctx context.Context, in *SetSpeakerDisplayNameRequest) (*UpdateResponse, error)
- func (s *Server) SetMuteForSpeaker(ctx context.Context, in *SetMuteRequest) (*UpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the gRPC server
func NewServer ¶
func NewServer(service service.MgmtService) *Server
NewServer instantiates a new RPC server
func (*Server) AddSpeakersToZone ¶
AddSpeakersToZone will add speakers to an existing zone
func (*Server) ChangeZoneName ¶
ChangeZoneName updates the name of a zone
func (*Server) CreateZone ¶
CreateZone will create a new zone, which is a collection of speakers that play together
func (*Server) DeleteZone ¶
DeleteZone will delete the given zone
func (*Server) GetCurrentTrack ¶
GetCurrentTrack gets the current track
func (*Server) GetMuteForSpeaker ¶
func (s *Server) GetMuteForSpeaker(ctx context.Context, in *GetMuteRequest) (*SpeakerMuteResponse, error)
GetMuteForSpeaker returns speaker mute state
func (*Server) GetSpeakers ¶
func (s *Server) GetSpeakers(ctx context.Context, in *GetSpeakersRequest) (*GetSpeakersResponse, error)
GetSpeakers will get all the music playing nodes
func (*Server) RemoveSpeakersFromZone ¶
func (s *Server) RemoveSpeakersFromZone(ctx context.Context, in *ZoneRequest) (*UpdateResponse, error)
RemoveSpeakersFromZone will remove speakers from the given zone
Click to show internal directories.
Click to hide internal directories.