MCPcopy Index your code
hub / github.com/keploy/keploy / getSession

Method getSession

pkg/agent/proxy/proxy.go:774–778  ·  view source on GitHub ↗

getSession returns the current session in a thread-safe manner.

()

Source from the content-addressed store, hash-verified

772
773// getSession returns the current session in a thread-safe manner.
774func (p *Proxy) getSession() *agent.Session {
775 p.sessionMu.RLock()
776 defer p.sessionMu.RUnlock()
777 return p.session
778}
779
780// setSession replaces the current session in a thread-safe manner.
781func (p *Proxy) setSession(s *agent.Session) {

Callers 3

GetSessionMethod · 0.95
handleConnectionMethod · 0.95
ServeDNSMethod · 0.95

Implementers 1

Proxypkg/agent/proxy/proxy.go

Calls

no outgoing calls

Tested by

no test coverage detected