MCPcopy Create free account

hub / github.com/alove77580/ai-getaway / functions

Functions595 in github.com/alove77580/ai-getaway

↓ 2 callersFunctionparseAnnouncementTime
(value string)
controller/announcement.go:155
↓ 2 callersFunctionparseMoneyCents
(value string)
controller/order.go:1204
↓ 2 callersFunctionparseRequestInfo
(req *http.Request, maxBodyBytes int64)
upstream/proxy.go:357
↓ 2 callersFunctionpingChannelMonitor
(db *gorm.DB, monitor model.ChannelMonitor)
service/channel_monitor.go:96
↓ 2 callersFunctionpostOpenAIToken
(ctx context.Context, values url.Values)
service/openai_oauth.go:510
↓ 2 callersFunctionpriceRequestMicros
(usd float64, multiplier float64)
service/model_pricing.go:417
↓ 2 callersFunctionpublicUser
(user model.User)
controller/auth.go:342
↓ 2 callersFunctionregisterClusterNode
(cfg config.Config, redisClient *redis.Client)
service/cluster_registry.go:125
↓ 2 callersFunctionrequestType
(path string, stream bool)
upstream/proxy.go:732
↓ 2 callersMethodresetUserPlanQuota
(userID uint, now time.Time)
controller/admin.go:1809
↓ 2 callersFunctionrunChannelMonitorJob
(cfg config.Config, db *gorm.DB, redisClient *redis.Client)
service/channel_monitor.go:58
↓ 2 callersFunctionscalePart
(value int64, targetMicros int64, currentMicros int64)
service/quota.go:566
↓ 2 callersFunctionshouldRecordUsageResponse
(statusCode int)
upstream/proxy.go:728
↓ 2 callersFunctionslideCaptchaKey
(challengeID string)
controller/captcha.go:108
↓ 2 callersMethodstartOAuth
(c *gin.Context, mode string, userID uint)
controller/oauth.go:68
↓ 2 callersFunctiontestEndpointSpeed
(parent context.Context, target string)
controller/endpoint_speed.go:83
↓ 2 callersFunctionusageProgress
(used *float64, resetSeconds *int, windowMinutes *int, base time.Time)
service/openai_oauth.go:491
↓ 2 callersFunctionusageRangeStart
(value string)
controller/usage.go:306
↓ 2 callersFunctionvalidateEpayPayment
(setting model.SystemSetting, order model.Order, payment *epayPaymentResult)
controller/order.go:1130
↓ 2 callersMethodvalidatePlanRequest
(req planRequest)
controller/admin.go:1948
↓ 2 callersFunctionwriteFreeOrderError
(c *gin.Context, err error)
controller/order.go:311
↓ 1 callersFunctionActiveAPIConnections
()
service/metrics.go:36
↓ 1 callersFunctionActiveReservedUSDCentsSince
(db *gorm.DB, userID uint, since time.Time, excludeReservationID uint)
service/quota.go:241
↓ 1 callersFunctionAdminOnly
()
middleware/auth.go:48
↓ 1 callersFunctionAutoMigrate
(db *gorm.DB)
database/database.go:39
↓ 1 callersFunctionBalanceQuotaUsage
(user model.User, now time.Time)
service/quota.go:159
↓ 1 callersFunctionBeginQuotaReservation
(db *gorm.DB, user model.User, apiKeyID uint, now time.Time)
service/quota.go:347
↓ 1 callersMethodBroadcast
(event LogEvent)
service/log_hub.go:32
↓ 1 callersFunctionCompleteQuotaReservationWithAPILog
(db *gorm.DB, reservationID uint, log *model.APILog, now time.Time)
service/quota.go:407
↓ 1 callersMethodCreate
(c *gin.Context)
controller/order.go:158
↓ 1 callersMethodCreate
Create 仅当用户尚无任何密钥时创建第一条(全站每用户仅保留一条记录)。
controller/api_key.go:128
↓ 1 callersFunctionCreateAPILogWithinPlanQuota
(db *gorm.DB, log *model.APILog, now time.Time)
service/quota.go:278
↓ 1 callersFunctionCurrentSystemLoad
()
service/metrics.go:44
↓ 1 callersFunctionDirectPublicChannelQuotaUsageFrom
(db *gorm.DB, userID uint, channel *model.PublicChannel, period string, activeFrom *time.Time, now time.Time)
service/quota.go:132
↓ 1 callersFunctionExchangeOpenAIOAuthCode
(ctx context.Context, sessionID string, codeOrURL string, state string)
service/openai_oauth.go:149
↓ 1 callersFunctionFindClusterNode
(ctx context.Context, cfg config.Config, redisClient *redis.Client, instanceID string)
service/cluster_registry.go:98
↓ 1 callersFunctionGenerateOpenAIOAuthURL
()
service/openai_oauth.go:107
↓ 1 callersFunctionInitMariaDB
(cfg config.Config)
database/database.go:19
↓ 1 callersFunctionInitRedis
(cfg config.Config)
database/database.go:23
↓ 1 callersFunctionInstallRuntimeLogCapture
()
service/runtime_log.go:30
↓ 1 callersMethodList
(limit int)
service/runtime_log.go:54
↓ 1 callersFunctionLoad
()
config/config.go:37
↓ 1 callersFunctionMaskDSN
(dsn string)
config/config.go:226
↓ 1 callersFunctionNew
(cfg config.Config, db *gorm.DB, redisClient *redis.Client)
router/router.go:21
↓ 1 callersFunctionNewAPIKeyController
(cfg config.Config, db *gorm.DB)
controller/api_key.go:24
↓ 1 callersFunctionNewAdminController
(db *gorm.DB)
controller/admin.go:26
↓ 1 callersFunctionNewAnnouncementController
(db *gorm.DB)
controller/announcement.go:20
↓ 1 callersFunctionNewAuthController
(cfg config.Config, db *gorm.DB, redisClient *redis.Client)
controller/auth.go:27
↓ 1 callersFunctionNewCaptchaController
(redisClient *redis.Client)
controller/captcha.go:31
↓ 1 callersFunctionNewChannelStatusController
(db *gorm.DB)
controller/channel_status.go:20
↓ 1 callersFunctionNewDocsController
(db *gorm.DB)
controller/docs.go:19
↓ 1 callersFunctionNewEmailTemplateController
(db *gorm.DB)
controller/email_template.go:18
↓ 1 callersFunctionNewEndpointSpeedController
(db *gorm.DB)
controller/endpoint_speed.go:24
↓ 1 callersFunctionNewLoadBalancerController
(cfg config.Config, redisClient *redis.Client)
controller/load_balancer.go:34
↓ 1 callersFunctionNewLogHub
()
service/log_hub.go:28
↓ 1 callersFunctionNewModelController
(db *gorm.DB)
controller/model.go:15
↓ 1 callersFunctionNewOrderController
(cfg config.Config, db *gorm.DB)
controller/order.go:37
↓ 1 callersFunctionNewPlanController
(db *gorm.DB)
controller/plan.go:15
↓ 1 callersFunctionNewRedeemCodeController
(db *gorm.DB)
controller/redeem_code.go:20
↓ 1 callersFunctionNewSettingsController
(db *gorm.DB)
controller/settings.go:20
↓ 1 callersFunctionNewUsageController
(db *gorm.DB)
controller/usage.go:20
↓ 1 callersFunctionOpenAIUsageFromSnapshot
(raw string)
service/openai_oauth.go:355
↓ 1 callersFunctionParseJWT
(tokenString, secret string)
utils/security.go:41
↓ 1 callersFunctionPlanChannelRemainingUSDCents
(plan model.Plan)
service/plan_delivery.go:32
↓ 1 callersFunctionPlanChannelSupportsProtocol
(plan *model.Plan, protocol string)
service/plan_delivery.go:48
↓ 1 callersFunctionRefreshOpenAIUsageForPollingPoolAccount
(ctx context.Context, db *gorm.DB, accountID uint)
service/openai_oauth.go:263
↓ 1 callersFunctionResolveGroupMultiplier
(pricing model.ModelPricing, groupMultipliers any)
service/model_pricing.go:263
↓ 1 callersFunctionRunChannelMonitorNow
(db *gorm.DB, monitorID uint)
service/channel_monitor.go:64
↓ 1 callersFunctionSeed
(db *gorm.DB, cfg config.Config)
database/database.go:189
↓ 1 callersMethodSendSMTPTest
(email string)
service/mailer.go:87
↓ 1 callersFunctionSendSubscriptionExpireReminders
(db *gorm.DB)
service/mailer.go:331
↓ 1 callersMethodSendVerification
(email, code string)
service/mailer.go:68
↓ 1 callersFunctionStartChannelMonitorRunner
(cfg config.Config, db *gorm.DB, redisClient *redis.Client)
service/channel_monitor.go:39
↓ 1 callersFunctionStartClusterRegistry
(cfg config.Config, redisClient *redis.Client)
service/cluster_registry.go:62
↓ 1 callersFunctionStartOrderTimeoutCleanup
(cfg config.Config, db *gorm.DB, redisClient *redis.Client)
database/database.go:248
↓ 1 callersFunctionStartSlideCaptchaCleanup
(cfg config.Config, db *gorm.DB, redisClient *redis.Client)
database/database.go:219
↓ 1 callersFunctionStartSubscriptionExpireEmailReminder
(cfg config.Config, db *gorm.DB, redisClient *redis.Client)
database/database.go:284
↓ 1 callersFunctionSyncOfficialOpenAIModelPrices
(db *gorm.DB)
service/model_pricing.go:76
↓ 1 callersFunctionUserPlanQuotaUsage
(db *gorm.DB, user model.User, now time.Time)
service/quota.go:31
↓ 1 callersMethodValidate
()
config/config.go:71
↓ 1 callersMethodappendLocked
(message string)
service/runtime_log.go:70
↓ 1 callersFunctionapplyRedeemCodeSubscription
(tx *gorm.DB, userID uint, plan model.Plan, now time.Time, code string)
controller/admin.go:2028
↓ 1 callersFunctionapplyUpstreamCost
(db *gorm.DB, log *model.APILog, usage responseUsage, billingCtx any)
upstream/proxy.go:783
↓ 1 callersFunctionapplyUsage
(db *gorm.DB, log *model.APILog, modelName string, usage responseUsage, billingCtx any)
upstream/proxy.go:556
↓ 1 callersFunctionapprovePublicPaidOrder
(db *gorm.DB, order *model.Order, approvedByID *uint)
controller/admin.go:1451
↓ 1 callersFunctionbackfillOrderNumbers
(db *gorm.DB)
database/database.go:346
↓ 1 callersFunctionbalanceRechargeOrderName
(order model.Order)
controller/order.go:1039
↓ 1 callersFunctionbalanceRechargeRMBCents
(usdCents int64, rate float64)
controller/order.go:1046
↓ 1 callersMethodbindOAuthToUser
(userID uint, profile oauthProfile)
controller/oauth.go:247
↓ 1 callersFunctionbuildEpayURL
(c *gin.Context, cfg config.Config, setting model.SystemSetting, order model.Order)
controller/order.go:993
↓ 1 callersFunctionchannelAvailability
(summary publicChannelStatusSummary)
controller/channel_status.go:130
↓ 1 callersFunctionchannelMonitorStatusLabel
(status string)
controller/channel_status.go:138
↓ 1 callersMethodclaimedFreePlanIDs
(userID uint)
controller/auth.go:238
↓ 1 callersFunctionclassifyChannelMonitorStatus
(statusCode int, latencyMs int64)
service/channel_monitor.go:140
↓ 1 callersFunctioncleanupLegacySystemSettingColumns
(db *gorm.DB)
controller/settings.go:356
↓ 1 callersFunctionclearOAuthStateCookie
(c *gin.Context, baseURL string)
controller/oauth.go:632
↓ 1 callersFunctionclusterInternalAuth
(cfg config.Config)
router/router.go:192
↓ 1 callersFunctionclusterNodeKey
(instanceID string)
service/cluster_registry.go:240
↓ 1 callersFunctioncodeChallenge
(verifier string)
service/openai_oauth.go:588
↓ 1 callersFunctioncompleteFreePublicOrder
(db *gorm.DB, order *model.Order)
controller/order.go:393
← previousnext →201–300 of 595, ranked by callers