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