mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 19:50:06 -07:00
new: properly exposing module handlers and parameters from api.rest
This commit is contained in:
parent
87ac32cd6b
commit
b98db78926
4 changed files with 64 additions and 22 deletions
|
@ -22,14 +22,6 @@ 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