MCPcopy Index your code
hub / github.com/coder/coder / Error

Method Error

aibridge/keypool/keypool.go:44–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func (e *Error) Error() string {
45 switch e.Kind {
46 case ErrorKindPermanent:
47 return "all configured keys failed authentication"
48 case ErrorKindRateLimited:
49 return fmt.Sprintf("all configured keys are rate-limited (retry after %s)", e.RetryAfter)
50 default:
51 return "key pool error"
52 }
53}
54
55// KeyState represents the current state of a key in the pool.
56type KeyState int

Callers 15

NewRequestBridgeFunction · 0.45
disabledProviderHandlerFunction · 0.45
newInterceptionProcessorFunction · 0.45
writeRequestBodyTooLargeFunction · 0.45
ServeHTTPMethod · 0.45
ShutdownMethod · 0.45
newPassthroughRouterFunction · 0.45
newInvalidBaseURLHandlerFunction · 0.45
TestValidateProvidersFunction · 0.45
RecordInterceptionMethod · 0.45

Calls

no outgoing calls