MCPcopy Create free account

hub / github.com/go-musicfox/go-musicfox / functions

Functions1,729 in github.com/go-musicfox/go-musicfox

↓ 78 callersMethodError
()
internal/netease/error.go:12
↓ 64 callersMethodString
String implements the fmt.Stringer interface for the Mode type.
internal/types/player.go:17
↓ 63 callersMethodRun
()
internal/macdriver/cocoa/nsapplication.go:78
↓ 57 callersFunctionString
(str string)
internal/macdriver/core/nsstring.go:48
↓ 45 callersMethodClose
()
internal/player/player.go:30
↓ 44 callersFunctionError
(err any)
utils/slogx/slog.go:29
↓ 42 callersMethodError
()
internal/playlist/errors.go:14
↓ 39 callersMethodID
()
internal/macdriver/cocoa/nsuser_notification_delegate.go:83
↓ 38 callersMethodRelease
()
internal/macdriver/core/core.go:55
↓ 37 callersMethodTick
(width int, content string)
utils/app/x_scoll_bar.go:32
↓ 34 callersMethodString
String returns the string representation of the frame rate (e.g., "30 FPS").
internal/configs/framerate.go:34
↓ 33 callersMethodSetObjcID
(id objc.ID)
internal/macdriver/core/core.go:51
↓ 33 callersFunctioncreateTestPlaylist
createTestPlaylist 创建测试用的播放列表
internal/playlist/ordered_test.go:12
↓ 32 callersFunctionMust
(err error)
utils/errorx/error.go:7
↓ 30 callersFunctionNotify
(content NotifyContent)
utils/notify/notification_macapp.go:29
↓ 29 callersMethodAddTargetAction
(target objc.ID, action objc.SEL)
internal/macdriver/mediaplayer/mpremotecommand.go:29
↓ 28 callersMethodToLoginPage
ToLoginPage 需要登录的处理
internal/ui/netease.go:122
↓ 28 callersFunctionboolToToml
(b bool)
internal/commands/migrate.go:629
↓ 27 callersMethodInitialize
Initialize 初始化播放模式(用于需要特殊初始化的模式,如随机播放)
internal/playlist/interfaces.go:68
↓ 26 callersFunctionMust1
(a T, err error)
utils/errorx/error.go:13
↓ 25 callersFunctionmpdErrorHandler
(err error, ignore bool)
internal/player/mpd_player.go:28
↓ 23 callersMethodDuration
()
internal/macdriver/avcore/avplayeritem.go:45
↓ 23 callersMethodInitialize
Initialize 初始化播放列表和当前播放索引
internal/playlist/interfaces.go:12
↓ 23 callersMethodNextSong
NextSong 根据当前播放模式获取下一首歌曲 manual 参数表示是否为手动切换
internal/playlist/interfaces.go:61
↓ 22 callersFunctionEnterMenuCallback
(m *model.Main)
internal/ui/login_callback.go:7
↓ 21 callersFunctionGetViewFromSongs
GetViewFromSongs 从歌曲列表获取View
utils/menux/menu.go:14
↓ 21 callersFunctionNewPlaylistManager
NewPlaylistManager 创建一个新的播放列表管理器
internal/playlist/manager.go:26
↓ 20 callersFunctionNewTable
NewTable 创建table
internal/storage/table.go:17
↓ 20 callersFunctionassertNotEmpty
(command MPRemoteCommand, err string)
internal/macdriver/mediaplayer/mpremotecommandcenter_test.go:9
↓ 20 callersFunctionnewProp
(value any, cb func(*prop.Change) *dbus.Error)
internal/remote_control/remote_control_linux.go:330
↓ 19 callersMethodPause
()
internal/player/player.go:16
↓ 19 callersMethodSetPlayMode
SetPlayMode 设置播放模式
internal/playlist/interfaces.go:39
↓ 19 callersMethodStart
()
internal/ui/ticker_by_player.go:17
↓ 18 callersMethodGetPlayMode
GetPlayMode 获取当前播放模式
internal/playlist/interfaces.go:42
↓ 18 callersMethodclient
()
internal/player/mpd_player.go:124
↓ 18 callersFunctionnewPlaylistError
newPlaylistError 创建一个新的播放列表错误
internal/playlist/errors.go:50
↓ 17 callersMethodSetVolume
(volume int)
internal/player/player.go:27
↓ 17 callersMethodStop
()
internal/player/player.go:18
↓ 15 callersMethodExecute
Execute 按照配置执行操作。 它会按顺序处理:加载状态 -> 认证检查 -> 核心逻辑。
internal/ui/executor.go:46
↓ 15 callersFunctionNewOperation
NewOperation 创建一个新操作。 参数 m 是 Netease 主模型,coreFunc 是要执行的核心业务逻辑。
internal/ui/executor.go:21
↓ 15 callersMethodShowLoading
ShowLoading 将操作标记为在执行期间应显示加载状态。 如果不调用此方法,则默认为不显示加载状态。 返回 Operation 指针以支持链式调用。
internal/ui/executor.go:39
↓ 14 callersMethodAdd
添加一个 Scrobble
internal/storage/lastfm_scrobble.go:36
↓ 14 callersMethodPlaylist
()
internal/ui/player.go:67
↓ 13 callersMethodPreviousSong
PreviousSong 根据当前播放模式获取上一首歌曲 manual 参数表示是否为手动切换
internal/playlist/interfaces.go:65
↓ 13 callersMethodSetByKVModel
SetByKVModel edit one line by KVModel
internal/storage/table.go:107
↓ 13 callersMethodSetMode
SetMode 设置播放模式
internal/ui/player.go:394
↓ 13 callersFunctiongetTargetSong
getTargetSong 根据上下文获取目标歌曲。 isSelected: true 获取当前选择歌曲,false 获取当前播放歌曲 返回获取到的歌曲和一个布尔值,表示是否成功获取。
internal/ui/operate.go:38
↓ 13 callersFunctionnewBaseMenu
(netease *Netease)
internal/ui/menu.go:50
↓ 12 callersMethodGetPlayModeName
GetPlayModeName 获取当前播放模式的名称 Deprecated: please use GetPlayMode().Name() instead.
internal/playlist/interfaces.go:47
↓ 12 callersMethodName
Name returns the human-readable name of the play mode.
internal/types/player.go:37
↓ 12 callersFunctionclose
(num: number)
script/github/close-issues.ts:28
↓ 11 callersMethodGet
Get 尝试从缓存中获取一首歌的数据流
internal/track/cache.go:188
↓ 11 callersMethodGetCurrentIndex
GetCurrentIndex 获取当前播放歌曲的索引
internal/playlist/interfaces.go:21
↓ 11 callersFunctionMPRemoteCommandCenter_sharedCommandCenter
()
internal/macdriver/mediaplayer/mpremotecommandcenter.go:48
↓ 11 callersFunctionNewInfiniteRandomPlayMode
NewInfiniteRandomPlayMode 创建新的无限随机播放模式实例
internal/playlist/infinite_random.go:21
↓ 11 callersMethodNextSong
NextSong 切换到下一首歌曲 manual 参数表示是否为手动切换
internal/playlist/interfaces.go:28
↓ 11 callersMethodSongs
()
internal/ui/menu.go:27
↓ 11 callersFunctionimportFramework
()
internal/macdriver/mediaplayer/mediaplayer.go:15
↓ 11 callersFunctionmax
max 返回两个整数中的较大值
internal/playlist/infinite_random.go:219
↓ 10 callersFunctionNewListRandomPlayMode
NewListRandomPlayMode 创建新的列表随机播放模式实例
internal/playlist/list_random.go:20
↓ 10 callersMethodPlaylist
()
internal/ui/player.go:313
↓ 10 callersMethodRemoveSong
RemoveSong 从播放列表中移除指定索引的歌曲 返回移除后应该播放的歌曲(如果有的话)
internal/playlist/interfaces.go:36
↓ 10 callersMethodSeek
(duration time.Duration)
internal/player/player.go:20
↓ 10 callersFunctionblendColorFast
blendColorFast mixes two pre-computed RGB colors with ratio t (0.0 - 1.0).
internal/ui/lyric_color.go:37
↓ 10 callersMethoddoSOAP
(service, action, body string)
internal/player/dlna_player.go:353
↓ 10 callersFunctionimportFramework
()
internal/macdriver/core/core.go:24
↓ 9 callersMethodArtistName
()
internal/structs/song.go:23
↓ 9 callersFunctionAutorelease
(body func())
internal/macdriver/core/core.go:73
↓ 9 callersMethodGetByKVModel
GetByKVModel 通过KVModel获取value
internal/storage/table.go:167
↓ 9 callersMethodGetCurrentSong
GetCurrentSong 获取当前播放的歌曲
internal/playlist/interfaces.go:24
↓ 9 callersFunctionGo
(f func(), ignorePanic ...bool)
utils/errorx/recover.go:26
↓ 9 callersMethodSet
Set edit one line
internal/storage/table.go:76
↓ 9 callersMethodSetPassed
SetPassed update passed.
utils/timex/timer.go:42
↓ 9 callersMethodState
()
internal/ui/player.go:64
↓ 9 callersMethodString
()
internal/macdriver/core/nsstring.go:44
↓ 8 callersMethodCurSongIndex
()
internal/ui/player.go:62
↓ 8 callersMethodCurSongIndex
()
internal/ui/player.go:321
↓ 8 callersMethodCurrentItem
()
internal/macdriver/avcore/avplayer.go:69
↓ 8 callersMethodExecute
Execute 安全地执行一个模板
internal/composer/manager.go:60
↓ 8 callersMethodGetPlaylist
GetPlaylist 获取当前播放列表
internal/playlist/interfaces.go:18
↓ 8 callersFunctionGetViewFromDjRadios
GetViewFromDjRadios DjRadio列表获取View
utils/menux/menu.go:73
↓ 8 callersFunctionNSNumber_numberWithInt
(val int32)
internal/macdriver/core/nsnumber.go:29
↓ 8 callersFunctionNewArtist
(json []byte)
internal/structs/artist.go:13
↓ 8 callersFunctionNewSingleLoopPlayMode
NewSingleLoopPlayMode 创建新的单曲循环播放模式实例
internal/playlist/single_loop.go:13
↓ 8 callersMethodNextSong
NextSong 获取下一首歌曲的索引 单曲循环模式下,自动播放时返回当前索引,手动切换时正常切换
internal/playlist/single_loop.go:19
↓ 8 callersMethodPassedTime
()
internal/ui/player.go:63
↓ 8 callersMethodPreviousSong
PreviousSong 获取上一首歌曲的索引 单曲循环模式下,自动播放时返回当前索引,手动切换时正常切换
internal/playlist/single_loop.go:41
↓ 8 callersMethodRelease
()
internal/remote_control/remote_control_darwin.go:162
↓ 8 callersMethodStatus
()
internal/lastfm/track.go:138
↓ 8 callersFunctionWaitGoStart
(f func(), ignorePanic ...bool)
utils/errorx/recover.go:34
↓ 8 callersMethodaddToHistory
addToHistory 添加索引到历史记录
internal/playlist/infinite_random.go:199
↓ 8 callersMethoderrorHandle
(e error)
internal/lastfm/api.go:75
↓ 8 callersFunctionfirstCharOrDefault
(s, defaultStr string)
internal/configs/theme.go:8
↓ 8 callersFunctionfirstCharOrDefault
(s, defaultStr string)
internal/commands/migrate.go:443
↓ 8 callersFunctiontickLogin
(duration time.Duration)
internal/ui/login_page.go:60
↓ 7 callersMethodAddObserverSelectorNameObject
(observer objc.ID, selector objc.SEL, name core.NSString, object core.NSObject)
internal/macdriver/cocoa/nsnotificationcenter.go:37
↓ 7 callersMethodBuild
Build 返回最终生成的 ItemProps 结构体。
internal/composer/common.go:60
↓ 7 callersMethodCtrlPause
()
internal/remote_control/play_controller.go:8
↓ 7 callersMethodCurSong
()
internal/ui/player.go:61
↓ 7 callersMethodMenuViews
()
internal/ui/lastfm.go:23
next →1–100 of 1,729, ranked by callers