(_ context.Context, session *Session)
| 143 | } |
| 144 | |
| 145 | func (s *InMemorySessionStore) AddSession(_ context.Context, session *Session) error { |
| 146 | if session.ID == "" { |
| 147 | return ErrEmptyID |
| 148 | } |
| 149 | s.sessions.Store(session.ID, session) |
| 150 | return nil |
| 151 | } |
| 152 | |
| 153 | func (s *InMemorySessionStore) GetSession(_ context.Context, id string) (*Session, error) { |
| 154 | if id == "" { |