GetSession retrieves a session by ID
(ctx context.Context, id string)
| 693 | |
| 694 | // GetSession retrieves a session by ID |
| 695 | func (s *SQLiteSessionStore) GetSession(ctx context.Context, id string) (*Session, error) { |
| 696 | if id == "" { |
| 697 | return nil, ErrEmptyID |
| 698 | } |
| 699 | return s.loadSession(ctx, s.db, id) |
| 700 | } |
| 701 | |
| 702 | // sessionItemRow holds the raw data from a session_items row |
| 703 | type sessionItemRow struct { |