Versions in this module Expand all Collapse all v1 v1.60.1 Jul 17, 2026 v1.60.0 Jul 16, 2026 v1.59.1 Jul 16, 2026 v1.59.0 Jul 16, 2026 v1.58.0 Jul 16, 2026 Changes in this version + func DefaultSocketPath() string + func StreamBands(ctx context.Context, sockPath string, interval time.Duration, out io.Writer) error + type BandsRequestMsg struct + Reply chan Response + type DeviceMsg struct + Name string + Reply chan Response + type Dispatcher interface + Send func(msg any) + type DispatcherFunc func(msg any) + func (f DispatcherFunc) Send(msg any) + type EQMsg struct + Band int + Name string + Reply chan Response + Value float64 + type LoadMsg struct + Playlist string + Reply chan Response + type MonoMsg struct + Name string + Reply chan Response + type PauseMsg struct + type PlayMsg struct + type PluginDispatcher interface + CommandList func() []string + EmitCommand func(plugin, command string, args []string) (string, error) + type QueueMsg struct + Path string + type RepeatMsg struct + Name string + Reply chan Response + type Request struct + Args []string + Band int + Cmd string + Name string + Path string + Playlist string + Sub string + Value float64 + type Response struct + Bands []float64 + Device string + Duration float64 + EQPreset string + Error string + Index int + Items []string + Mono *bool + OK bool + Output string + Playlist string + Position float64 + Repeat string + Shuffle *bool + Speed float64 + State string + Theme *ThemeInfo + Total int + Track *TrackInfo + Visualizer string + Volume float64 + func Send(sockPath string, req Request) (Response, error) + func SendWithDeadline(sockPath string, req Request, deadline time.Duration) (Response, error) + type SeekMsg struct + Offset time.Duration + type Server struct + func NewServer(sockPath string, disp Dispatcher) (*Server, error) + func (s *Server) Close() error + func (s *Server) SetPluginDispatcher(p PluginDispatcher) + type ShuffleMsg struct + Name string + Reply chan Response + type SpeedMsg struct + Reply chan Response + Speed float64 + type StatusRequestMsg struct + Reply chan Response + type ThemeInfo struct + Accent string + BrightFg string + Fg string + Green string + Name string + Red string + Yellow string + type ThemeMsg struct + Name string + Reply chan Response + type TrackInfo struct + Artist string + Path string + Title string + type VisMsg struct + Name string + Reply chan Response + type VolumeMsg struct + DB float64