MCPcopy Create free account
hub / github.com/XTLS/Go / Get

Method Get

common.go:356–356  ·  view source on GitHub ↗

Get searches for a ClientSessionState associated with the given key. On return, ok is true if one was found.

(sessionKey string)

Source from the content-addressed store, hash-verified

354 // Get searches for a ClientSessionState associated with the given key.
355 // On return, ok is true if one was found.
356 Get(sessionKey string) (session *ClientSessionState, ok bool)
357
358 // Put adds the ClientSessionState to the cache with the given key. It might
359 // get called multiple times in a connection if a TLS 1.3 server provides

Callers 2

writeRecordLockedMethod · 0.65
loadSessionMethod · 0.65

Implementers 1

Calls

no outgoing calls

Tested by

no test coverage detected