Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectAllFuncWeb ¶
func InjectAllFuncWeb(s *AllFuncWeb)
func InjectWebagentFuncService ¶
func InjectWebagentFuncService(s *WebagentFuncService)
func LoadAllFuncWeb ¶
func LoadAllFuncWeb() baseiface.ISingleton
func LoadWebagentFuncService ¶
func LoadWebagentFuncService() baseiface.ISingleton
Types ¶
type AllFuncWeb ¶
type AllFuncWeb struct {
generalweb.BaseController
funchandler.FuncWeb
basedto.BaseEntitySingle
}
服务信息接口
func NewAllFuncWeb ¶
func NewAllFuncWeb() *AllFuncWeb
func (*AllFuncWeb) AllAddr ¶
func (self *AllFuncWeb) AllAddr(c *gin.Context)
AllAddr @Summary 服务列表 @Tags 公共服务信息 @Description 服务LIST @Produce json @body enginepub.RuleData @Success 200 {object} basedto.IchubResult "成功" @Failure 400 {object} string "请求错误" @Failure 500 {object} string "内部错误" @Router /alladdr [get]
func (*AllFuncWeb) AllService ¶
func (self *AllFuncWeb) AllService(c *gin.Context)
@Summary 根据服务名找服务 @Tags 公共服务信息 @Description 根据服务名称查找服务 @Produce json @Param serverName query string true "query params: string" @Success 200 {object} basedto.IchubResult "成功" @Failure 400 {object} string "请求错误" @Failure 500 {object} string "内部错误" @Router /allweb [get]
func (*AllFuncWeb) Health ¶
func (self *AllFuncWeb) Health(c *gin.Context)
@Summary health @Tags 公共服务信息 @Produce json @Success 200 {object} basedto.IchubResult "成功" @Failure 400 {object} string "请求错误" @Failure 500 {object} string "内部错误" @Router /health [get]
func (*AllFuncWeb) HelloWorld ¶
func (self *AllFuncWeb) HelloWorld(c *gin.Context)
@Summary HelloWorld @Tags 公共服务信息 @Produce json @Success 200 {object} basedto.IchubResult "成功" @Failure 400 {object} string "请求错误" @Failure 500 {object} string "内部错误" @Router /helloword [get]
func (*AllFuncWeb) ListService ¶
func (self *AllFuncWeb) ListService(c *gin.Context)
@Summary 显示所有服务 @Tags 公共服务信息 @Description 显示所有服务 @Produce json @Success 200 {object} basedto.IchubResult "成功" @Failure 400 {object} string "请求错误" @Failure 500 {object} string "内部错误" @Router /servicelist [get]
type WebagentFuncService ¶
type WebagentFuncService struct {
generalweb.BaseController
funchandler.FuncService
basedto.BaseEntitySingle
}
服务信息接口
func FindBeanWebagentFuncService ¶
func FindBeanWebagentFuncService() *WebagentFuncService
FindBeanWebagentFuncService
func NewWebagentFuncService ¶
func NewWebagentFuncService() *WebagentFuncService
func (*WebagentFuncService) ExecuteWebagent ¶
func (this *WebagentFuncService) ExecuteWebagent(c *gin.Context)
@Summary 根据token获取用户信息 @Tags 公共服务信息 @Description 根据TOKEN获取UserID @Produce json @Param serverName query string true "query params: string" @Success 200 {object} basedto.IchubResult "成功" @Failure 400 {object} string "请求错误" @Failure 500 {object} string "内部错误" @Router /webagent [get]