mirror of
https://github.com/bettercap/bettercap
synced 2025-07-31 04:00:09 -07:00
misc: reporting session replay loading progress as api.rest state object
This commit is contained in:
parent
a411607a57
commit
fdc26ca3aa
5 changed files with 50 additions and 13 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue