MCPcopy
hub / github.com/PatchMon/PatchMon / Set

Method Set

server-source-code/internal/sshproxy/sessions.go:28–32  ·  view source on GitHub ↗

Set stores a session.

(sessionID string, sess *Session)

Source from the content-addressed store, hash-verified

26
27// Set stores a session.
28func (s *Sessions) Set(sessionID string, sess *Session) {
29 s.mu.Lock()
30 defer s.mu.Unlock()
31 s.sess[sessionID] = sess
32}
33
34// Get retrieves a session.
35func (s *Sessions) Get(sessionID string) *Session {

Callers 15

SaveConfigMethod · 0.45
getServerVersionInfoFunction · 0.45
connectOnceFunction · 0.45
emitMethod · 0.45
RecoveryFunction · 0.45
RequestIDFunction · 0.45
HSTSFunction · 0.45
apiErrorWithMessageFunction · 0.45
rateLimitUnavailableFunction · 0.45
RateLimitFunction · 0.45
RateLimitAgentByAPIIDFunction · 0.45

Calls

no outgoing calls