E2E tests done
This commit is contained in:
parent
e7c9034d2c
commit
23a192635e
4 changed files with 32 additions and 22 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue