MCPcopy
hub / github.com/1Panel-dev/KubePi / Set

Method Set

pkg/logging/logging.go:46–50  ·  view source on GitHub ↗
(sessionId string, session LogSession)

Source from the content-addressed store, hash-verified

44}
45
46func (sm *SessionMap) Set(sessionId string, session LogSession) {
47 sm.Lock.Lock()
48 defer sm.Lock.Unlock()
49 sm.Sessions[sessionId] = session
50}
51
52func (sm *SessionMap) Close(sessionId, reason string, status uint32) {
53 if _, ok := sm.Sessions[sessionId]; !ok {

Callers 1

logHandlerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected