(config *StoreConfig)
| 15 | } |
| 16 | |
| 17 | func NewRuntimeStore(config *StoreConfig) *RuntimeStore { |
| 18 | return &RuntimeStore{ |
| 19 | lock: new(sync.RWMutex), |
| 20 | sessions: make(map[string]*list.Element), |
| 21 | list: new(list.List), |
| 22 | maxlifetime: config.Maxlifetime, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // SessionRead get session state by sessionId |
| 27 | func (store *RuntimeStore) SessionRead(sessionId string) (*SessionState, error) { |
no outgoing calls