(r *Session)
| 79 | } |
| 80 | |
| 81 | func addSession(r *Session) error { |
| 82 | if _, ok := GetSession(r.ID); ok { |
| 83 | return fmt.Errorf("session %s already exists", r.ID.String()) |
| 84 | } |
| 85 | openSessions.Store(r.ID, r) |
| 86 | return nil |
| 87 | } |
| 88 | |
| 89 | func GetSession(id uuid.UUID) (*Session, bool) { |
| 90 | request, ok := openSessions.Load(id) |
no test coverage detected