Documentation ¶
Index ¶
- type Server
- func (s *Server) ChangeServiceName(ctx context.Context, in *NameChangeRequest) (*ManagementResponse, error)
- func (s *Server) ForwardToNodes(ctx context.Context, in *AddRemoveNodesRequest) (*ManagementResponse, error)
- func (s *Server) GetCurrentTrack(ctx context.Context, in *GetTrackRequest) (*Track, error)
- func (s *Server) GetMuted(ctx context.Context, in *GetMutedRequest) (*SpeakerMuteResponse, error)
- func (s *Server) RemoveForwardToNodes(ctx context.Context, in *AddRemoveNodesRequest) (*ManagementResponse, error)
- func (s *Server) ToggleBroadcast(ctx context.Context, in *BroadcastRequest) (*ManagementResponse, 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(airplayServer *raop.AirplayServer, forwardingPlayer *forwarding.Player, nodes *memberlist.Memberlist) *Server
NewServer instantiates a new RPC server
func (*Server) ChangeServiceName ¶
func (s *Server) ChangeServiceName(ctx context.Context, in *NameChangeRequest) (*ManagementResponse, error)
ChangeServiceName will change the name of that is broadcast for the airplay service
func (*Server) ForwardToNodes ¶
func (s *Server) ForwardToNodes(ctx context.Context, in *AddRemoveNodesRequest) (*ManagementResponse, error)
ForwardToNodes adds nodes to forward music to
func (*Server) GetCurrentTrack ¶
GetCurrentTrack returns the current playing track on this node
Click to show internal directories.
Click to hide internal directories.