Documentation ¶
Index ¶
- Variables
- func Boot(dataPath string) error
- func CancelTask()
- func CrossShot(snapshotId, targetRemoteName string) (string, error)
- func DebugExecInfiniteTask() error
- func DebugFuckup() error
- func DeleteAccount(id string) error
- func DeleteAllPlaylists(accountID string) error
- func LinkerCleanAlbums() error
- func LinkerCleanArtists() error
- func LinkerCleanTracks() error
- func LinkerEntityURL(remoteName, remoteID, entityType string) (string, error)
- func LinkerExportAlbumsLinks(dest IoWriter) error
- func LinkerExportArtistsLinks(dest IoWriter) error
- func LinkerExportTracksLinks(dest IoWriter) error
- func LinkerImportAlbumsLinks(from IoReader) error
- func LinkerImportArtistsLinks(from IoReader) error
- func LinkerImportTracksLinks(from IoReader) error
- func LinkerNotMatchedAlbumsCount(remoteName string) (int, error)
- func LinkerNotMatchedArtistsCount(remoteName string) (int, error)
- func LinkerNotMatchedTracksCount(remoteName string) (int, error)
- func RemoteEnabled(remoteName string) bool
- func SetOnLogger(l OnLogger) error
- func SetOnTask(cb OnTasker)
- func SetOnTaskCancelled(cb OnTasker)
- func SetOnTaskDone(cb OnTasker)
- func SetRemoteEnabled(remoteName string, val bool) error
- func Sync() error
- func UnlikeLikedAlbums(accountID string) error
- func UnlikeLikedArtists(accountID string) error
- func UnlikeLikedTracks(accountID string) error
- func Version() string
- type Account
- type AccountSettings
- type AccountSlice
- type ConfigDeezer
- type ConfigGeneral
- type ConfigLinker
- type ConfigSnapshots
- func (e *ConfigSnapshots) AutoRecover() bool
- func (e *ConfigSnapshots) CreateWhenSyncing() bool
- func (e *ConfigSnapshots) MaxAuto() int
- func (e *ConfigSnapshots) SetAutoRecover(val bool) error
- func (e *ConfigSnapshots) SetCreateWhenSyncing(val bool) error
- func (e *ConfigSnapshots) SetMaxAuto(val int) error
- type ConfigSpotify
- type Deezer
- type IoReader
- type IoWriter
- type Linked
- type LinkedSlice
- type OnLogger
- type OnTasker
- type OnUrlCoder
- type OnUrler
- type PlaylistSyncSettings
- type Snapshot
- func (e Snapshot) Alias() string
- func (e Snapshot) Auto() bool
- func (e Snapshot) CreatedAt() string
- func (e *Snapshot) Delete() error
- func (e Snapshot) ID() string
- func (e Snapshot) LikedAlbumsCount() (int, error)
- func (e Snapshot) LikedAlbumsRestoreable() bool
- func (e Snapshot) LikedArtistsCount() (int, error)
- func (e Snapshot) LikedArtistsRestoreable() bool
- func (e Snapshot) LikedTracksCount() (int, error)
- func (e Snapshot) LikedTracksRestoreable() bool
- func (e Snapshot) Playlist(id string) (*SnapshotPlaylist, error)
- func (e Snapshot) Playlists() (*SnapshotPlaylistSlice, error)
- func (e Snapshot) PlaylistsCount() (int, error)
- func (e Snapshot) PlaylistsRestoreable() bool
- func (e Snapshot) RestoreLikedAlbums(merge bool, accountID string) error
- func (e Snapshot) RestoreLikedArtists(merge bool, accountID string) error
- func (e Snapshot) RestoreLikedTracks(merge bool, accountID string) error
- func (e Snapshot) RestorePlaylists(merge bool, accountID string) error
- func (e Snapshot) SetAlias(val string) error
- type SnapshotPlaylist
- type SnapshotPlaylistSlice
- type SnapshotSlice
- type Spotify
- type SyncSetting
- type VkMusic
- type VkMusicOnCode
- type VkMusicOnCodeGetter
- type YandexMusic
- type Zvuk
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAnotherTaskInProgess = errors.New("another task in progress") ErrBootedBefore = errors.New("booted before") )
Functions ¶
func CancelTask ¶
func CancelTask()
func DebugExecInfiniteTask ¶
func DebugExecInfiniteTask() error
func DebugFuckup ¶
func DebugFuckup() error
func DeleteAccount ¶
func DeleteAllPlaylists ¶
func LinkerEntityURL ¶
Get URL of entity.
func LinkerExportAlbumsLinks ¶
Export linker links.
func LinkerExportArtistsLinks ¶
Export linker links.
func LinkerExportTracksLinks ¶
Export linker links.
func LinkerImportAlbumsLinks ¶
Import linker links.
func LinkerImportArtistsLinks ¶
Import linker links.
func LinkerImportTracksLinks ¶
Import linker links.
func LinkerNotMatchedAlbumsCount ¶
Get count of not matched albums.
func LinkerNotMatchedArtistsCount ¶
Get count of not matched artists.
func LinkerNotMatchedTracksCount ¶
Get count of not matched tracks.
func RemoteEnabled ¶
Remote active and ready for sync & tools?
func SetOnLogger ¶
func SetOnTaskCancelled ¶
func SetOnTaskCancelled(cb OnTasker)
func SetOnTaskDone ¶
func SetOnTaskDone(cb OnTasker)
func SetRemoteEnabled ¶
func UnlikeLikedAlbums ¶
func UnlikeLikedArtists ¶
func UnlikeLikedTracks ¶
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func AccountByID ¶
func (*Account) Settings ¶
func (e *Account) Settings() (*AccountSettings, error)
type AccountSettings ¶
type AccountSettings struct {
// contains filtered or unexported fields
}
func (*AccountSettings) LikedAlbums ¶
func (e *AccountSettings) LikedAlbums() *SyncSetting
func (*AccountSettings) LikedArtists ¶
func (e *AccountSettings) LikedArtists() *SyncSetting
func (*AccountSettings) LikedTracks ¶
func (e *AccountSettings) LikedTracks() *SyncSetting
func (*AccountSettings) Playlist ¶
func (e *AccountSettings) Playlist(playlistID string) (*PlaylistSyncSettings, error)
func (*AccountSettings) Playlists ¶
func (e *AccountSettings) Playlists() *SyncSetting
type AccountSlice ¶
type AccountSlice struct {
// contains filtered or unexported fields
}
func Accounts ¶
func Accounts(remoteName string) (*AccountSlice, error)
func (*AccountSlice) Item ¶
func (e *AccountSlice) Item(i int) *Account
func (*AccountSlice) Len ¶
func (e *AccountSlice) Len() int
type ConfigDeezer ¶
type ConfigDeezer struct {
// contains filtered or unexported fields
}
func NewConfigDeezer ¶
func NewConfigDeezer() *ConfigDeezer
func (*ConfigDeezer) Host ¶
func (e *ConfigDeezer) Host() string
func (*ConfigDeezer) Port ¶
func (e *ConfigDeezer) Port() int
func (*ConfigDeezer) SetHost ¶
func (e *ConfigDeezer) SetHost(val string) error
func (*ConfigDeezer) SetPort ¶
func (e *ConfigDeezer) SetPort(val int) error
type ConfigGeneral ¶
type ConfigGeneral struct {
// contains filtered or unexported fields
}
func NewConfigGeneral ¶
func NewConfigGeneral() *ConfigGeneral
func (*ConfigGeneral) Debug ¶
func (e *ConfigGeneral) Debug() bool
func (*ConfigGeneral) SetDebug ¶
func (e *ConfigGeneral) SetDebug(val bool) error
type ConfigLinker ¶
type ConfigLinker struct {
// contains filtered or unexported fields
}
func NewConfigLinker ¶
func NewConfigLinker() *ConfigLinker
func (*ConfigLinker) RecheckMissing ¶
func (e *ConfigLinker) RecheckMissing() bool
func (*ConfigLinker) SetRecheckMissing ¶
func (e *ConfigLinker) SetRecheckMissing(val bool) error
type ConfigSnapshots ¶
type ConfigSnapshots struct {
// contains filtered or unexported fields
}
func NewConfigSnapshots ¶
func NewConfigSnapshots() *ConfigSnapshots
func (*ConfigSnapshots) AutoRecover ¶
func (e *ConfigSnapshots) AutoRecover() bool
func (*ConfigSnapshots) CreateWhenSyncing ¶
func (e *ConfigSnapshots) CreateWhenSyncing() bool
func (*ConfigSnapshots) MaxAuto ¶
func (e *ConfigSnapshots) MaxAuto() int
func (*ConfigSnapshots) SetAutoRecover ¶
func (e *ConfigSnapshots) SetAutoRecover(val bool) error
func (*ConfigSnapshots) SetCreateWhenSyncing ¶
func (e *ConfigSnapshots) SetCreateWhenSyncing(val bool) error
func (*ConfigSnapshots) SetMaxAuto ¶
func (e *ConfigSnapshots) SetMaxAuto(val int) error
type ConfigSpotify ¶
type ConfigSpotify struct {
// contains filtered or unexported fields
}
func NewConfigSpotify ¶
func NewConfigSpotify() *ConfigSpotify
func (*ConfigSpotify) Host ¶
func (e *ConfigSpotify) Host() string
func (*ConfigSpotify) Port ¶
func (e *ConfigSpotify) Port() int
func (*ConfigSpotify) SetHost ¶
func (e *ConfigSpotify) SetHost(val string) error
func (*ConfigSpotify) SetPort ¶
func (e *ConfigSpotify) SetPort(val int) error
type Deezer ¶
type Deezer struct { }
func (Deezer) NewAccount ¶
func (Deezer) RemoteName ¶
type Linked ¶
type Linked struct {
// contains filtered or unexported fields
}
func (Linked) SetRemoteID ¶
Set remote ID (aka relink). If empty - marks as missing.
type LinkedSlice ¶
type LinkedSlice struct {
// contains filtered or unexported fields
}
func LinkerLinksAlbums ¶
func LinkerLinksAlbums(remoteName string) (*LinkedSlice, error)
Albums links.
func LinkerLinksArtists ¶
func LinkerLinksArtists(remoteName string) (*LinkedSlice, error)
Artists links.
func LinkerLinksTracks ¶
func LinkerLinksTracks(remoteName string) (*LinkedSlice, error)
Tracks links.
func (*LinkedSlice) Item ¶
func (e *LinkedSlice) Item(i int) *Linked
func (*LinkedSlice) Len ¶
func (e *LinkedSlice) Len() int
type OnUrlCoder ¶
type OnUrlCoder interface {
OnUrlCode(url, code string)
}
type PlaylistSyncSettings ¶
type PlaylistSyncSettings struct {
// contains filtered or unexported fields
}
func (*PlaylistSyncSettings) Description ¶
func (e *PlaylistSyncSettings) Description() *SyncSetting
func (*PlaylistSyncSettings) Name ¶
func (e *PlaylistSyncSettings) Name() *SyncSetting
func (*PlaylistSyncSettings) Tracks ¶
func (e *PlaylistSyncSettings) Tracks() *SyncSetting
func (*PlaylistSyncSettings) Visibility ¶
func (e *PlaylistSyncSettings) Visibility() *SyncSetting
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
func CreateSnapshot ¶
func SnapshotByID ¶
func (Snapshot) LikedAlbumsCount ¶
func (Snapshot) LikedAlbumsRestoreable ¶
func (Snapshot) LikedArtistsCount ¶
func (Snapshot) LikedArtistsRestoreable ¶
func (Snapshot) LikedTracksCount ¶
func (Snapshot) LikedTracksRestoreable ¶
func (Snapshot) Playlists ¶
func (e Snapshot) Playlists() (*SnapshotPlaylistSlice, error)
func (Snapshot) PlaylistsCount ¶
func (Snapshot) PlaylistsRestoreable ¶
func (Snapshot) RestoreLikedAlbums ¶
func (Snapshot) RestoreLikedArtists ¶
func (Snapshot) RestoreLikedTracks ¶
func (Snapshot) RestorePlaylists ¶
type SnapshotPlaylist ¶
type SnapshotPlaylist struct {
// contains filtered or unexported fields
}
func (*SnapshotPlaylist) Delete ¶
func (e *SnapshotPlaylist) Delete() error
func (SnapshotPlaylist) Description ¶
func (e SnapshotPlaylist) Description() string
func (SnapshotPlaylist) ID ¶
func (e SnapshotPlaylist) ID() string
func (SnapshotPlaylist) IsVisible ¶
func (e SnapshotPlaylist) IsVisible() bool
func (SnapshotPlaylist) Name ¶
func (e SnapshotPlaylist) Name() string
func (SnapshotPlaylist) Restore ¶
func (e SnapshotPlaylist) Restore(accountID string) error
type SnapshotPlaylistSlice ¶
type SnapshotPlaylistSlice struct {
// contains filtered or unexported fields
}
func (SnapshotPlaylistSlice) Item ¶
func (e SnapshotPlaylistSlice) Item(i int) *SnapshotPlaylist
func (SnapshotPlaylistSlice) Len ¶
func (e SnapshotPlaylistSlice) Len() int
type SnapshotSlice ¶
type SnapshotSlice struct {
// contains filtered or unexported fields
}
func Snapshots ¶
func Snapshots(remoteName, filterAuto string) (*SnapshotSlice, error)
func (SnapshotSlice) Item ¶
func (e SnapshotSlice) Item(i int) *Snapshot
func (SnapshotSlice) Len ¶
func (e SnapshotSlice) Len() int
type Spotify ¶
type Spotify struct { }
func NewSpotify ¶
func NewSpotify() *Spotify
func (Spotify) NewAccount ¶
func (Spotify) RemoteName ¶
type SyncSetting ¶
type SyncSetting struct {
// contains filtered or unexported fields
}
func (*SyncSetting) LastSynchronization ¶
func (e *SyncSetting) LastSynchronization() string
func (*SyncSetting) SetSynchronize ¶
func (e *SyncSetting) SetSynchronize(val bool) error
func (*SyncSetting) Synchronize ¶
func (e *SyncSetting) Synchronize() bool
type VkMusic ¶
type VkMusic struct { }
func NewVkMusic ¶
func NewVkMusic() *VkMusic
func (VkMusic) NewAccount ¶
func (VkMusic) Reauth ¶
func (e VkMusic) Reauth( accountId, phone, password string, onCode VkMusicOnCode, deadlineSeconds int, ) error
func (VkMusic) RemoteName ¶
type VkMusicOnCode ¶
type VkMusicOnCode interface {
Got(currentMethod, resendMethod string) VkMusicOnCodeGetter
}
type VkMusicOnCodeGetter ¶
type YandexMusic ¶
type YandexMusic struct { }
func NewYandexMusic ¶
func NewYandexMusic() *YandexMusic
func (YandexMusic) NewAccount ¶
func (e YandexMusic) NewAccount(alias string, deadlineSeconds int, onUrlCode OnUrlCoder) (string, error)
func (YandexMusic) Reauth ¶
func (e YandexMusic) Reauth(accountId string, login string, deadlineSeconds int, onURL OnUrlCoder) error
func (YandexMusic) RemoteName ¶
func (e YandexMusic) RemoteName() string
Click to show internal directories.
Click to hide internal directories.