MCPcopy Create free account

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

Functions595 in github.com/alove77580/ai-getaway

↓ 326 callersFunctionError
(c *gin.Context, status int, message string)
response/response.go:25
↓ 108 callersFunctionOK
(c *gin.Context, data interface{})
response/response.go:17
↓ 32 callersMethodCreate
(c *gin.Context)
controller/docs.go:78
↓ 31 callersMethodDelete
(c *gin.Context)
controller/docs.go:129
↓ 27 callersMethodUpdate
(c *gin.Context)
controller/docs.go:101
↓ 17 callersFunctionloadSettings
(db *gorm.DB)
controller/settings.go:389
↓ 15 callersFunctionCreated
(c *gin.Context, data interface{})
response/response.go:21
↓ 15 callersFunctionensureSystemSettingColumns
(db *gorm.DB)
controller/settings.go:275
↓ 14 callersMethodClose
()
upstream/proxy.go:631
↓ 13 callersFunctionHasActiveSubscription
(user model.User, now time.Time)
service/subscription.go:11
↓ 13 callersFunctiongetEnv
(key, fallback string)
config/config.go:103
↓ 11 callersFunctionfillUsage
(db *gorm.DB, log *model.APILog, body []byte, groupMultipliers ...any)
upstream/proxy.go:518
↓ 9 callersFunctionHasBalanceAccess
(user model.User, now time.Time)
service/subscription.go:44
↓ 9 callersFunctionapplyPagination
(query *gorm.DB, page, pageSize int)
controller/admin.go:425
↓ 9 callersFunctionparsePageParams
(c *gin.Context, defaultPageSize int)
controller/admin.go:410
↓ 8 callersMethodGet
(c *gin.Context)
controller/settings.go:120
↓ 8 callersFunctioncapAPILogCost
(log *model.APILog, remainingUSDCents int64)
service/quota.go:512
↓ 8 callersMethodoauthResultURL
(c *gin.Context, token, message string)
controller/oauth.go:565
↓ 7 callersFunctionCancelQuotaReservation
(db *gorm.DB, reservationID uint, now time.Time)
service/quota.go:485
↓ 7 callersFunctionDirectPublicChannelPeriod
(value string)
service/subscription.go:78
↓ 7 callersFunctionactiveSubscriptionBlocksPlanOrderAt
(db *gorm.DB, user model.User, targetPlan model.Plan, now time.Time, usedSince func(*gorm.DB, uint, time.Time)
controller/order.go:491
↓ 7 callersFunctionfallback
(value, backup string)
service/mailer.go:524
↓ 7 callersFunctionqueryInt
(c *gin.Context, key string, fallback int)
controller/usage.go:288
↓ 6 callersFunctionHasDirectPublicChannelAccess
(user model.User, now time.Time)
service/subscription.go:27
↓ 6 callersFunctionHashPassword
(password string)
utils/security.go:20
↓ 6 callersFunctionHashToken
(token string)
utils/security.go:65
↓ 6 callersFunctionSupportsProtocol
(supportsGPT, supportsClaude bool, protocol string)
service/plan_delivery.go:23
↓ 6 callersFunctionemailAllowedByWhitelist
(email string, whitelistJSON string)
controller/settings.go:580
↓ 6 callersFunctionfallbackMultiplier
(value float64)
controller/admin.go:2092
↓ 6 callersFunctionfallbackPlanType
(value string)
controller/admin.go:1849
↓ 6 callersFunctionfallbackQuotaPeriod
(value string)
controller/admin.go:1859
↓ 6 callersFunctionorderTypeForPlan
(db *gorm.DB, user model.User, targetPlan model.Plan, now time.Time, usedSince func(*gorm.DB, uint, time.Time)
controller/order.go:278
↓ 6 callersFunctionparseFloat
(value string)
service/system_load_linux.go:120
↓ 6 callersFunctionpaymentOrderUpdates
(status string, payment *epayPaymentResult, now time.Time)
controller/order.go:866
↓ 5 callersFunctionActiveReservedUSDCentsSinceSource
(db *gorm.DB, userID uint, since time.Time, excludeReservationID uint, source string, includeLegacy bool)
service/quota.go:245
↓ 5 callersFunctionEncodeGroupMultipliers
(values map[string]float64)
service/model_pricing.go:299
↓ 5 callersFunctionPlanQuotaStartAt
(db *gorm.DB, user model.User, now time.Time)
service/subscription.go:70
↓ 5 callersFunctionQuotaUsageWindow
(period string, activeFrom *time.Time, now time.Time)
service/quota.go:210
↓ 5 callersMethodRead
(p []byte)
upstream/proxy.go:616
↓ 5 callersFunctionSubscriptionStartAt
(db *gorm.DB, user model.User, now time.Time)
service/subscription.go:49
↓ 5 callersFunctionUSDmicrosToCents
(micros int64)
service/model_pricing.go:403
↓ 5 callersFunctionapplyApprovedSubscription
(db *gorm.DB, order *model.Order, plan model.Plan, now time.Time)
controller/order.go:889
↓ 5 callersFunctioncapUsedUSDCents
(used int64, limit int64)
service/quota.go:271
↓ 5 callersFunctiondropColumnIfExists
(db *gorm.DB, value interface{}, name string)
database/database.go:320
↓ 5 callersFunctionexpirePendingPaymentOrder
(db *gorm.DB, order *model.Order)
controller/order.go:770
↓ 5 callersFunctionfirstResultString
(result map[string]interface{}, keys ...string)
controller/order.go:1194
↓ 5 callersFunctionhandlePaidOrderAlreadyProcessed
(db *gorm.DB, order *model.Order, payment *epayPaymentResult)
controller/order.go:956
↓ 5 callersMethodloadUpstreamChannel
(id uint)
controller/admin.go:1726
↓ 5 callersFunctionnormalizeBalanceRechargeRate
(value float64)
controller/settings.go:494
↓ 5 callersFunctionnotificationFingerprint
(eventType string, userID *uint, orderID *uint, to string, suffix string)
service/mailer.go:505
↓ 5 callersFunctionrunBackgroundJob
(cfg config.Config, redisClient *redis.Client, name string, ttl time.Duration, fn func())
database/database.go:308
↓ 5 callersFunctionsubscriptionExpiresAtForOrder
(user model.User, plan model.Plan, orderType string, now time.Time)
controller/order.go:936
↓ 5 callersFunctionsystemSettingColumnExists
(db *gorm.DB, column string)
controller/settings.go:379
↓ 4 callersFunctionBillUsageWithContext
(db *gorm.DB, modelName string, inputTokens, cachedInputTokens, outputTokens, totalTokens int64, ctx BillingCo
service/model_pricing.go:161
↓ 4 callersFunctionDeductPlanChannelQuota
(tx *gorm.DB, plan model.Plan)
service/plan_delivery.go:71
↓ 4 callersFunctionGenerateOrderNo
(userID uint, now time.Time)
model/models.go:164
↓ 4 callersFunctionHasCallableAccess
(user model.User, now time.Time)
service/subscription.go:40
↓ 4 callersFunctionNormalizeChannelMonitorInterval
(seconds int)
service/channel_monitor.go:26
↓ 4 callersFunctionParseGroupMultipliers
(raw string)
service/model_pricing.go:276
↓ 4 callersFunctionPlanQuotaUsageFrom
(db *gorm.DB, userID uint, plan *model.Plan, activeFrom *time.Time, now time.Time)
service/quota.go:60
↓ 4 callersFunctionQuotaAllowsRequest
(usage QuotaUsage)
service/quota.go:53
↓ 4 callersFunctionSendOrderApprovedUserNotification
(db *gorm.DB, orderID uint, adminNote string)
service/mailer.go:300
↓ 4 callersFunctionSendOrderPaymentAdminNotification
(db *gorm.DB, orderID uint)
service/mailer.go:232
↓ 4 callersMethodWrite
(p []byte)
service/runtime_log.go:41
↓ 4 callersFunctionapplyDynamicOutputLimit
(db *gorm.DB, req *http.Request, info requestInfo, reservedUSDCents int64, billingCtx service.BillingContext,
upstream/proxy.go:395
↓ 4 callersFunctionclampInt
(value, minValue, maxValue int)
controller/usage.go:296
↓ 4 callersFunctiondoJSON
(req *http.Request, target interface{})
controller/oauth.go:501
↓ 4 callersFunctionexpirePendingPaymentOrders
(db *gorm.DB)
controller/order.go:757
↓ 4 callersFunctionfallbackDurationDays
(req planRequest)
controller/admin.go:1872
↓ 4 callersMethodissueOAuthToken
(user model.User)
controller/oauth.go:308
↓ 4 callersMethodloadUpstream
(userID uint, accessType string)
controller/api_key.go:68
↓ 4 callersFunctionnormalizeMockAPIOnlineBase
(value int)
controller/settings.go:484
↓ 4 callersFunctionnormalizeOAuthProvider
(provider string)
controller/oauth.go:593
↓ 4 callersFunctionorderPaymentAdminRecipients
(setting model.SystemSetting, admins []model.User)
service/mailer.go:264
↓ 4 callersFunctionorderPlanID
(order *model.Order)
controller/order.go:929
↓ 4 callersFunctionpendingOrderPaymentMethodUpdates
(order model.Order, paymentMethod string, userID uint)
controller/order.go:331
↓ 4 callersFunctionproxyAccessSource
(source string)
upstream/proxy.go:319
↓ 4 callersMethodrequestBaseURL
(c *gin.Context)
controller/oauth.go:575
↓ 4 callersFunctionroundOneDecimal
(value float64)
service/system_load_common.go:5
↓ 4 callersFunctionsameUintPointer
(left, right *uint)
controller/admin.go:1829
↓ 3 callersFunctionAPILogUSDCents
(log *model.APILog)
service/quota.go:499
↓ 3 callersFunctionCurrentClusterNode
(cfg config.Config)
service/cluster_registry.go:107
↓ 3 callersFunctionFindModelPricing
(db *gorm.DB, modelName string)
service/model_pricing.go:318
↓ 3 callersFunctionNewMailer
(settings model.SystemSetting)
service/mailer.go:64
↓ 3 callersFunctionOfficialOpenAIModelPrices
()
service/model_pricing.go:54
↓ 3 callersFunctionResolveBillingGroupMultiplier
(db *gorm.DB, pricing model.ModelPricing, ctx BillingContext)
service/model_pricing.go:237
↓ 3 callersFunctionSeedEmailTemplates
(db *gorm.DB)
service/mailer.go:183
↓ 3 callersMethodSendHTML
(email, subject, html string)
service/mailer.go:102
↓ 3 callersFunctionUsedUSDCentsSinceSource
(db *gorm.DB, userID uint, since time.Time, source string, includeLegacy bool)
service/quota.go:222
↓ 3 callersFunctionVerifySlideCaptcha
(redisClient *redis.Client, challengeID string, x int)
controller/captcha.go:67
↓ 3 callersFunctionallowAPIKey
(redisClient *redis.Client, apiKeyID uint, limitPerMinute int)
middleware/api_key.go:90
↓ 3 callersFunctionapiError
(message, props = {})
frontend/src/api/client.js:118
↓ 3 callersFunctionbetween
(value, start, end string)
response/response.go:198
↓ 3 callersFunctioncompletePaidOrder
(db *gorm.DB, order *model.Order, payment *epayPaymentResult, approvedByID *uint)
controller/order.go:782
↓ 3 callersMethodcreateOrUpdateOAuthAccount
(userID uint, profile oauthProfile)
controller/oauth.go:269
↓ 3 callersFunctiondefaultAPIEndpointsJSON
()
controller/settings.go:501
↓ 3 callersFunctionemailWhitelistErrorMessage
(whitelistJSON string)
controller/auth.go:163
↓ 3 callersFunctionfiletimeToUint64
(value filetime)
service/system_load_windows.go:97
↓ 3 callersFunctionfinalizeUsageLog
(db *gorm.DB, hub *service.LogHub, log *model.APILog, start time.Time, reservationID uint, groupMultipliers ..
upstream/proxy.go:698
↓ 3 callersFunctionfirstGroupMultipliers
(values []any)
upstream/proxy.go:812
next →1–100 of 595, ranked by callers