mirror of
https://github.com/bettercap/bettercap
synced 2025-07-11 15:46:59 -07:00
new: exposing modules realtime status from the rest api
This commit is contained in:
parent
1220874473
commit
2b117e14d6
2 changed files with 42 additions and 19 deletions
|
@ -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:"-"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue