Add HttpPost

This commit is contained in:
root
2024-02-16 19:11:37 +03:00
parent d03c481b33
commit 5c77eb1783
6 changed files with 314 additions and 31 deletions

View File

@@ -11,20 +11,33 @@
Plug *plugin.Plugin
}
type App struct {
Conf interface{}
ErrIsDir error // = errors.New("Is directory")
Conf interface{}
ErrIsDir error // = errors.New("Is directory")
CliList []cmpWbsCliStruct
HttpCliDebug uint32
HttpCliSslVerify bool
cmpSnipperHttpServ cmpSnipperHttpServ
CliList []cmpWbsCliStruct
Rand4d int
cmpSnipperHttpServ cmpSnipperHttpServ
PlugList []cmpPluginStruct
Rand4d int
SshList []cmpSshCliStruct
PlugList []cmpPluginStruct
SshList []cmpSshCliStruct
}
func NewApp() (App) {
var app App
app.ErrIsDir = errors.New("Is directory")
app.HttpCliDebug = 1
app.HttpCliSslVerify = true
return app
}
func (app *App) PlugInit(name string, file string) {
@@ -84,8 +97,6 @@
}
func (app *App) Prep() (error) {
app.ErrIsDir = errors.New("Is directory")
app.LogSetup()
var err = app.ConfLoadFile("secret/zest.json");