new: exposing modules realtime status from the rest api

This commit is contained in:
evilsocket 2018-09-28 22:05:38 +02:00
parent 1220874473
commit 2b117e14d6
2 changed files with 42 additions and 19 deletions

View file

@ -22,6 +22,14 @@ type Module interface {
Stop() error
}
type JSONModule struct {
Name string `json:"name"`
Description string `json:"description"`
Author string `json:"author"`
Parameters map[string]*ModuleParam `json:"parameters"`
Running bool `json:"running"`
}
type SessionModule struct {
Name string `json:"name"`
Session *Session `json:"-"`