Documentation
¶
Index ¶
- func OpenAlbumCreateComponent(uiApp *App, originPrimitive cview.Primitive)
- func OpenAlbumEditComponent(uiApp *App, albumId restApiV1.AlbumId, albumMeta *restApiV1.AlbumMeta, ...)
- func OpenArtistCreateComponent(uiApp *App, originPrimitive cview.Primitive)
- func OpenArtistEditComponent(uiApp *App, artistId restApiV1.ArtistId, artistMeta *restApiV1.ArtistMeta, ...)
- func OpenPlaylistContentSaveAsComponent(uiApp *App, songIds []restApiV1.SongId, srcPlaylistId *restApiV1.PlaylistId, ...)
- func OpenPlaylistEditComponent(uiApp *App, playlistId restApiV1.PlaylistId, ...)
- func OpenSongEditComponent(uiApp *App, song *restApiV1.Song, originPrimitive cview.Primitive)
- func OpenUserCreateComponent(uiApp *App, originPrimitive cview.Primitive)
- func OpenUserEditComponent(uiApp *App, userId restApiV1.UserId, userMeta *restApiV1.UserMeta, ...)
- type AlbumEditComponent
- type App
- func (a *App) ClientErrorMessage(message string, cliErr restClientV1.ClientError)
- func (a *App) ConfirmAlbumDelete(album *restApiV1.Album)
- func (a *App) ConfirmArtistDelete(artist *restApiV1.Artist)
- func (a *App) ConfirmExit()
- func (a *App) ConfirmPlaylistDelete(playlist *restApiV1.Playlist)
- func (a *App) ConfirmSongDelete(song *restApiV1.Song)
- func (a *App) ConfirmUserDelete(user *restApiV1.User)
- func (a *App) ConnectedUserId() restApiV1.UserId
- func (a *App) CurrentComponent() *CurrentComponent
- func (a *App) HideExplicitSongForConnectedUser() bool
- func (a *App) IsConnectedUserAdmin() bool
- func (a *App) LocalDb() *localdb.LocalDb
- func (a *App) Message(message string)
- func (a *App) OpenModalMessage(message string) *MfModal
- func (a *App) Play(songId restApiV1.SongId)
- func (a *App) Reload()
- func (a *App) Start()
- func (a *App) WarningMessage(message string)
- type ArtistEditComponent
- type CurrentComponent
- func (c *CurrentComponent) AddSong(songId restApiV1.SongId)
- func (c *CurrentComponent) AddSongsFromAlbum(album *restApiV1.Album)
- func (c *CurrentComponent) AddSongsFromArtist(artist *restApiV1.Artist)
- func (c *CurrentComponent) AddSongsFromPlaylist(playlist *restApiV1.Playlist)
- func (c *CurrentComponent) Clear()
- func (c *CurrentComponent) Disable()
- func (c *CurrentComponent) Enable()
- func (c *CurrentComponent) Focus(delegate func(cview.Primitive))
- func (c *CurrentComponent) GetNextSong() *restApiV1.SongId
- func (c *CurrentComponent) IsModified() bool
- func (c *CurrentComponent) LoadSong(songId restApiV1.SongId)
- func (c *CurrentComponent) LoadSongsFromAlbum(album *restApiV1.Album)
- func (c *CurrentComponent) LoadSongsFromArtist(artist *restApiV1.Artist)
- func (c *CurrentComponent) LoadSongsFromPlaylist(playlist *restApiV1.Playlist)
- func (c *CurrentComponent) RefreshView()
- func (c *CurrentComponent) SetModified(modified bool)
- type HelpComponent
- type LibraryComponent
- func (c *LibraryComponent) Disable()
- func (c *LibraryComponent) Enable()
- func (c *LibraryComponent) Focus(delegate func(cview.Primitive))
- func (c *LibraryComponent) GoToAllAlbumsFilter()
- func (c *LibraryComponent) GoToAllArtistsFilter()
- func (c *LibraryComponent) GoToAllPlaylistsFilter()
- func (c *LibraryComponent) GoToAllSongsFilter()
- func (c *LibraryComponent) GoToAllUsersFilter()
- func (c *LibraryComponent) GoToFavoriteAlbumsFromUserFilter(userId restApiV1.UserId)
- func (c *LibraryComponent) GoToFavoriteArtistsFromUserFilter(userId restApiV1.UserId)
- func (c *LibraryComponent) GoToFavoritePlaylistsFromUserFilter(userId restApiV1.UserId)
- func (c *LibraryComponent) GoToFavoriteSongsFromUserFilter(userId restApiV1.UserId)
- func (c *LibraryComponent) GoToMenuFilter()
- func (c *LibraryComponent) GoToPreviousFilter()
- func (c *LibraryComponent) GoToSongsFromAlbumFilter(albumId restApiV1.AlbumId)
- func (c *LibraryComponent) GoToSongsFromArtistFilter(artistId restApiV1.ArtistId)
- func (c *LibraryComponent) GoToSongsFromPlaylistFilter(playlistId restApiV1.PlaylistId)
- func (c *LibraryComponent) GoToSongsFromUnknownAlbumFilter()
- func (c *LibraryComponent) GoToSongsFromUnknownArtistFilter()
- func (c *LibraryComponent) RefreshList()
- func (c *LibraryComponent) RefreshView()
- func (c *LibraryComponent) ResetToMenuFilter()
- type MessageComponent
- type MfModal
- type PlayerComponent
- func (c *PlayerComponent) Disable()
- func (c *PlayerComponent) Enable()
- func (c *PlayerComponent) GetVolume() int
- func (c *PlayerComponent) GoBackward()
- func (c *PlayerComponent) GoForward()
- func (c *PlayerComponent) PauseResume()
- func (c *PlayerComponent) Play(songId restApiV1.SongId)
- func (c *PlayerComponent) SetVolume(volume int)
- func (c *PlayerComponent) VolumeDown()
- func (c *PlayerComponent) VolumeUp()
- type PlaylistContentSaveAsComponent
- type PlaylistEditComponent
- type SongEditComponent
- type UserEditComponent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenAlbumEditComponent ¶
func OpenArtistEditComponent ¶
func OpenPlaylistContentSaveAsComponent ¶ added in v0.4.0
func OpenPlaylistEditComponent ¶
func OpenPlaylistEditComponent(uiApp *App, playlistId restApiV1.PlaylistId, playlistMeta *restApiV1.PlaylistMeta, originPrimitive cview.Primitive)
func OpenSongEditComponent ¶
func OpenUserCreateComponent ¶
Types ¶
type AlbumEditComponent ¶
type App ¶
type App struct { config.ClientConfig // contains filtered or unexported fields }
func NewApp ¶
func NewApp(clientConfig config.ClientConfig, restClient *restClientV1.RestClient) *App
func (*App) ClientErrorMessage ¶
func (a *App) ClientErrorMessage(message string, cliErr restClientV1.ClientError)
func (*App) ConfirmAlbumDelete ¶
func (*App) ConfirmArtistDelete ¶
func (*App) ConfirmExit ¶
func (a *App) ConfirmExit()
func (*App) ConfirmPlaylistDelete ¶
func (*App) ConfirmSongDelete ¶
func (*App) ConfirmUserDelete ¶
func (*App) ConnectedUserId ¶
func (*App) CurrentComponent ¶
func (a *App) CurrentComponent() *CurrentComponent
func (*App) HideExplicitSongForConnectedUser ¶
func (*App) IsConnectedUserAdmin ¶
func (*App) OpenModalMessage ¶ added in v0.4.1
func (*App) WarningMessage ¶
type ArtistEditComponent ¶
type CurrentComponent ¶
func NewCurrentComponent ¶
func NewCurrentComponent(uiApp *App) *CurrentComponent
func (*CurrentComponent) AddSong ¶
func (c *CurrentComponent) AddSong(songId restApiV1.SongId)
func (*CurrentComponent) AddSongsFromAlbum ¶
func (c *CurrentComponent) AddSongsFromAlbum(album *restApiV1.Album)
func (*CurrentComponent) AddSongsFromArtist ¶
func (c *CurrentComponent) AddSongsFromArtist(artist *restApiV1.Artist)
func (*CurrentComponent) AddSongsFromPlaylist ¶
func (c *CurrentComponent) AddSongsFromPlaylist(playlist *restApiV1.Playlist)
func (*CurrentComponent) Clear ¶
func (c *CurrentComponent) Clear()
func (*CurrentComponent) Disable ¶
func (c *CurrentComponent) Disable()
func (*CurrentComponent) Enable ¶
func (c *CurrentComponent) Enable()
func (*CurrentComponent) Focus ¶
func (c *CurrentComponent) Focus(delegate func(cview.Primitive))
func (*CurrentComponent) GetNextSong ¶
func (c *CurrentComponent) GetNextSong() *restApiV1.SongId
func (*CurrentComponent) IsModified ¶ added in v0.3.0
func (c *CurrentComponent) IsModified() bool
func (*CurrentComponent) LoadSong ¶
func (c *CurrentComponent) LoadSong(songId restApiV1.SongId)
func (*CurrentComponent) LoadSongsFromAlbum ¶
func (c *CurrentComponent) LoadSongsFromAlbum(album *restApiV1.Album)
func (*CurrentComponent) LoadSongsFromArtist ¶
func (c *CurrentComponent) LoadSongsFromArtist(artist *restApiV1.Artist)
func (*CurrentComponent) LoadSongsFromPlaylist ¶
func (c *CurrentComponent) LoadSongsFromPlaylist(playlist *restApiV1.Playlist)
func (*CurrentComponent) RefreshView ¶
func (c *CurrentComponent) RefreshView()
func (*CurrentComponent) SetModified ¶
func (c *CurrentComponent) SetModified(modified bool)
type HelpComponent ¶
func NewHelpComponent ¶
func NewHelpComponent(uiApp *App) *HelpComponent
type LibraryComponent ¶
func NewLibraryComponent ¶
func NewLibraryComponent(uiApp *App) *LibraryComponent
func (*LibraryComponent) Disable ¶
func (c *LibraryComponent) Disable()
func (*LibraryComponent) Enable ¶
func (c *LibraryComponent) Enable()
func (*LibraryComponent) Focus ¶
func (c *LibraryComponent) Focus(delegate func(cview.Primitive))
func (*LibraryComponent) GoToAllAlbumsFilter ¶
func (c *LibraryComponent) GoToAllAlbumsFilter()
func (*LibraryComponent) GoToAllArtistsFilter ¶
func (c *LibraryComponent) GoToAllArtistsFilter()
func (*LibraryComponent) GoToAllPlaylistsFilter ¶
func (c *LibraryComponent) GoToAllPlaylistsFilter()
func (*LibraryComponent) GoToAllSongsFilter ¶
func (c *LibraryComponent) GoToAllSongsFilter()
func (*LibraryComponent) GoToAllUsersFilter ¶
func (c *LibraryComponent) GoToAllUsersFilter()
func (*LibraryComponent) GoToFavoriteAlbumsFromUserFilter ¶
func (c *LibraryComponent) GoToFavoriteAlbumsFromUserFilter(userId restApiV1.UserId)
func (*LibraryComponent) GoToFavoriteArtistsFromUserFilter ¶
func (c *LibraryComponent) GoToFavoriteArtistsFromUserFilter(userId restApiV1.UserId)
func (*LibraryComponent) GoToFavoritePlaylistsFromUserFilter ¶
func (c *LibraryComponent) GoToFavoritePlaylistsFromUserFilter(userId restApiV1.UserId)
func (*LibraryComponent) GoToFavoriteSongsFromUserFilter ¶
func (c *LibraryComponent) GoToFavoriteSongsFromUserFilter(userId restApiV1.UserId)
func (*LibraryComponent) GoToMenuFilter ¶
func (c *LibraryComponent) GoToMenuFilter()
func (*LibraryComponent) GoToPreviousFilter ¶
func (c *LibraryComponent) GoToPreviousFilter()
func (*LibraryComponent) GoToSongsFromAlbumFilter ¶
func (c *LibraryComponent) GoToSongsFromAlbumFilter(albumId restApiV1.AlbumId)
func (*LibraryComponent) GoToSongsFromArtistFilter ¶
func (c *LibraryComponent) GoToSongsFromArtistFilter(artistId restApiV1.ArtistId)
func (*LibraryComponent) GoToSongsFromPlaylistFilter ¶
func (c *LibraryComponent) GoToSongsFromPlaylistFilter(playlistId restApiV1.PlaylistId)
func (*LibraryComponent) GoToSongsFromUnknownAlbumFilter ¶
func (c *LibraryComponent) GoToSongsFromUnknownAlbumFilter()
func (*LibraryComponent) GoToSongsFromUnknownArtistFilter ¶
func (c *LibraryComponent) GoToSongsFromUnknownArtistFilter()
func (*LibraryComponent) RefreshList ¶
func (c *LibraryComponent) RefreshList()
func (*LibraryComponent) RefreshView ¶
func (c *LibraryComponent) RefreshView()
func (*LibraryComponent) ResetToMenuFilter ¶
func (c *LibraryComponent) ResetToMenuFilter()
type MessageComponent ¶
func NewMessageComponent ¶
func NewMessageComponent(uiApp *App) *MessageComponent
func (*MessageComponent) SetMessage ¶
func (c *MessageComponent) SetMessage(message string)
func (*MessageComponent) SetWarningMessage ¶
func (c *MessageComponent) SetWarningMessage(message string)
type PlayerComponent ¶
func NewPlayerComponent ¶
func NewPlayerComponent(uiApp *App, volume int) *PlayerComponent
func (*PlayerComponent) Disable ¶
func (c *PlayerComponent) Disable()
func (*PlayerComponent) Enable ¶
func (c *PlayerComponent) Enable()
func (*PlayerComponent) GetVolume ¶
func (c *PlayerComponent) GetVolume() int
func (*PlayerComponent) GoBackward ¶ added in v0.3.0
func (c *PlayerComponent) GoBackward()
func (*PlayerComponent) GoForward ¶ added in v0.3.0
func (c *PlayerComponent) GoForward()
func (*PlayerComponent) PauseResume ¶
func (c *PlayerComponent) PauseResume()
func (*PlayerComponent) Play ¶
func (c *PlayerComponent) Play(songId restApiV1.SongId)
func (*PlayerComponent) SetVolume ¶
func (c *PlayerComponent) SetVolume(volume int)
func (*PlayerComponent) VolumeDown ¶
func (c *PlayerComponent) VolumeDown()
func (*PlayerComponent) VolumeUp ¶
func (c *PlayerComponent) VolumeUp()
type PlaylistContentSaveAsComponent ¶ added in v0.4.0
type PlaylistEditComponent ¶
type SongEditComponent ¶
type UserEditComponent ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.