Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alove77580/ai-getaway
/ functions
Functions
595 in github.com/alove77580/ai-getaway
⨍
Functions
595
◇
Types & classes
133
↓ 1 callers
Method
completeOAuth
(c *gin.Context, state oauthStatePayload, profile oauthProfile, setting model.SystemSetting)
controller/oauth.go:183
↓ 1 callers
Function
completePaidBalanceRechargeOrder
(db *gorm.DB, order *model.Order, payment *epayPaymentResult, approvedByID *uint)
controller/order.go:847
↓ 1 callers
Method
consume
(chunk []byte)
upstream/proxy.go:645
↓ 1 callers
Function
contains
(items []string, needle string)
config/config.go:190
↓ 1 callers
Function
cors
(cfg config.Config)
router/router.go:253
↓ 1 callers
Method
dedupeUserAPIKeys
(userID uint)
controller/api_key.go:58
↓ 1 callers
Function
defaultInstanceID
()
config/config.go:161
↓ 1 callers
Function
defaultTemplateBody
(templateType string)
service/mailer.go:496
↓ 1 callers
Function
delay
(ms)
frontend/src/stores/auth.js:69
↓ 1 callers
Function
deleteAPIKeyWithRelatedData
(db *gorm.DB, keyID uint)
controller/api_key.go:410
↓ 1 callers
Method
deleteUserWithRelatedData
(userID uint)
controller/admin.go:898
↓ 1 callers
Function
dropLegacyQuotaColumns
(db *gorm.DB)
database/database.go:312
↓ 1 callers
Function
emailFromIDToken
(idToken string)
service/openai_oauth.go:562
↓ 1 callers
Function
emailTemplateVariables
(input EmailTemplateInput, extra map[string]string)
service/mailer.go:433
↓ 1 callers
Function
emailTemplateVariablesHelp
()
controller/email_template.go:80
↓ 1 callers
Function
ensureAccessSourceColumns
(db *gorm.DB)
database/database.go:143
↓ 1 callers
Function
ensureBalanceColumns
(db *gorm.DB)
database/database.go:94
↓ 1 callers
Function
ensureOrderPlanIDNullable
(db *gorm.DB)
database/database.go:130
↓ 1 callers
Function
epayPaymentResultFromQuery
(result map[string]interface{})
controller/order.go:1173
↓ 1 callers
Function
epayQueryURL
(rawURL string)
controller/order.go:1066
↓ 1 callers
Function
estimatedTokensFromBytes
(value int64)
upstream/proxy.go:511
↓ 1 callers
Function
exchangeOAuthCode
(provider oauthProviderConfig, code, redirectURI string)
controller/oauth.go:391
↓ 1 callers
Function
extractOAuthCodeAndState
(value string)
service/openai_oauth.go:549
↓ 1 callers
Function
fallbackRatesUSD
(modelName string)
service/model_pricing.go:434
↓ 1 callers
Function
fetchGitHubPrimaryEmail
(token string)
controller/oauth.go:453
↓ 1 callers
Function
fetchGitHubProfile
(provider oauthProviderConfig, token string)
controller/oauth.go:420
↓ 1 callers
Function
fetchGoogleProfile
(provider oauthProviderConfig, token string)
controller/oauth.go:478
↓ 1 callers
Function
fetchOAuthProfile
(provider oauthProviderConfig, code, redirectURI string)
controller/oauth.go:380
↓ 1 callers
Function
fillStreamUsage
(db *gorm.DB, log *model.APILog, body []byte, groupMultipliers ...any)
upstream/proxy.go:679
↓ 1 callers
Function
findOfficialModelPrice
(modelName string)
service/model_pricing.go:359
↓ 1 callers
Function
firstNonEmpty
(values ...string)
upstream/proxy.go:749
↓ 1 callers
Function
formatLatency
(latencyMs int64)
controller/endpoint_speed.go:113
↓ 1 callers
Function
generateRedeemCode
()
controller/admin.go:2008
↓ 1 callers
Function
getEnvDuration
(key string, fallback time.Duration)
config/config.go:134
↓ 1 callers
Function
getMeWithRetry
()
frontend/src/stores/auth.js:52
↓ 1 callers
Function
hydrateLotteryPlanForPublic
(plan *model.Plan)
controller/admin.go:1186
↓ 1 callers
Method
isConfiguredEndpoint
(target string)
controller/endpoint_speed.go:66
↓ 1 callers
Function
isDuplicateFingerprintError
(err error)
service/mailer.go:425
↓ 1 callers
Function
isEventStream
(resp *http.Response)
upstream/proxy.go:724
↓ 1 callers
Function
isRecoverableMeError
(err)
frontend/src/stores/auth.js:62
↓ 1 callers
Function
joinClusterURL
(base string, pathWithQuery string)
controller/load_balancer.go:116
↓ 1 callers
Function
joinNodeURL
(base string, path string)
service/cluster_registry.go:244
↓ 1 callers
Function
loadBalanceBillingGroupUpstream
(db *gorm.DB, groupID uint, protocol string)
upstream/proxy.go:264
↓ 1 callers
Function
loadDotEnv
(path string)
config/config.go:199
↓ 1 callers
Function
loadUpstreamGroupMultipliers
(db *gorm.DB, upstream model.UpstreamAccount)
upstream/proxy.go:305
↓ 1 callers
Function
localizeMessage
(message string)
response/response.go:30
↓ 1 callers
Function
localizeValidationMessage
(message string)
response/response.go:151
↓ 1 callers
Function
mapChannelMonitorRecordBrief
(record model.ChannelMonitorRecord)
controller/admin.go:2265
↓ 1 callers
Method
mapPublicChannelStatus
(monitor model.ChannelMonitor, cutoff time.Time)
controller/channel_status.go:69
↓ 1 callers
Function
markQuotaCapped
(log *model.APILog)
service/quota.go:573
↓ 1 callers
Function
markdownToHtml
(source)
frontend/src/utils/markdown.js:15
↓ 1 callers
Function
matchedGroupMultiplier
(modelName string, groupMultipliers map[string]float64)
service/model_pricing.go:380
↓ 1 callers
Function
migrateLegacyAPIEndpoint
(db *gorm.DB)
controller/settings.go:331
↓ 1 callers
Function
newProxyTransport
(upstreamTimeout time.Duration)
upstream/proxy.go:326
↓ 1 callers
Method
normalize
()
service/openai_oauth.go:421
↓ 1 callers
Function
normalizeAPIEndpointsJSON
(value string)
controller/settings.go:509
↓ 1 callers
Function
normalizeAccessSource
(source string)
service/quota.go:478
↓ 1 callers
Function
normalizeEpaySubmitURL
(rawURL string)
controller/order.go:1050
↓ 1 callers
Function
normalizeGroupMultipliers
(values any)
service/model_pricing.go:250
↓ 1 callers
Function
normalizeMySQLDSN
(dsn string)
config/config.go:90
↓ 1 callers
Function
normalizeRedeemCode
(value string)
controller/admin.go:2022
↓ 1 callers
Function
normalizeRemindDays
(value int)
controller/settings.go:474
↓ 1 callers
Function
normalizedPlanModelNamesJSON
(values []string)
controller/admin.go:1939
↓ 1 callers
Function
oauthProviderLabel
(provider string)
controller/oauth.go:604
↓ 1 callers
Function
oauthUsername
(profile oauthProfile)
controller/oauth.go:615
↓ 1 callers
Function
orderAccessTypeFromString
(value string)
controller/admin.go:2166
↓ 1 callers
Function
orderPaymentName
(order model.Order)
controller/order.go:1029
↓ 1 callers
Function
outputLimitField
(path string, payload map[string]any)
upstream/proxy.go:471
↓ 1 callers
Function
parseLogLimit
(value string)
controller/load_balancer.go:105
↓ 1 callers
Function
parseOpenAICodexRateLimitHeaders
(headers http.Header)
service/openai_oauth.go:367
↓ 1 callers
Function
parseStatusRangeDays
(value string)
controller/channel_status.go:120
↓ 1 callers
Function
parseValidationError
(message string)
response/response.go:188
↓ 1 callers
Function
pendingPaymentExpiresAt
(order model.Order)
controller/order.go:750
↓ 1 callers
Function
prepareAccessSourceMigration
(db *gorm.DB)
database/database.go:83
↓ 1 callers
Function
probeClusterNode
(ctx context.Context, node *ClusterNode)
service/cluster_registry.go:181
↓ 1 callers
Function
pruneChannelMonitorRecords
(db *gorm.DB)
service/channel_monitor.go:150
↓ 1 callers
Function
publicOAuthProviders
(setting model.SystemSetting)
controller/settings.go:463
↓ 1 callers
Function
queryEpayPaid
(c *gin.Context, db *gorm.DB, setting model.SystemSetting, order model.Order)
controller/order.go:1085
↓ 1 callers
Function
randomCode
()
controller/auth.go:395
↓ 1 callers
Function
randomInt
(min, max int)
controller/captcha.go:97
↓ 1 callers
Function
randomLockToken
()
service/cluster_lock.go:58
↓ 1 callers
Function
readLinuxCPUPercent
()
service/system_load_linux.go:29
↓ 1 callers
Function
readLinuxLoadAverage
()
service/system_load_linux.go:77
↓ 1 callers
Function
readLinuxMemory
()
service/system_load_linux.go:89
↓ 1 callers
Function
readPlatformSystemLoad
()
service/system_load_other.go:5
↓ 1 callers
Function
readWindowsCPUPercent
()
service/system_load_windows.go:48
↓ 1 callers
Function
readWindowsMemory
()
service/system_load_windows.go:87
↓ 1 callers
Function
readinessHandler
(cfg config.Config, db *gorm.DB, redisClient *redis.Client)
router/router.go:203
↓ 1 callers
Function
releaseClusterLock
(redisClient *redis.Client, key string, token string)
service/cluster_lock.go:43
↓ 1 callers
Function
renderMarkdown
(source)
frontend/src/utils/markdown.js:25
↓ 1 callers
Function
requestBaseURL
(c *gin.Context, cfg config.Config)
controller/order.go:1227
↓ 1 callers
Function
requestProtocol
(c *gin.Context)
middleware/api_key.go:82
↓ 1 callers
Function
resolveBalanceBillingGroupID
(db *gorm.DB, userGroupID *uint)
upstream/proxy.go:251
↓ 1 callers
Function
runDueChannelMonitors
(db *gorm.DB)
service/channel_monitor.go:72
↓ 1 callers
Function
sanitizeHtml
(html)
frontend/src/utils/markdown.js:19
↓ 1 callers
Function
sanitizeInstanceID
(value string)
config/config.go:169
↓ 1 callers
Function
scaleUSDMicros
(log *model.APILog, targetMicros int64, currentMicros int64)
service/quota.go:534
↓ 1 callers
Function
seedDocs
(db *gorm.DB)
database/database.go:367
↓ 1 callers
Function
selectProxyUpstream
(db *gorm.DB, apiKey model.APIKey, accessSource string, protocol string, now time.Time)
upstream/proxy.go:168
↓ 1 callers
Function
setOAuthStateCookie
(c *gin.Context, state, baseURL string)
controller/oauth.go:627
← previous
next →
301–400 of 595, ranked by callers