api

package
v0.0.0-...-e5b9e06 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (s *Server) GetCurrentTrack(ctx context.Context, in *GetTrackRequest) (*Track, error)

GetCurrentTrack returns the current playing track on this node

func (*Server) GetMuted

func (s *Server) GetMuted(ctx context.Context, in *GetMutedRequest) (*SpeakerMuteResponse, error)

GetMuted returns if the speaker is hard muted

func (*Server) RemoveForwardToNodes

func (s *Server) RemoveForwardToNodes(ctx context.Context, in *AddRemoveNodesRequest) (*ManagementResponse, error)

RemoveForwardToNodes removes nodes we were forwarding music to

func (*Server) ToggleBroadcast

func (s *Server) ToggleBroadcast(ctx context.Context, in *BroadcastRequest) (*ManagementResponse, error)

ToggleBroadcast tells node to broadcast that it is an airplay service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL