Documentation ¶
Index ¶
- Constants
- type State
- func (p *State) ClearLiked()
- func (p *State) Invalidate()
- func (p State) Liked() bool
- func (p *State) LikedIsKnown() bool
- func (p *State) SetLiked(b bool)
- func (p *State) SetTime()
- func (p *State) Since() time.Duration
- func (p *State) State() string
- func (p *State) Tick()
- func (p *State) Update(state spotify.PlayerState)
Constants ¶
View Source
const ( StatePlay string = "play" StateStop string = "stop" StatePause string = "pause" StateUnknown string = "unknown" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { spotify.PlayerState CreateTime time.Time ProgressPercentage float64 TrackRow list.Row // contains filtered or unexported fields }
State contains information about MPD's player status.
func (*State) ClearLiked ¶
func (p *State) ClearLiked()
func (*State) Invalidate ¶
func (p *State) Invalidate()
func (*State) LikedIsKnown ¶
Click to show internal directories.
Click to hide internal directories.