MCPcopy Create free account
hub / github.com/devfeel/dotweb / SessionExist

Method SessionExist

session/store_runtime.go:46–53  ·  view source on GitHub ↗

SessionExist check session state exist by sessionId

(sessionId string)

Source from the content-addressed store, hash-verified

44
45// SessionExist check session state exist by sessionId
46func (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
56func (store *RuntimeStore) SessionUpdate(state *SessionState) error {

Callers 2

Calls

no outgoing calls

Tested by 2