MCPcopy Create free account

hub / github.com/ShukeBta/MediaStationGo / functions

Functions5,617 in github.com/ShukeBta/MediaStationGo

↓ 7 callersFunctionBuildRelativeCloudPlayURL
BuildRelativeCloudPlayURL 构造相对的云盘播放 API 路径。
internal/service/stream_redirect.go:26
↓ 7 callersMethodCreate
Create inserts a new client.
internal/service/download_clients.go:54
↓ 7 callersMethodCreateLibraryWithRoots
(ctx context.Context, name, kind string, inputs []LibraryRootInput)
internal/service/media_library_roots.go:26
↓ 7 callersMethodDelete
Delete removes a STRM record (soft-delete).
internal/repository/strm_repo.go:73
↓ 7 callersFunctionNewApiConfigHandler
NewApiConfigHandler 创建 API 配置处理器。
internal/handler/api_config_handler.go:20
↓ 7 callersFunctionNewDownloadClientService
NewDownloadClientService is the constructor.
internal/service/download_clients.go:29
↓ 7 callersFunctionNewQBitClient
NewQBitClient builds a fresh client. A blank URL intentionally stays blank: an unconfigured downloader must fail closed instead of silently trying a l
internal/service/qbittorrent.go:80
↓ 7 callersMethodOrganizeMedia
OrganizeMedia moves a single media file into the target library directory. It auto-detects whether the media is a movie or TV episode based on the par
internal/service/organizer.go:73
↓ 7 callersFunctionOrganizeResultNeedsVisibilitySync
OrganizeResultNeedsVisibilitySync reports whether a just-finished organize should make sure destination files exist in the DB. New/replaced files alwa
internal/service/organizer_scan.go:65
↓ 7 callersMethodSave
Save inserts or updates a sign-in row.
internal/repository/bot_repo.go:94
↓ 7 callersMethodSetKickedByUser
SetKickedByUser marks every device for a user as kicked/un-kicked.
internal/repository/bot_repo.go:204
↓ 7 callersMethodSetSessionTracker
(tracker *SessionTrackerService)
internal/service/device_service.go:49
↓ 7 callersFunctionSubscriptionLocalAvailability
(ctx context.Context, repo *repository.Container, sub *model.Subscription)
internal/service/local_availability.go:53
↓ 7 callersFunctionUserIsProtectedAccount
UserIsProtectedAccount reports whether a user is protected from destructive Bot/device-policy operations.
internal/service/bot_settings.go:164
↓ 7 callersMethodadd
(value string)
internal/service/strm_tree_import.go:209
↓ 7 callersFunctionaddScanError
(res *ScanResult, path string, err error)
internal/service/scanner.go:176
↓ 7 callersFunctionapiErrorMessage
(err: unknown, fallback: string)
web/src/pages/strmPageUtils.ts:1
↓ 7 callersFunctionapiErrorMessage
(err: unknown, fallback: string)
web/src/pages/cloudBrowserModel.ts:11
↓ 7 callersMethodcategoryMap
()
internal/service/media_classifier.go:209
↓ 7 callersFunctioncompactUniqueStrings
(values ...string)
internal/service/subscription_site_search_helpers.go:157
↓ 7 callersMethoddeleteTelegramSourceMessage
(channel *model.NotifyChannel, chatID, messageID int)
internal/service/telegram_reply.go:70
↓ 7 callersFunctiondownloadClientRPCURL
(clientType, host string)
internal/service/download_client_endpoint.go:84
↓ 7 callersFunctiondurationMilliseconds
(d time.Duration)
internal/handler/cloud_playback.go:279
↓ 7 callersFunctionexternalIDHintsFromText
(raw string)
internal/service/external_id_hints.go:26
↓ 7 callersMethodfinalizePendingAvailability
(sub *model.Subscription, out LocalAvailability)
internal/service/subscription_availability.go:152
↓ 7 callersMethodfindChannelForMessage
(ctx context.Context, msg *TelegramMessage)
internal/service/telegram_channel_resolve.go:42
↓ 7 callersMethodgenerateCode
── 兑换码 ────────────────────────────────────────────────────────────────── generateCode creates a random redemption code of the given kind. durationDay
internal/service/bot_features.go:115
↓ 7 callersFunctiongroupSeries
(items: Media[] = [])
web/src/utils/groupSeries.ts:251
↓ 7 callersFunctionisHTTPish
(raw string)
internal/service/image_proxy_paths.go:78
↓ 7 callersFunctionisSeriesLibraryType
(mediaType string)
internal/service/organizer_paths.go:247
↓ 7 callersFunctionlogSubscriptionInfo
(svc *service.Container, msg string, fields ...zap.Field)
internal/handler/subscription_logging.go:42
↓ 7 callersFunctionlogSubscriptionWarn
(svc *service.Container, msg string, fields ...zap.Field)
internal/handler/subscription_logging.go:49
↓ 7 callersFunctionmediaReleaseOrderSQL
(desc bool)
internal/service/media_release_sort.go:27
↓ 7 callersFunctionnewStreamTestRepo
(t *testing.T)
internal/service/stream_test.go:279
↓ 7 callersFunctionnormalizeProxyURL
(raw, proxyKind string)
internal/service/proxy.go:102
↓ 7 callersMethodpublish
(task BackgroundTask)
internal/service/task_tracker.go:191
↓ 7 callersMethodrelease
(limiter chan struct{})
internal/service/ffprobe.go:155
↓ 7 callersFunctionrunSystemUpdateCommand
(ctx context.Context, name string, args ...string)
internal/service/system_update_command.go:47
↓ 7 callersFunctionsamePath
(a, b string)
internal/service/local_metadata_helpers.go:85
↓ 7 callersFunctionscanTaskMetrics
(res *service.ScanResult)
internal/handler/media_scan.go:130
↓ 7 callersFunctionsortedMediaTitles
(rows []model.Media)
internal/service/media_visibility_test.go:255
↓ 7 callersFunctionstr
str safely extracts a string from an interface{} loaded from JSON.
internal/service/notify_channels.go:264
↓ 7 callersFunctionstripHTML
stripHTML 移除 HTML 标签。
internal/service/site_adapter_parse.go:48
↓ 7 callersFunctionstrmRefreshScrapeSkipReason
(refresh *service.STRMRefreshResult)
internal/handler/strm.go:410
↓ 7 callersFunctionsubscriptionAllowsWash
(sub *model.Subscription)
internal/service/subscription_rules.go:85
↓ 7 callersFunctionsubscriptionName
(sub *model.Subscription)
internal/service/subscription_availability.go:183
↓ 7 callersFunctiontelegramMethodURL
(cfg map[string]string, botToken, method string)
internal/service/telegram_api_client.go:29
↓ 7 callersFunctiontelegramPostJSON
(ctx context.Context, cfg map[string]string, method string, payload any, timeout time.Duration)
internal/service/telegram_api.go:25
↓ 7 callersFunctiontitleCaseWords
titleCaseWords upper-cases the first letter of each ASCII word; CJK and other non-ASCII leading characters are left untouched. Roman numerals (ii, iii
internal/service/organizer_directory_layout.go:171
↓ 7 callersFunctiontrimPath
(raw: string)
web/src/pages/strmPageModel.ts:196
↓ 7 callersFunctionunsafeAutomaticEpisodeQuery
(query string)
internal/service/scraper_query.go:133
↓ 7 callersFunctionwriteInternalOrCanceled
(c *gin.Context, err error)
internal/handler/request_cancel.go:23
↓ 7 callersFunctionwriteTemp
(t *testing.T, dir, name, content string)
internal/service/transfer_test.go:31
↓ 6 callersMethodAnyEnabled
AnyEnabled reports whether at least one provider can run.
internal/service/scraper_service.go:85
↓ 6 callersFunctionBuildCloudAutoCategoryLibraryPathWithScanDir
(provider, scanDir, displayDir string)
internal/service/cloud_auto_category.go:19
↓ 6 callersFunctionCloudLibraryDisplayName
(lib model.Library)
internal/service/cloud_mount_display.go:45
↓ 6 callersFunctionCloudLibraryShadowed
(libs []model.Library, lib model.Library)
internal/service/cloud_mount.go:109
↓ 6 callersFunctionCloudPlaybackMode
(ctx context.Context, repo *repository.Container)
internal/service/stream_cloud_settings.go:49
↓ 6 callersMethodCompute
Compute builds a fresh snapshot.
internal/service/stats.go:67
↓ 6 callersMethodConfigure
Configure rotates the client to a new endpoint and re-auths next call.
internal/service/qbittorrent.go:93
↓ 6 callersMethodCreate
Create persists a new site.
internal/service/site_crud.go:16
↓ 6 callersMethodDeletePrefix
(ctx context.Context, prefix string)
internal/service/runtime_cache.go:115
↓ 6 callersMethodEffective
Effective returns the permission set the React UI should consume. Admins skip the table entirely and get a synthetic all-grant row.
internal/service/permission.go:90
↓ 6 callersMethodFindByUserID
FindByUserID returns the permission record for a user, or (nil, nil) when absent.
internal/repository/permission_repository.go:23
↓ 6 callersMethodFindUser
FindUser 用 ID 查用户,用于 /Users/Me 与 /Users/{id}。
internal/service/emby_system.go:74
↓ 6 callersMethodFlush
()
internal/service/scanner_local_write_batch.go:50
↓ 6 callersFunctionGetUserID
GetUserID extracts the user ID from the Gin context.
internal/middleware/roles.go:35
↓ 6 callersFunctionGetUserTier
GetUserTier extracts the user tier from the Gin context.
internal/middleware/roles.go:51
↓ 6 callersMethodHistory
History returns the operations issued by the user, by walking the transcripts and filtering on OperationID. This is bounded to recent rows so the admi
internal/service/assistant.go:187
↓ 6 callersFunctionIsCloudType
IsCloudType reports whether typ is a cloud-disk provider.
internal/service/cloud/cloud.go:108
↓ 6 callersMethodIssueExternalPlaybackToken
IssueExternalPlaybackToken signs a short-lived, media-scoped JWT for URLs that are handed to third-party players. It must not be accepted as a reusabl
internal/service/auth_tokens.go:57
↓ 6 callersMethodLatestItems
LatestItems 最近添加,全库或指定库。
internal/service/emby_items_detail.go:75
↓ 6 callersFunctionMergedLibraryIDs
(libs []model.Library, target model.Library)
internal/service/cloud_mount_scope.go:30
↓ 6 callersFunctionMergedLibraryIDsForLibrary
(ctx context.Context, repo *repository.Container, libraryID string)
internal/service/cloud_mount_scope.go:11
↓ 6 callersFunctionNewInternalHTTPClient
NewInternalHTTPClient builds an HTTP client for LAN / Docker-internal services such as qBittorrent, Transmission and Aria2. These endpoints are usuall
internal/service/proxy.go:33
↓ 6 callersFunctionNewMTeamAdapter
NewMTeamAdapter 创建 MTeam 适配器。
internal/service/site_adapter_mteam.go:24
↓ 6 callersFunctionOpen
Open initialises the configured GORM database. database.type=auto chooses PostgreSQL when database.dsn is present and otherwise falls back to SQLite.
internal/database/database.go:21
↓ 6 callersMethodPrefetchRemote
(ctx context.Context, raw string)
internal/service/image_proxy_remote.go:19
↓ 6 callersMethodRecordPlayback
RecordPlayback marks a device as actively playing and runs the concurrent playback anti-share check. Call from playback-progress reporting.
internal/service/device_service.go:137
↓ 6 callersMethodServeFile
ServeFile streams the file backing the given media ID using http.ServeContent so HEAD / Range / If-Modified-Since are handled for free. When the medi
internal/service/stream_file.go:20
↓ 6 callersFunctionUserDefaultMediaVisibility
UserDefaultMediaVisibility is the visibility policy used by clients that cannot pass a web play-profile token, notably Emby/Jellyfin-compatible apps.
internal/service/visibility.go:44
↓ 6 callersFunctionaddUploadError
(result *CloudUploadResult, source, target string, err error)
internal/service/storage_upload.go:240
↓ 6 callersFunctionapiErrorMessage
(err: unknown, fallback: string)
web/src/pages/SubscriptionsPage.tsx:251
↓ 6 callersMethodapplyRenewal
applyRenewal renews a user account and clears any expiry-related suspension.
internal/service/bot_features.go:209
↓ 6 callersFunctionblankDash
(value string)
internal/service/telegram_mgo_compat.go:64
↓ 6 callersFunctionchannelSubscribes
channelSubscribes returns true when the channel's Events list contains the event, or when the list is the legacy empty/"all events" value.
internal/service/notify_dispatch.go:18
↓ 6 callersFunctionclassifyMediaCategory
(input mediaClassifyInput, categories map[string]string)
internal/service/media_classifier.go:31
↓ 6 callersFunctioncloneDirectLink
(link *cloud.DirectLink)
internal/service/storage_cloud_resolve.go:207
↓ 6 callersMethodcloudImageCachePaths
(stableKey string)
internal/service/image_proxy_cache.go:71
↓ 6 callersFunctioncopyModelTables
(src, target *gorm.DB, batchSize int)
internal/database/sqlite_migration_copy.go:16
↓ 6 callersFunctioncurrentOrigin
()
web/src/pages/strmPageModel.ts:5
↓ 6 callersMethoddeleteTelegramBindings
(ctx context.Context, query string, args ...interface{})
internal/service/telegram_unbind.go:179
↓ 6 callersFunctiondoRequestJSON
─── 辅助函数 ──────────────────────────────────────────────────────────────── doRequestJSON 执行 JSON 请求。
internal/service/site_adapter.go:210
↓ 6 callersFunctionembyEmptyArrayHandler
(_ *service.Container)
internal/handler/emby_static.go:110
↓ 6 callersFunctionembyItemImageHandler
embyItemImageHandler 把 /Items/{id}/Images/Primary 等请求直接输出为图片。 Emby 客户端缓存图片 URL 时经常不会继续携带 token;如果重定向到受保护的 api/img 会变成 401,所以这里复用 ImageProxy 但不再走 /api
internal/handler/emby_images.go:30
↓ 6 callersFunctionembyPlayingProgressHandler
(svc *service.Container)
internal/handler/emby_playstate_handlers.go:19
↓ 6 callersFunctionembySeriesReleaseSortTime
(group embySeriesGroup)
internal/service/emby_series_ids.go:116
↓ 6 callersFunctionembyWithRequestAddress
(c *gin.Context, payload map[string]any)
internal/handler/emby_system.go:47
↓ 6 callersMethodfindMgoBotUser
(ctx context.Context, target string)
internal/service/telegram_mgo_compat.go:21
↓ 6 callersFunctionformatCleanupRules
(rules []accountCleanupRule)
internal/service/telegram_cleanup_rules.go:111
← previousnext →301–400 of 5,617, ranked by callers