MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / SessionAffinitySelector

Struct SessionAffinitySelector

sdk/cliproxy/auth/selector.go:371–374  ·  view source on GitHub ↗

SessionAffinitySelector wraps another selector with session-sticky behavior. It extracts session ID from multiple sources and maintains session-to-auth mappings with automatic failover when the bound auth becomes unavailable.

Source from the content-addressed store, hash-verified

369// It extracts session ID from multiple sources and maintains session-to-auth
370// mappings with automatic failover when the bound auth becomes unavailable.
371type SessionAffinitySelector struct {
372 fallback Selector
373 cache *SessionCache
374}
375
376// SessionAffinityConfig configures the session affinity selector.
377type SessionAffinityConfig struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected