Get returns a state instance by key.
(key string)
| 91 | |
| 92 | // Get returns a state instance by key. |
| 93 | func (s *ShellStateStore) Get(key string) (ShellState, bool) { |
| 94 | s.mu.RLock() |
| 95 | defer s.mu.RUnlock() |
| 96 | st, exists := s.data[key] |
| 97 | return st, exists |
| 98 | } |
| 99 | |
| 100 | // Delete removes a state instance by key. |
| 101 | // |