misc: reporting session replay loading progress as api.rest state object

This commit is contained in:
evilsocket 2019-03-29 19:31:20 +01:00
parent a411607a57
commit fdc26ca3aa
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
5 changed files with 50 additions and 13 deletions

View file

@ -60,7 +60,7 @@ type SessionModule struct {
Session *Session
Started bool
StatusLock *sync.RWMutex
State sync.Map
State *sync.Map
handlers []ModuleHandler
params map[string]*ModuleParam
@ -77,6 +77,7 @@ func NewSessionModule(name string, s *Session) SessionModule {
Session: s,
Started: false,
StatusLock: &sync.RWMutex{},
State: &sync.Map{},
handlers: make([]ModuleHandler, 0),
params: make(map[string]*ModuleParam),