GetSession retrieves a session by ID.
(ctx context.Context, id string)
| 215 | |
| 216 | // GetSession retrieves a session by ID. |
| 217 | func (sm *SessionManager) GetSession(ctx context.Context, id string) (*session.Session, error) { |
| 218 | sess, err := sm.sessionStore.GetSession(ctx, id) |
| 219 | if err != nil { |
| 220 | return nil, err |
| 221 | } |
| 222 | return sess, nil |
| 223 | } |
| 224 | |
| 225 | // WaitSessionAttached blocks until a runtime is attached for sessionID (i.e. |
| 226 | // the session is ready to accept follow-ups and produce events), the timeout |
nothing calls this directly
no test coverage detected