Set key-value to current state
(key, value interface{})
| 43 | |
| 44 | // Set key-value to current state |
| 45 | func (state *SessionState) Set(key, value interface{}) error { |
| 46 | state.lock.Lock() |
| 47 | defer state.lock.Unlock() |
| 48 | state.values[key] = value |
| 49 | return state.store.SessionUpdate(state) |
| 50 | |
| 51 | } |
| 52 | |
| 53 | // Get value by key in current state |
| 54 | func (state *SessionState) Get(key interface{}) interface{} { |
nothing calls this directly
no test coverage detected