Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Quorinex/Kiro-Go
/ functions
Functions
794 in github.com/Quorinex/Kiro-Go
⨍
Functions
794
◇
Types & classes
85
↓ 2 callers
Method
AvailableCount
AvailableCount 返回可用账号数
pool/account.go:415
↓ 2 callers
Function
DeleteApiKey
DeleteApiKey removes the API key entry with the given ID. Returns nil even if the ID is unknown (idempotent), matching the existing DeleteAccount styl
config/apikeys.go:117
↓ 2 callers
Method
GetAllAccounts
GetAllAccounts 获取所有账号副本
pool/account.go:471
↓ 2 callers
Method
GetByID
GetByID 根据 ID 获取账号
pool/account.go:259
↓ 2 callers
Function
GetEnabledAccounts
()
config/config.go:408
↓ 2 callers
Function
GetEndpointFallback
GetEndpointFallback returns whether endpoint fallback is enabled. Defaults to true.
config/config.go:790
↓ 2 callers
Function
GetHost
()
config/config.go:391
↓ 2 callers
Method
GetModelList
GetModelList 返回该账号缓存的模型 ID 列表(供 admin API 使用)。 若尚无缓存则返回空切片。
pool/account.go:157
↓ 2 callers
Method
GetNextExcluding
GetNextExcluding 获取下一个可用账号(加权轮询),并跳过指定账号。
pool/account.go:74
↓ 2 callers
Function
GetOIDCTokenURLForTest
GetOIDCTokenURLForTest returns the current OIDC token URL builder so tests can restore it after replacement.
auth/testhooks.go:15
↓ 2 callers
Function
GetPool
GetPool 获取全局账号池单例
pool/account.go:32
↓ 2 callers
Function
GetPort
()
config/config.go:382
↓ 2 callers
Function
GetPreferredEndpoint
GetPreferredEndpoint 获取首选端点配置
config/config.go:772
↓ 2 callers
Function
GetPromptFilterConfig
GetPromptFilterConfig returns all prompt filter settings.
config/config.go:685
↓ 2 callers
Function
HasApiKeys
HasApiKeys returns true when at least one API key entry is configured.
config/apikeys.go:150
↓ 2 callers
Function
InitHttpClient
InitHttpClient 初始化(或重新初始化)auth 模块的全局 HTTP 客户端
auth/http_client.go:65
↓ 2 callers
Function
KiroToClaudeResponse
==================== Kiro -> Claude 转换 ====================
proxy/translator.go:932
↓ 2 callers
Function
MapModel
(model string)
proxy/translator.go:115
↓ 2 callers
Function
MaskApiKey
MaskApiKey produces a display-friendly masked version: keeps first 6 and last 4 characters, replaces the middle with "****". Returns "" for empty inpu
config/apikeys.go:212
↓ 2 callers
Function
ResetApiKeyUsage
ResetApiKeyUsage clears TokensUsed/CreditsUsed/RequestsCount for the entry. LastUsedAt is preserved so operators can still see when the key was last u
config/apikeys.go:185
↓ 2 callers
Method
ServeHTTP
ServeHTTP 路由分发
proxy/handler.go:357
↓ 2 callers
Function
UpdateAllowOverUsage
UpdateAllowOverUsage sets the over-usage setting and persists the change.
config/config.go:833
↓ 2 callers
Function
UpdateApiKey
UpdateApiKey applies a patch to an existing API key. Patch semantics: - Name, Key are overwritten when non-empty in patch. - Enabled, TokenLimit, Cred
config/apikeys.go:77
↓ 2 callers
Function
UpdateStats
(totalReq, successReq, failedReq, totalTokens int, totalCredits float64)
config/config.go:580
↓ 2 callers
Method
accountHasModel
accountHasModel 检查账号是否支持指定模型。 若该账号尚无模型列表(冷启动),视为支持所有模型。
pool/account.go:173
↓ 2 callers
Function
addPromptRule
(type)
web/app.js:2013
↓ 2 callers
Method
appendRequestLog
(entry RequestLog)
proxy/handler.go:1399
↓ 2 callers
Function
applyKiroBaseHeaders
(req *http.Request, account *config.Account, values kiroHeaderValues)
proxy/kiro_headers.go:58
↓ 2 callers
Function
applyProxyConfig
applyProxyConfig 将代理配置应用到所有出站 HTTP 客户端(Kiro API + auth 模块)
proxy/handler.go:3529
↓ 2 callers
Function
applyTranslations
()
web/app.js:113
↓ 2 callers
Function
assertProxyURL
(t *testing.T, got *url.URL, want string)
auth/http_client_test.go:44
↓ 2 callers
Function
assertProxyURL
(t *testing.T, got *url.URL, want string)
proxy/kiro_test.go:237
↓ 2 callers
Function
authOidcURL
authOidcURL captures the current oidc URL builder so the test can restore it.
proxy/import_credentials_test.go:139
↓ 2 callers
Method
authenticateForClaude
authenticateForClaude runs authenticate and writes a Claude-style error on failure. Returns the request with the matched API key injected into context
proxy/handler.go:329
↓ 2 callers
Method
authenticateForOpenAI
authenticateForOpenAI runs authenticate and writes an OpenAI-style error on failure.
proxy/handler.go:343
↓ 2 callers
Function
billedClaudeInputTokens
(inputTokens int, usage promptCacheUsage)
proxy/cache_tracker.go:509
↓ 2 callers
Function
buildAnthropicModelsResponse
(cached []ModelInfo, thinkingSuffix string)
proxy/handler.go:497
↓ 2 callers
Function
buildConversationID
(modelID, systemPrompt, anchor string)
proxy/translator.go:1818
↓ 2 callers
Function
buildKiroHeaderValues
(account *config.Account, host, apiName, sdkVersion, mode string)
proxy/kiro_headers.go:28
↓ 2 callers
Function
buildMessageFromInputItem
(obj map[string]interface{}, role string)
proxy/responses_input.go:153
↓ 2 callers
Function
buildModelsGroupedHtml
(models, thinkingSuffix)
web/app.js:3022
↓ 2 callers
Function
buildResponsesObject
( id, model, content string, toolUses []KiroToolUse, inputTokens, outputTokens int, req *ResponsesRequest, )
proxy/responses_handler.go:217
↓ 2 callers
Function
buildRuntimeHeaderValues
(account *config.Account, host string)
proxy/kiro_headers.go:24
↓ 2 callers
Function
buildStreamingHeaderValues
(account *config.Account, host string)
proxy/kiro_headers.go:20
↓ 2 callers
Function
buildToolResultsContinuation
(toolResults []KiroToolResult)
proxy/translator.go:1745
↓ 2 callers
Function
checkUpdate
(manual)
web/app.js:2601
↓ 2 callers
Function
chooseCustomSelectOption
(select, index)
web/app.js:230
↓ 2 callers
Function
clearActivePassword
()
web/app.js:587
↓ 2 callers
Function
cloneSchemaMap
(m map[string]interface{})
proxy/translator.go:817
↓ 2 callers
Function
closeApiKeyModal
()
web/app.js:1792
↓ 2 callers
Function
collapseBlankLines
collapseBlankLines reduces runs of consecutive blank lines to a single blank line.
proxy/translator.go:510
↓ 2 callers
Function
collectToolResultIDs
collectToolResultIDs returns the set of toolUseId values referenced by the given tool results.
proxy/translator.go:1375
↓ 2 callers
Function
computePromptCacheTTLBreakdown
(profile *promptCacheProfile, matchedTokens int)
proxy/cache_tracker.go:485
↓ 2 callers
Function
currentToolResultsMatchLastAssistant
currentToolResultsMatchLastAssistant reports whether the current message's tool results answer the structured tool calls of the final history assistan
proxy/translator.go:1391
↓ 2 callers
Method
disableAccount
(account *config.Account, banStatus, banReason string)
proxy/account_failover.go:48
↓ 2 callers
Function
ensureRestProfileArn
(account *config.Account)
proxy/kiro_api.go:292
↓ 2 callers
Function
estimateClaudeValueTokens
(v interface{})
proxy/token_estimator.go:81
↓ 2 callers
Function
estimateOpenAIRequestInputTokens
(req *OpenAIRequest)
proxy/token_estimator.go:154
↓ 2 callers
Function
extractOpenAITextPart
(part map[string]interface{})
proxy/translator.go:1841
↓ 2 callers
Function
extractPromptCacheTTL
(value interface{})
proxy/cache_tracker.go:409
↓ 2 callers
Function
extractSystemPrompt
(system interface{})
proxy/translator.go:599
↓ 2 callers
Function
firstStringField
(m map[string]interface{}, keys ...string)
proxy/kiro.go:780
↓ 2 callers
Function
focusDialog
(modal)
web/app.js:483
↓ 2 callers
Function
focusSiblingCustomOption
(current, dir)
web/app.js:241
↓ 2 callers
Function
getCustomSelectLabel
(select)
web/app.js:146
↓ 2 callers
Function
getModalFocusable
(modal)
web/app.js:468
↓ 2 callers
Function
getTestModelValue
()
web/app.js:1401
↓ 2 callers
Method
handleClaudeNonStream
handleClaudeNonStream Claude 非流式响应
proxy/handler.go:1444
↓ 2 callers
Function
hasStatusToken
hasStatusToken returns true when status appears in s with non-digit boundaries on both sides, so "401" matches "HTTP 401 from ..." but not "request_40
pool/account.go:324
↓ 2 callers
Function
historyEntryByteSize
historyEntryByteSize returns the serialized size of a single history entry, including the surrounding JSON array delimiter overhead (1 byte for the co
proxy/translator.go:1696
↓ 2 callers
Function
installCleanAuthClient
installCleanAuthClient replaces the global auth HTTP client with one whose Transport does not consult http.ProxyFromEnvironment — that function caches
proxy/import_credentials_test.go:21
↓ 2 callers
Function
isAuthErrorMessage
(msg string)
proxy/account_failover.go:34
↓ 2 callers
Function
isDigit
(b byte)
pool/account.go:340
↓ 2 callers
Function
isOverageErrorMessage
(msg string)
proxy/account_failover.go:17
↓ 2 callers
Function
isProfileArnResolutionSkippedError
(err error)
proxy/kiro_api.go:280
↓ 2 callers
Function
isProfileArnResolutionSoftError
(err error)
proxy/kiro_api.go:288
↓ 2 callers
Function
isProfileArnResolutionSuppressed
(account *config.Account)
proxy/kiro_api.go:263
↓ 2 callers
Function
isProfileArnResolutionUnsupportedError
(err error)
proxy/kiro_api.go:284
↓ 2 callers
Function
isProfileUnavailableErrorMessage
(msg string)
proxy/account_failover.go:29
↓ 2 callers
Function
isQuotaErrorMessage
(msg string)
proxy/account_failover.go:12
↓ 2 callers
Function
isSuspensionErrorMessage
(msg string)
proxy/account_failover.go:22
↓ 2 callers
Function
kiroRegionForProfile
(account *config.Account, profileArn string)
proxy/kiro_api.go:39
↓ 2 callers
Function
labelCustomSelect
(select, trigger, content, id)
web/app.js:253
↓ 2 callers
Function
loadData
()
web/app.js:662
↓ 2 callers
Function
loadLocalFile
(input, targetId)
web/app.js:2228
↓ 2 callers
Function
loadVersion
()
web/app.js:2572
↓ 2 callers
Function
logResponsesPersistFailure
(id string, err error)
proxy/responses_store.go:144
↓ 2 callers
Function
maskEmail
(email)
web/app.js:422
↓ 2 callers
Function
maxInt
(a, b int)
proxy/cache_tracker.go:616
↓ 2 callers
Function
minCacheableTokensForModel
(model string)
proxy/cache_tracker.go:42
↓ 2 callers
Function
modelSupportsImage
(inputTypes []string)
proxy/handler.go:533
↓ 2 callers
Function
mustParseURL
(t *testing.T, raw string)
auth/http_client_test.go:35
↓ 2 callers
Function
mustParseURL
(t *testing.T, raw string)
proxy/kiro_test.go:228
↓ 2 callers
Function
mustTool
(t *testing.T, s string)
proxy/openai_tool_format_test.go:67
↓ 2 callers
Function
newPollToolCall
(id, name, args string)
proxy/tool_narration_pollution_test.go:70
↓ 2 callers
Function
newUUID
newUUID returns a UUID v4 string. Defined here to avoid pulling extra deps in this file.
config/config.go:330
↓ 2 callers
Function
normalizePromptCacheTTL
(ttl time.Duration)
proxy/cache_tracker.go:472
↓ 2 callers
Function
normalizeToolDesc
(desc, name string)
proxy/translator.go:876
↓ 2 callers
Function
openApiKeyModal
(entry)
web/app.js:1771
↓ 2 callers
Function
placeCustomSelectContent
(select)
web/app.js:184
← previous
next →
201–300 of 794, ranked by callers