MCPcopy Create free account

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

Functions595 in github.com/alove77580/ai-getaway

↓ 3 callersFunctionfreeClaimedOrderStatuses
()
controller/order.go:479
↓ 3 callersFunctionisHTTPURL
(value string)
controller/endpoint_speed.go:105
↓ 3 callersFunctionmapAdminUpstream
(upstream model.UpstreamAccount)
controller/admin.go:2136
↓ 3 callersFunctionmaskDisplayAPIKey
(plaintext, prefix string)
controller/api_key.go:37
↓ 3 callersFunctionmustMarshalAPIEndpoints
(endpoints []apiEndpointSetting)
controller/settings.go:601
↓ 3 callersFunctionnormalizeEmailWhitelistJSON
(value string)
controller/settings.go:535
↓ 3 callersFunctionnumericJSONInt
(value any)
upstream/proxy.go:495
↓ 3 callersFunctionorderAccessType
(order model.Order)
controller/admin.go:2159
↓ 3 callersFunctionorderAmountCentsForPlan
(user model.User, targetPlan model.Plan, orderType string)
controller/order.go:300
↓ 3 callersFunctionparseEmailWhitelist
(value string)
controller/settings.go:547
↓ 3 callersFunctionpriceMicros
(tokens int64, usdPerMillion float64, multiplier float64)
service/model_pricing.go:410
↓ 3 callersFunctionrandomHex
(size int)
controller/captcha.go:89
↓ 3 callersFunctionrandomHex
(size int)
service/openai_oauth.go:580
↓ 3 callersFunctionreadAllLimited
(reader io.Reader, maxBytes int64)
upstream/proxy.go:377
↓ 3 callersFunctionrefreshFreePlanClaimedCount
(db *gorm.DB, planID uint)
controller/order.go:469
↓ 3 callersFunctionrenderEmailTemplateText
(text string, vars map[string]string, escapeHTML bool)
service/mailer.go:483
↓ 3 callersFunctionsendTemplateEmail
(db *gorm.DB, setting model.SystemSetting, templateType, to string, input EmailTemplateInput, extra map[string
service/mailer.go:371
↓ 3 callersFunctiontoBillingContext
(value any)
upstream/proxy.go:805
↓ 3 callersFunctionusedAPILogUSDCentsSinceSource
(db *gorm.DB, userID uint, since time.Time, source string, includeLegacy bool)
service/quota.go:230
↓ 2 callersFunctionAPIKeyAuth
(cfg config.Config, db *gorm.DB, redisClient *redis.Client)
middleware/api_key.go:20
↓ 2 callersFunctionAddActiveAPIConnection
(delta int64)
service/metrics.go:27
↓ 2 callersFunctionAuth
(cfg config.Config, db *gorm.DB)
middleware/auth.go:15
↓ 2 callersFunctionCheckPassword
(hash, password string)
utils/security.go:25
↓ 2 callersFunctionClusterSnapshotForAdmin
(ctx context.Context, cfg config.Config, redisClient *redis.Client)
service/cluster_registry.go:84
↓ 2 callersFunctionDecryptAPIKeySecret
DecryptAPIKeySecret reverses EncryptAPIKeySecret.
utils/api_key_crypto.go:42
↓ 2 callersFunctionDefaultEmailTemplates
()
service/mailer.go:193
↓ 2 callersFunctionEncryptAPIKeySecret
EncryptAPIKeySecret stores the raw API key for owner retrieval (AES-256-GCM).
utils/api_key_crypto.go:19
↓ 2 callersFunctionFetchOpenAIUsage
(ctx context.Context, accessToken string)
service/openai_oauth.go:295
↓ 2 callersFunctionGenerateAPIKey
()
utils/security.go:55
↓ 2 callersFunctionGenerateJWT
(userID uint, role string, secret string)
utils/security.go:29
↓ 2 callersFunctionNormalizeProtocol
(value string)
service/plan_delivery.go:14
↓ 2 callersFunctionPlanChannelHasQuota
(plan model.Plan)
service/plan_delivery.go:61
↓ 2 callersFunctionPlanTotalLimitUSDCents
(plan *model.Plan)
service/quota.go:175
↓ 2 callersFunctionPlanTotalQuotaUsage
(db *gorm.DB, userID uint, plan *model.Plan, start time.Time, end time.Time)
service/quota.go:98
↓ 2 callersFunctionProxyHandler
(cfg config.Config, db *gorm.DB, hub *service.LogHub)
upstream/proxy.go:31
↓ 2 callersFunctionQuotaWindow
(period string, now time.Time)
service/quota.go:195
↓ 2 callersFunctionRefreshOpenAIToken
(ctx context.Context, refreshToken string, clientID string)
service/openai_oauth.go:191
↓ 2 callersFunctionRefreshPollingPoolAccountOAuth
(db *gorm.DB, account *model.PollingPoolAccount, now time.Time)
service/openai_oauth.go:216
↓ 2 callersFunctionRunWithClusterLock
(redisClient *redis.Client, enabled bool, lockName string, owner string, ttl time.Duration, fn func())
service/cluster_lock.go:15
↓ 2 callersFunctionRuntimeLogs
(limit int)
service/runtime_log.go:37
↓ 2 callersFunctionUserAccessQuotaUsage
(db *gorm.DB, user model.User, now time.Time)
service/quota.go:39
↓ 2 callersFunctionactivePublicPlanQuotaUsedUp
(db *gorm.DB, user model.User, now time.Time, usedSince func(*gorm.DB, uint, time.Time) int64)
controller/order.go:519
↓ 2 callersFunctionactiveSubscriptionBlocksPlanOrder
(db *gorm.DB, user model.User, targetPlan model.Plan)
controller/order.go:487
↓ 2 callersFunctionapplyAccessSourceFilter
(query *gorm.DB, source string, includeLegacy bool)
service/quota.go:260
↓ 2 callersFunctionapplyBillingResult
(log *model.APILog, result service.BillingResult)
upstream/proxy.go:758
↓ 2 callersFunctionattachOpenAIUsage
(ctx context.Context, token *OpenAITokenInfo)
service/openai_oauth.go:251
↓ 2 callersFunctionbackfillOrderPaymentRefs
(db *gorm.DB)
database/database.go:329
↓ 2 callersFunctionbillingGroupResponse
(group model.BillingGroup)
controller/admin.go:2528
↓ 2 callersFunctionclaimFreePlan
(db *gorm.DB, userID, planID uint)
controller/order.go:433
↓ 2 callersFunctioncompleteFreeOrder
(db *gorm.DB, order *model.Order)
controller/order.go:354
↓ 2 callersFunctioncookieDomain
(baseURL string)
controller/oauth.go:645
↓ 2 callersFunctiondeleteEmailNotificationLog
(db *gorm.DB, id uint)
service/mailer.go:418
↓ 2 callersFunctionderiveAPIKeyAESKey
(appSecret string)
utils/api_key_crypto.go:13
↓ 2 callersFunctiondirectPublicChannelExpiresAt
(period string, now time.Time)
controller/admin.go:1836
↓ 2 callersFunctiondynamicMaxOutputTokens
(db *gorm.DB, modelName string, bodyBytes int64, reservedUSDCents int64, billingCtx service.BillingContext)
upstream/proxy.go:437
↓ 2 callersFunctionemailTemplateTypeLabels
()
controller/email_template.go:72
↓ 2 callersFunctionepayPaymentResultFromParams
(params map[string]string)
controller/order.go:1149
↓ 2 callersFunctionepayResultPaid
(result map[string]interface{})
controller/order.go:1212
↓ 2 callersFunctionepaySign
(params map[string]string, key string)
controller/order.go:1246
↓ 2 callersFunctionexpireAuth
(message)
frontend/src/api/client.js:112
↓ 2 callersFunctionfallbackBillingMode
(value string)
service/model_pricing.go:427
↓ 2 callersFunctionfallbackModelBillingMode
(value string)
controller/admin.go:2106
↓ 2 callersFunctionfallbackModelPricingStatus
(value string)
controller/admin.go:2099
↓ 2 callersFunctionfallbackProvider
(value string)
controller/admin.go:2085
↓ 2 callersFunctionfillStreamUsageLine
(db *gorm.DB, log *model.APILog, line string, groupMultipliers any)
upstream/proxy.go:687
↓ 2 callersMethodfinish
()
upstream/proxy.go:636
↓ 2 callersMethodflushLine
()
upstream/proxy.go:670
↓ 2 callersFunctiongetEnvBool
(key string, fallback bool)
config/config.go:146
↓ 2 callersFunctiongetEnvInt
(key string, fallback int)
config/config.go:110
↓ 2 callersFunctiongetEnvInt64
(key string, fallback int64)
config/config.go:122
↓ 2 callersFunctionhydrateLotteryPlanForAdmin
(plan *model.Plan)
controller/admin.go:1179
↓ 2 callersFunctionintToString
(v uint)
upstream/proxy.go:832
↓ 2 callersFunctionisAuthExpiredMessage
(message)
frontend/src/api/client.js:103
↓ 2 callersFunctionloadClusterNodes
(ctx context.Context, cfg config.Config, redisClient *redis.Client)
service/cluster_registry.go:142
↓ 2 callersFunctionloadDefaultBalanceBillingGroupID
(db *gorm.DB)
upstream/proxy.go:282
↓ 2 callersFunctionloadUserUpstreamForAccess
(db *gorm.DB, userID uint, accessType string)
upstream/proxy.go:293
↓ 2 callersMethodmapAdminChannelMonitor
(monitor model.ChannelMonitor)
controller/admin.go:2241
↓ 2 callersFunctionmapAdminPollingPool
(pool model.PollingPool)
controller/admin.go:2193
↓ 2 callersFunctionmapAdminPublicChannel
(channel model.PublicChannel)
controller/admin.go:2173
↓ 2 callersFunctionmapUsageLog
(log model.APILog)
controller/usage.go:240
↓ 2 callersFunctionmarkPaymentManualReview
(db *gorm.DB, order *model.Order, payment *epayPaymentResult, reason string)
controller/order.go:973
↓ 2 callersFunctionmaskEmail
(email string)
controller/admin.go:1194
↓ 2 callersFunctionmodelPricingSyncUpdates
(existing model.ModelPricing, pricing model.ModelPricing)
service/model_pricing.go:123
↓ 2 callersFunctionnormalizeDocSlug
(value string)
controller/docs.go:156
↓ 2 callersFunctionnormalizeEmailDomain
(value string)
controller/settings.go:571
↓ 2 callersFunctionnormalizeMessage
(message)
frontend/src/api/client.js:124
↓ 2 callersFunctionnormalizePaymentMethod
(value string)
controller/order.go:320
↓ 2 callersFunctionnormalizePollingPoolAccounts
(input []pollingPoolAccountRequest, _ bool)
controller/admin.go:2909
↓ 2 callersFunctionnormalizePricingVisibleTabsJSON
(value string)
controller/settings.go:429
↓ 2 callersFunctionnormalizeRecipientEmail
(email string)
service/mailer.go:292
↓ 2 callersFunctionnormalizedDirectPublicPeriod
(value string)
service/subscription.go:82
↓ 2 callersFunctionnormalizedFreePerUserLimit
(req planRequest)
controller/admin.go:1902
↓ 2 callersFunctionnormalizedFreeTotalLimit
(req planRequest)
controller/admin.go:1912
↓ 2 callersFunctionnormalizedPlanModelNames
(values []string)
controller/admin.go:1919
↓ 2 callersFunctionnormalizedPollingPoolID
(req planRequest)
controller/admin.go:1895
↓ 2 callersFunctionnormalizedPublicChannelID
(req planRequest)
controller/admin.go:1888
↓ 2 callersFunctionnullableUintFromJSON
(value json.RawMessage)
controller/admin.go:130
↓ 2 callersMethodoauthProvider
(providerName string, setting model.SystemSetting)
controller/oauth.go:322
↓ 2 callersMethodoauthProviderUnavailableMessage
(providerName string, setting model.SystemSetting)
controller/oauth.go:357
↓ 2 callersMethodoauthRedirectURL
(c *gin.Context, provider string)
controller/oauth.go:561
← previousnext →101–200 of 595, ranked by callers