E2E tests done

This commit is contained in:
DarkGopher 2025-06-08 21:24:21 +02:00
parent e7c9034d2c
commit 23a192635e
4 changed files with 32 additions and 22 deletions

View file

@ -84,6 +84,14 @@ func (pder *ProviderMemory) Init(sid string) (ses session.Session, err error) {
return sess, nil
}
// Exists return true if session with sid exists
func (pder *ProviderMemory) Exists(sid string) (ex bool) {
if _, ex := pder.sessions[sid]; ex {
return ex
}
return
}
// read return existing unexpired session or create new
func (pder *ProviderMemory) Read(sid string) (ses session.Session, err error) {
pder.lock.Lock()