Add HttpPost
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user