Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShukeBta/MediaStationGo
/ functions
Functions
5,617 in github.com/ShukeBta/MediaStationGo
⨍
Functions
5,617
◇
Types & classes
739
↓ 7 callers
Function
BuildRelativeCloudPlayURL
BuildRelativeCloudPlayURL 构造相对的云盘播放 API 路径。
internal/service/stream_redirect.go:26
↓ 7 callers
Method
Create
Create inserts a new client.
internal/service/download_clients.go:54
↓ 7 callers
Method
CreateLibraryWithRoots
(ctx context.Context, name, kind string, inputs []LibraryRootInput)
internal/service/media_library_roots.go:26
↓ 7 callers
Method
Delete
Delete removes a STRM record (soft-delete).
internal/repository/strm_repo.go:73
↓ 7 callers
Function
NewApiConfigHandler
NewApiConfigHandler 创建 API 配置处理器。
internal/handler/api_config_handler.go:20
↓ 7 callers
Function
NewDownloadClientService
NewDownloadClientService is the constructor.
internal/service/download_clients.go:29
↓ 7 callers
Function
NewQBitClient
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 callers
Method
OrganizeMedia
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 callers
Function
OrganizeResultNeedsVisibilitySync
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 callers
Method
Save
Save inserts or updates a sign-in row.
internal/repository/bot_repo.go:94
↓ 7 callers
Method
SetKickedByUser
SetKickedByUser marks every device for a user as kicked/un-kicked.
internal/repository/bot_repo.go:204
↓ 7 callers
Method
SetSessionTracker
(tracker *SessionTrackerService)
internal/service/device_service.go:49
↓ 7 callers
Function
SubscriptionLocalAvailability
(ctx context.Context, repo *repository.Container, sub *model.Subscription)
internal/service/local_availability.go:53
↓ 7 callers
Function
UserIsProtectedAccount
UserIsProtectedAccount reports whether a user is protected from destructive Bot/device-policy operations.
internal/service/bot_settings.go:164
↓ 7 callers
Method
add
(value string)
internal/service/strm_tree_import.go:209
↓ 7 callers
Function
addScanError
(res *ScanResult, path string, err error)
internal/service/scanner.go:176
↓ 7 callers
Function
apiErrorMessage
(err: unknown, fallback: string)
web/src/pages/strmPageUtils.ts:1
↓ 7 callers
Function
apiErrorMessage
(err: unknown, fallback: string)
web/src/pages/cloudBrowserModel.ts:11
↓ 7 callers
Method
categoryMap
()
internal/service/media_classifier.go:209
↓ 7 callers
Function
compactUniqueStrings
(values ...string)
internal/service/subscription_site_search_helpers.go:157
↓ 7 callers
Method
deleteTelegramSourceMessage
(channel *model.NotifyChannel, chatID, messageID int)
internal/service/telegram_reply.go:70
↓ 7 callers
Function
downloadClientRPCURL
(clientType, host string)
internal/service/download_client_endpoint.go:84
↓ 7 callers
Function
durationMilliseconds
(d time.Duration)
internal/handler/cloud_playback.go:279
↓ 7 callers
Function
externalIDHintsFromText
(raw string)
internal/service/external_id_hints.go:26
↓ 7 callers
Method
finalizePendingAvailability
(sub *model.Subscription, out LocalAvailability)
internal/service/subscription_availability.go:152
↓ 7 callers
Method
findChannelForMessage
(ctx context.Context, msg *TelegramMessage)
internal/service/telegram_channel_resolve.go:42
↓ 7 callers
Method
generateCode
── 兑换码 ────────────────────────────────────────────────────────────────── generateCode creates a random redemption code of the given kind. durationDay
internal/service/bot_features.go:115
↓ 7 callers
Function
groupSeries
(items: Media[] = [])
web/src/utils/groupSeries.ts:251
↓ 7 callers
Function
isHTTPish
(raw string)
internal/service/image_proxy_paths.go:78
↓ 7 callers
Function
isSeriesLibraryType
(mediaType string)
internal/service/organizer_paths.go:247
↓ 7 callers
Function
logSubscriptionInfo
(svc *service.Container, msg string, fields ...zap.Field)
internal/handler/subscription_logging.go:42
↓ 7 callers
Function
logSubscriptionWarn
(svc *service.Container, msg string, fields ...zap.Field)
internal/handler/subscription_logging.go:49
↓ 7 callers
Function
mediaReleaseOrderSQL
(desc bool)
internal/service/media_release_sort.go:27
↓ 7 callers
Function
newStreamTestRepo
(t *testing.T)
internal/service/stream_test.go:279
↓ 7 callers
Function
normalizeProxyURL
(raw, proxyKind string)
internal/service/proxy.go:102
↓ 7 callers
Method
publish
(task BackgroundTask)
internal/service/task_tracker.go:191
↓ 7 callers
Method
release
(limiter chan struct{})
internal/service/ffprobe.go:155
↓ 7 callers
Function
runSystemUpdateCommand
(ctx context.Context, name string, args ...string)
internal/service/system_update_command.go:47
↓ 7 callers
Function
samePath
(a, b string)
internal/service/local_metadata_helpers.go:85
↓ 7 callers
Function
scanTaskMetrics
(res *service.ScanResult)
internal/handler/media_scan.go:130
↓ 7 callers
Function
sortedMediaTitles
(rows []model.Media)
internal/service/media_visibility_test.go:255
↓ 7 callers
Function
str
str safely extracts a string from an interface{} loaded from JSON.
internal/service/notify_channels.go:264
↓ 7 callers
Function
stripHTML
stripHTML 移除 HTML 标签。
internal/service/site_adapter_parse.go:48
↓ 7 callers
Function
strmRefreshScrapeSkipReason
(refresh *service.STRMRefreshResult)
internal/handler/strm.go:410
↓ 7 callers
Function
subscriptionAllowsWash
(sub *model.Subscription)
internal/service/subscription_rules.go:85
↓ 7 callers
Function
subscriptionName
(sub *model.Subscription)
internal/service/subscription_availability.go:183
↓ 7 callers
Function
telegramMethodURL
(cfg map[string]string, botToken, method string)
internal/service/telegram_api_client.go:29
↓ 7 callers
Function
telegramPostJSON
(ctx context.Context, cfg map[string]string, method string, payload any, timeout time.Duration)
internal/service/telegram_api.go:25
↓ 7 callers
Function
titleCaseWords
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 callers
Function
trimPath
(raw: string)
web/src/pages/strmPageModel.ts:196
↓ 7 callers
Function
unsafeAutomaticEpisodeQuery
(query string)
internal/service/scraper_query.go:133
↓ 7 callers
Function
writeInternalOrCanceled
(c *gin.Context, err error)
internal/handler/request_cancel.go:23
↓ 7 callers
Function
writeTemp
(t *testing.T, dir, name, content string)
internal/service/transfer_test.go:31
↓ 6 callers
Method
AnyEnabled
AnyEnabled reports whether at least one provider can run.
internal/service/scraper_service.go:85
↓ 6 callers
Function
BuildCloudAutoCategoryLibraryPathWithScanDir
(provider, scanDir, displayDir string)
internal/service/cloud_auto_category.go:19
↓ 6 callers
Function
CloudLibraryDisplayName
(lib model.Library)
internal/service/cloud_mount_display.go:45
↓ 6 callers
Function
CloudLibraryShadowed
(libs []model.Library, lib model.Library)
internal/service/cloud_mount.go:109
↓ 6 callers
Function
CloudPlaybackMode
(ctx context.Context, repo *repository.Container)
internal/service/stream_cloud_settings.go:49
↓ 6 callers
Method
Compute
Compute builds a fresh snapshot.
internal/service/stats.go:67
↓ 6 callers
Method
Configure
Configure rotates the client to a new endpoint and re-auths next call.
internal/service/qbittorrent.go:93
↓ 6 callers
Method
Create
Create persists a new site.
internal/service/site_crud.go:16
↓ 6 callers
Method
DeletePrefix
(ctx context.Context, prefix string)
internal/service/runtime_cache.go:115
↓ 6 callers
Method
Effective
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 callers
Method
FindByUserID
FindByUserID returns the permission record for a user, or (nil, nil) when absent.
internal/repository/permission_repository.go:23
↓ 6 callers
Method
FindUser
FindUser 用 ID 查用户,用于 /Users/Me 与 /Users/{id}。
internal/service/emby_system.go:74
↓ 6 callers
Method
Flush
()
internal/service/scanner_local_write_batch.go:50
↓ 6 callers
Function
GetUserID
GetUserID extracts the user ID from the Gin context.
internal/middleware/roles.go:35
↓ 6 callers
Function
GetUserTier
GetUserTier extracts the user tier from the Gin context.
internal/middleware/roles.go:51
↓ 6 callers
Method
History
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 callers
Function
IsCloudType
IsCloudType reports whether typ is a cloud-disk provider.
internal/service/cloud/cloud.go:108
↓ 6 callers
Method
IssueExternalPlaybackToken
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 callers
Method
LatestItems
LatestItems 最近添加,全库或指定库。
internal/service/emby_items_detail.go:75
↓ 6 callers
Function
MergedLibraryIDs
(libs []model.Library, target model.Library)
internal/service/cloud_mount_scope.go:30
↓ 6 callers
Function
MergedLibraryIDsForLibrary
(ctx context.Context, repo *repository.Container, libraryID string)
internal/service/cloud_mount_scope.go:11
↓ 6 callers
Function
NewInternalHTTPClient
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 callers
Function
NewMTeamAdapter
NewMTeamAdapter 创建 MTeam 适配器。
internal/service/site_adapter_mteam.go:24
↓ 6 callers
Function
Open
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 callers
Method
PrefetchRemote
(ctx context.Context, raw string)
internal/service/image_proxy_remote.go:19
↓ 6 callers
Method
RecordPlayback
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 callers
Method
ServeFile
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 callers
Function
UserDefaultMediaVisibility
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 callers
Function
addUploadError
(result *CloudUploadResult, source, target string, err error)
internal/service/storage_upload.go:240
↓ 6 callers
Function
apiErrorMessage
(err: unknown, fallback: string)
web/src/pages/SubscriptionsPage.tsx:251
↓ 6 callers
Method
applyRenewal
applyRenewal renews a user account and clears any expiry-related suspension.
internal/service/bot_features.go:209
↓ 6 callers
Function
blankDash
(value string)
internal/service/telegram_mgo_compat.go:64
↓ 6 callers
Function
channelSubscribes
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 callers
Function
classifyMediaCategory
(input mediaClassifyInput, categories map[string]string)
internal/service/media_classifier.go:31
↓ 6 callers
Function
cloneDirectLink
(link *cloud.DirectLink)
internal/service/storage_cloud_resolve.go:207
↓ 6 callers
Method
cloudImageCachePaths
(stableKey string)
internal/service/image_proxy_cache.go:71
↓ 6 callers
Function
copyModelTables
(src, target *gorm.DB, batchSize int)
internal/database/sqlite_migration_copy.go:16
↓ 6 callers
Function
currentOrigin
()
web/src/pages/strmPageModel.ts:5
↓ 6 callers
Method
deleteTelegramBindings
(ctx context.Context, query string, args ...interface{})
internal/service/telegram_unbind.go:179
↓ 6 callers
Function
doRequestJSON
─── 辅助函数 ──────────────────────────────────────────────────────────────── doRequestJSON 执行 JSON 请求。
internal/service/site_adapter.go:210
↓ 6 callers
Function
embyEmptyArrayHandler
(_ *service.Container)
internal/handler/emby_static.go:110
↓ 6 callers
Function
embyItemImageHandler
embyItemImageHandler 把 /Items/{id}/Images/Primary 等请求直接输出为图片。 Emby 客户端缓存图片 URL 时经常不会继续携带 token;如果重定向到受保护的 api/img 会变成 401,所以这里复用 ImageProxy 但不再走 /api
internal/handler/emby_images.go:30
↓ 6 callers
Function
embyPlayingProgressHandler
(svc *service.Container)
internal/handler/emby_playstate_handlers.go:19
↓ 6 callers
Function
embySeriesReleaseSortTime
(group embySeriesGroup)
internal/service/emby_series_ids.go:116
↓ 6 callers
Function
embyWithRequestAddress
(c *gin.Context, payload map[string]any)
internal/handler/emby_system.go:47
↓ 6 callers
Method
findMgoBotUser
(ctx context.Context, target string)
internal/service/telegram_mgo_compat.go:21
↓ 6 callers
Function
formatCleanupRules
(rules []accountCleanupRule)
internal/service/telegram_cleanup_rules.go:111
← previous
next →
301–400 of 5,617, ranked by callers