MCPcopy Create free account

hub / github.com/GakkiNoOne/oai-rt / functions

Functions194 in github.com/GakkiNoOne/oai-rt

↓ 85 callersFunctionInfo
Info 记录info日志
pkg/logger/logger.go:61
↓ 56 callersFunctionError
Error 记录error日志
pkg/logger/logger.go:71
↓ 32 callersMethodSet
(key, value string)
internal/repository/config_repository.go:13
↓ 16 callersFunctionWarn
Warn 记录warn日志
pkg/logger/logger.go:66
↓ 12 callersFunctionloadData
()
frontend/src/pages/RTs/index.tsx:73
↓ 10 callersFunctionGet
Get 获取配置
internal/config/config.go:115
↓ 10 callersMethodUpdate
(id int64, updates map[string]interface{})
internal/service/rt_service.go:31
↓ 7 callersMethodGetByBizId
(bizId string)
internal/service/rt_service.go:33
↓ 6 callersFunctionhandleCopyToken
(token: string)
frontend/src/pages/RTs/index.tsx:239
↓ 5 callersMethodGetByID
(id int64)
internal/service/rt_service.go:32
↓ 5 callersFunctionGetManager
GetManager 获取全局管理器实例
internal/scheduler/manager.go:41
↓ 5 callersFunctiongetEnv
getEnv 获取环境变量,如果不存在则返回默认值
internal/service/config_service.go:325
↓ 4 callersMethodGetByKey
(key string)
internal/repository/config_repository.go:12
↓ 4 callersMethodGetConfig
GetConfig 获取单个配置
internal/service/config_service.go:186
↓ 4 callersMethodStart
Start 启动调度器
internal/scheduler/manager.go:49
↓ 4 callersFunctioncreateTLSClient
createTLSClient 创建带有 Firefox TLS 指纹的客户端
internal/service/rt_service.go:425
↓ 3 callersMethodCreate
(rt *model.RT)
internal/service/rt_service.go:30
↓ 3 callersMethodCreate
(rt *model.RT)
internal/repository/rt_repository.go:14
↓ 3 callersFunctionDebug
Debug 记录debug日志
pkg/logger/logger.go:56
↓ 3 callersMethodGetByEmail
(email string)
internal/service/rt_service.go:34
↓ 3 callersMethodList
(page, pageSize int, name string, tag string, email string, typeStr string, enabled *bool, createDate string)
internal/service/rt_service.go:35
↓ 3 callersMethodStop
Stop 停止调度器
internal/scheduler/manager.go:69
↓ 3 callersFunctiongenerateRandomID
generateRandomID 生成32位UUID(去掉破折号)
internal/service/rt_service.go:846
↓ 3 callersFunctionrenderTruncatedText
(text: string | null | undefined, options?: { withCopy?: boolean, codeStyle?: boolean, maxLength
frontend/src/pages/RTs/index.tsx:245
↓ 2 callersMethodAutoRefreshAll
()
internal/scheduler/manager.go:17
↓ 2 callersMethodBatchDelete
(ids []int64)
internal/service/rt_service.go:37
↓ 2 callersMethodDelete
(id int64)
internal/service/rt_service.go:36
↓ 2 callersFunctionFatal
Fatal 记录fatal日志
pkg/logger/logger.go:76
↓ 2 callersMethodGetByToken
(token string)
internal/repository/rt_repository.go:23
↓ 2 callersMethodGetClientIdList
()
internal/service/config_service.go:19
↓ 2 callersFunctionGetDB
GetDB 获取数据库实例
internal/database/database.go:84
↓ 2 callersMethodGetProxyList
()
internal/service/config_service.go:18
↓ 2 callersMethodGetSystemConfigs
()
internal/service/config_service.go:16
↓ 2 callersFunctionNewConfigRepository
NewConfigRepository 创建配置仓库实例
internal/repository/config_repository.go:23
↓ 2 callersFunctionNewConfigService
NewConfigService 创建配置服务实例
internal/service/config_service.go:30
↓ 2 callersFunctionNewRTRepository
NewRTRepository 创建 RT 仓库实例
internal/repository/rt_repository.go:31
↓ 2 callersFunctionNewRTService
NewRTService 创建 RT 服务实例
internal/service/rt_service.go:52
↓ 2 callersFunctionNewScheduler
NewScheduler 创建调度器实例
internal/scheduler/scheduler.go:19
↓ 2 callersMethodRefresh
(id int64, refreshUserInfo, refreshAccountInfo bool)
internal/service/rt_service.go:38
↓ 2 callersMethodUpdateFromConfig
UpdateFromConfig 根据配置更新调度器状态
internal/scheduler/manager.go:129
↓ 2 callersMethodfetchAccountInfo
fetchAccountInfo 获取账号信息
internal/service/rt_service.go:519
↓ 2 callersMethodfetchUserInfo
fetchUserInfo 获取用户信息
internal/service/rt_service.go:440
↓ 2 callersFunctionwithPrefix
withPrefix 为表名添加前缀
internal/model/rt.go:20
↓ 1 callersFunctionAPISecret
APISecret API密钥认证中间件
internal/middleware/api_secret.go:12
↓ 1 callersMethodBatchImport
(batchName string, tag string, proxy string, clientID string, tokens []string, proxyList []string, clientIdLis
internal/service/rt_service.go:42
↓ 1 callersMethodBatchRefresh
(ids []int64)
internal/service/rt_service.go:41
↓ 1 callersMethodBatchRefresh
BatchRefresh 批量刷新
internal/service/rt_service.go:679
↓ 1 callersMethodBatchSet
(configs map[string]string)
internal/repository/config_repository.go:15
↓ 1 callersFunctionCORS
CORS 跨域中间件
internal/middleware/cors.go:8
↓ 1 callersFunctionClose
Close 关闭数据库连接
internal/database/database.go:89
↓ 1 callersMethodDelete
(id int64)
internal/repository/rt_repository.go:20
↓ 1 callersMethodDelete
Delete 删除 RT 记录
internal/repository/rt_repository.go:129
↓ 1 callersMethodGetAll
()
internal/repository/config_repository.go:14
↓ 1 callersMethodGetByIDs
(ids []int64)
internal/repository/rt_repository.go:22
↓ 1 callersMethodGetByKey
GetByKey 根据key获取配置
internal/repository/config_repository.go:28
↓ 1 callersFunctionGetDistFS
GetDistFS 获取嵌入的前端文件系统
internal/web/embed.go:17
↓ 1 callersMethodGetInterval
GetInterval 获取当前刷新间隔(天)
internal/scheduler/manager.go:122
↓ 1 callersFunctionInit
Init 初始化日志
pkg/logger/logger.go:12
↓ 1 callersFunctionInit
Init 初始化数据库连接
internal/database/database.go:20
↓ 1 callersFunctionInit
Init 初始化配置
internal/config/config.go:66
↓ 1 callersFunctionInitManager
InitManager 初始化全局管理器(只调用一次)
internal/scheduler/manager.go:30
↓ 1 callersMethodIsRunning
IsRunning 检查调度器是否运行
internal/scheduler/manager.go:115
↓ 1 callersFunctionJWTAuth
JWTAuth JWT认证中间件(支持JWT Token和API Secret两种方式)
internal/middleware/auth.go:14
↓ 1 callersMethodList
List 获取列表
internal/service/rt_service.go:217
↓ 1 callersFunctionLogger
Logger 日志中间件
internal/middleware/logger.go:36
↓ 1 callersFunctionNewAuthHandler
NewAuthHandler 创建认证处理器
internal/api/handler/auth.go:15
↓ 1 callersFunctionNewConfigHandler
NewConfigHandler 创建配置处理器实例
internal/api/handler/config.go:17
↓ 1 callersFunctionNewPublicAPIHandler
NewPublicAPIHandler 创建对外API处理器
internal/api/handler/public_api.go:18
↓ 1 callersFunctionNewRTHandler
NewRTHandler 创建 RT 处理器实例
internal/api/handler/rt.go:21
↓ 1 callersFunctionNewRouter
NewRouter 创建路由
internal/api/router.go:16
↓ 1 callersFunctionRecovery
Recovery 恢复中间件
internal/middleware/recovery.go:11
↓ 1 callersMethodRefresh
Refresh 刷新单个RT
internal/service/rt_service.go:267
↓ 1 callersMethodRefreshAccountInfo
(id int64)
internal/service/rt_service.go:40
↓ 1 callersMethodRefreshUserInfo
(id int64)
internal/service/rt_service.go:39
↓ 1 callersMethodRestart
Restart 重启调度器(更新间隔)
internal/scheduler/manager.go:89
↓ 1 callersMethodSaveSystemConfigs
(configs map[string]string)
internal/service/config_service.go:17
↓ 1 callersFunctionSetTablePrefix
SetTablePrefix 设置表名前缀
internal/model/rt.go:10
↓ 1 callersFunctionSetupStaticRoutes
SetupStaticRoutes 设置静态文件路由
internal/web/embed.go:26
↓ 1 callersMethodStop
Stop 停止定时任务
internal/scheduler/scheduler.go:60
↓ 1 callersFunctionSync
Sync 刷新日志缓冲
pkg/logger/logger.go:81
↓ 1 callersFunctioncopyToClipboard
(text: string, index: string)
frontend/src/pages/ApiDocs/index.tsx:13
↓ 1 callersFunctioncreateHTTPClient
createHTTPClient 创建支持 HTTP/HTTPS/SOCKS5 代理的 HTTP 客户端 配置为模拟浏览器行为,避免被 Cloudflare 识别
internal/service/rt_service.go:61
↓ 1 callersFunctiongetClientIDOptions
()
frontend/src/pages/RTs/components/RTFormModal.tsx:30
↓ 1 callersFunctiongetContentType
getContentType 根据文件扩展名返回Content-Type
internal/web/embed.go:77
↓ 1 callersFunctiongetLogLevel
getLogLevel 获取日志级别
pkg/logger/logger.go:40
↓ 1 callersFunctiongetStatusTag
(enabled: boolean, record: RT)
frontend/src/pages/RTs/index.tsx:608
↓ 1 callersFunctionhandleDelete
(id: number)
frontend/src/pages/RTs/index.tsx:180
↓ 1 callersFunctionhandleEdit
(record: RT)
frontend/src/pages/RTs/index.tsx:166
↓ 1 callersFunctionhandleRefresh
(id: number, bizId: string)
frontend/src/pages/RTs/index.tsx:293
↓ 1 callersFunctionhandleRefreshAccountInfo
(id: number, bizId: string)
frontend/src/pages/RTs/index.tsx:409
↓ 1 callersFunctionhandleRefreshUserInfo
(id: number, bizId: string)
frontend/src/pages/RTs/index.tsx:393
↓ 1 callersFunctionhandleToggleStatus
(record: RT)
frontend/src/pages/RTs/index.tsx:583
↓ 1 callersFunctionisStaticFile
isStaticFile 判断是否为静态文件请求
internal/middleware/logger.go:30
↓ 1 callersFunctionloadClientIDList
()
frontend/src/pages/RTs/index.tsx:109
↓ 1 callersFunctionloadConfigs
()
frontend/src/pages/Configs/index.tsx:33
↓ 1 callersFunctionloadProxyList
()
frontend/src/pages/RTs/index.tsx:94
↓ 1 callersMethodupdateAllRTConfigs
updateAllRTConfigs 批量更新所有RT的proxy和clientId配置
internal/service/config_service.go:232
↓ 1 callersMethodupdateScheduler
updateScheduler 更新调度器状态
internal/service/config_service.go:137
↓ 1 callersMethodvalidateConfigs
validateConfigs 验证配置
internal/service/config_service.go:203
FunctionAdminLayout
()
frontend/src/layouts/index.tsx:18
next →1–100 of 194, ranked by callers