about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tools/mpd-stats/internal/mpd/mpd.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/mpd-stats/internal/mpd/mpd.go b/tools/mpd-stats/internal/mpd/mpd.go
index cebf2b2..5b57ee4 100644
--- a/tools/mpd-stats/internal/mpd/mpd.go
+++ b/tools/mpd-stats/internal/mpd/mpd.go
@@ -7,14 +7,14 @@ import (
 	"github.com/fhs/gompd/v2/mpd"
 )
 
-type player struct {
+type Player struct {
 	Watcher *mpd.Watcher
 	Client  *mpd.Client
 }
 
-func NewPlayer(net string, addr string) (*player, error) {
+func NewPlayer(net string, addr string) (*Player, error) {
 	var (
-		p   player
+		p   Player
 		err error
 	)
 
@@ -37,7 +37,7 @@ func NewPlayer(net string, addr string) (*player, error) {
 	return &p, nil
 }
 
-func (p *player) Close() error {
+func (p *Player) Close() error {
 	if err := p.Watcher.Close(); err != nil {
 		return err
 	}