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

Method Walker

aibridge/keypool/keypool.go:257–259  ·  view source on GitHub ↗

Walker creates a new Walker that follows a primary-with-fallback strategy, starting from the first key in the pool. The walker is not safe for concurrent use. It is intended for a single request's failover loop.

()

Source from the content-addressed store, hash-verified

255// is not safe for concurrent use. It is intended for a single
256// request's failover loop.
257func (p *Pool) Walker() *Walker {
258 return &Walker{pool: p, pos: 0}
259}
260
261// Next returns a Key handle for the next available key without
262// modifying the pool state.

Callers 15

ProcessRequestMethod · 0.80
TestMarkKeyOnErrorFunction · 0.80
ProcessRequestMethod · 0.80
TestMarkKeyOnErrorFunction · 0.80
ProcessRequestMethod · 0.80
TestMarkKeyOnErrorFunction · 0.80
RoundTripMethod · 0.80
TestMarkKeyOnStatusFunction · 0.80

Calls

no outgoing calls

Tested by 12

TestMarkKeyOnErrorFunction · 0.64
TestMarkKeyOnErrorFunction · 0.64
TestMarkKeyOnErrorFunction · 0.64
TestMarkKeyOnStatusFunction · 0.64
TestNewKeyPoolFunction · 0.64
TestStateFunction · 0.64
TestMarkTemporaryFunction · 0.64
TestMarkPermanentFunction · 0.64
TestWalkerNextFunction · 0.64
TestKeyConcurrentFunction · 0.64
TestWalkerIndependenceFunction · 0.64