26 lines
332 B
Go
26 lines
332 B
Go
|
package session
|
||
|
|
||
|
import (
|
||
|
"sync"
|
||
|
)
|
||
|
|
||
|
type SessionManager struct {
|
||
|
Mutex sync.Mutex
|
||
|
}
|
||
|
|
||
|
func NewMgr() *SessionManager {
|
||
|
return &SessionManager{}
|
||
|
}
|
||
|
|
||
|
func (sm *SessionManager) Set(key, value string) {
|
||
|
|
||
|
}
|
||
|
|
||
|
func (sm *SessionManager) Get(key string) string {
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (sm *SessionManager) Delete(key string) {
|
||
|
|
||
|
}
|