NewSessionManager creates a new sessionManager
()
| 35 | |
| 36 | // NewSessionManager creates a new sessionManager |
| 37 | func NewSessionManager() *SessionManager { |
| 38 | m := &SessionManager{ |
| 39 | sessions: make(map[string]Session), |
| 40 | } |
| 41 | |
| 42 | return m |
| 43 | } |
| 44 | |
| 45 | // CreateSession creates a new session and returns the sessionID |
| 46 | func (m *SessionManager) CreateSession() (string, error) { |
no outgoing calls