library

package
v0.0.0-...-260126f Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtistFilter

type ArtistFilter interface {
	Artists() []string
	FilterArtistPane(f []string)
}

type CPMarkSetter

type CPMarkSetter interface {
	MarkCpArtist(name string)
	MarkCpTrack(track, artist, album string)
	SetCpAlbumName(name string)
	SetCpTrackName(name string)
}

type Command

type Command interface {
	FetchData(cached bool, doneCh chan<- FetchDone)
	UpdateData()
	IsFiltered() bool
	SelectCpArtist()
	ArtistFilter
	CPMarkSetter
}

type FetchDone

type FetchDone struct {
	Error error
}

type Library

type Library struct {
	API string

	CpAlbumName string
	CpTrackName string
	// contains filtered or unexported fields
}

func (*Library) Artists

func (l *Library) Artists() []string

func (*Library) CreateContainer

func (l *Library) CreateContainer() *tview.Flex

func (*Library) DrawArtistPane

func (l *Library) DrawArtistPane()

func (*Library) DrawInitAlbums

func (l *Library) DrawInitAlbums()

func (*Library) FetchData

func (l *Library) FetchData(cached bool, doneCh chan<- FetchDone)

func (*Library) FilterArtistPane

func (l *Library) FilterArtistPane(f []string)

func (*Library) IsFiltered

func (l *Library) IsFiltered() bool

func (*Library) KeyboardHandler

func (l *Library) KeyboardHandler(event *tcell.EventKey) *tcell.EventKey

func (*Library) MarkCpArtist

func (l *Library) MarkCpArtist(name string)

func (*Library) MarkCpTrack

func (l *Library) MarkCpTrack(track, artist, album string)

func (*Library) SelectCpArtist

func (l *Library) SelectCpArtist()

func (*Library) SetCpAlbumName

func (l *Library) SetCpAlbumName(name string)

func (*Library) SetCpTrackName

func (l *Library) SetCpTrackName(name string)

func (*Library) UpdateData

func (l *Library) UpdateData()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳