SessionExist check session state exist by sessionId
(sessionId string)
| 44 | |
| 45 | // SessionExist check session state exist by sessionId |
| 46 | func (store *RuntimeStore) SessionExist(sessionId string) bool { |
| 47 | store.lock.RLock() |
| 48 | defer store.lock.RUnlock() |
| 49 | if _, ok := store.sessions[sessionId]; ok { |
| 50 | return true |
| 51 | } |
| 52 | return false |
| 53 | } |
| 54 | |
| 55 | // SessionUpdate update session state in store |
| 56 | func (store *RuntimeStore) SessionUpdate(state *SessionState) error { |
no outgoing calls