Documentation ¶
Index ¶
- Variables
- func AddPlugin(ctx *gin.Context)
- func AlterPlugin(ctx *gin.Context)
- func ClearLogs(ctx *gin.Context)
- func DelLog(ctx *gin.Context)
- func DelLogByDate(ctx *gin.Context)
- func DelOldLog(ctx *gin.Context)
- func DeleteLogs(ctx *gin.Context)
- func DeletePlugin(ctx *gin.Context)
- func Download(ctx *gin.Context)
- func GetHosts(ctx *gin.Context)
- func GetLogDate(ctx *gin.Context)
- func GetLogInfo(ctx *gin.Context)
- func GetLogLocate(ctx *gin.Context)
- func GetLogs(ctx *gin.Context)
- func GetPluginNameList(ctx *gin.Context)
- func GetProductKey(ctx *gin.Context)
- func GetTempConfig(ctx *gin.Context)
- func PluginAPI(ctx *gin.Context)
- func PubPlugin(ctx *gin.Context)
- func QueryPlugin(ctx *gin.Context)
- func RunPlugin(ctx *gin.Context)
- func SetLicenseCode(ctx *gin.Context)
- func SetRunType(ctx *gin.Context)
- func StopPlugin(ctx *gin.Context)
- func TakeDown(ctx *gin.Context)
- func UpdateConfig(ctx *gin.Context)
- func UpdatePluginFile(ctx *gin.Context)
- func Upload(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var IsDebug bool
Functions ¶
func AlterPlugin ¶
func DelLogByDate ¶
func DeleteLogs ¶
func DeletePlugin ¶
func GetLogDate ¶
func GetLogInfo ¶
func GetLogLocate ¶
func GetPluginNameList ¶
func GetProductKey ¶
func GetTempConfig ¶
func QueryPlugin ¶
func SetLicenseCode ¶
func SetRunType ¶
func StopPlugin ¶
func UpdateConfig ¶
func LoadPlugin(ctx *gin.Context) { var plugin control.TPluginControl var err error var userID int32 var userCode string ginContext := genService.NewGinContext(ctx) if userID, userCode, err = ginContext.CheckRequest(&plugin); err != nil { service.LogWriter.WriteError(fmt.Sprintf("Error while parsing request: %s", err.Error()), false) ginContext.Reply(response.Failure(err.Error())) return } plugin.OperatorID, plugin.OperatorCode = userID, userCode result := plugin.LoadPlugin() if IsDebug { strJson, _ := json.Marshal(result) service.LogWriter.WriteDebug(fmt.Sprintf("Load plugin: %s", string(strJson)), false) } ginContext.Reply(result) }
func UnloadPlugin(ctx *gin.Context) { var plugin control.TPluginControl var err error var userID int32 var userCode string ginContext := genService.NewGinContext(ctx) if userID, userCode, err = ginContext.CheckRequest(&plugin); err != nil { service.LogWriter.WriteError(fmt.Sprintf("Error while parsing request: %s", err.Error()), false) ginContext.Reply(response.Failure(err.Error())) return } plugin.OperatorID, plugin.OperatorCode = userID, userCode result := plugin.UnloadPlugin() if IsDebug { strJson, _ := json.Marshal(result) service.LogWriter.WriteDebug(fmt.Sprintf("Unload plugin: %s", string(strJson)), false) } ginContext.Reply(result) }
func UpdatePluginFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.