Documentation
¶
Index ¶
- func Register()
- type AllserviceFuncService
- func (this *AllserviceFuncService) AllAddr(c *gin.Context)
- func (this *AllserviceFuncService) AllService(c *gin.Context)
- func (this *AllserviceFuncService) Health(c *gin.Context)
- func (this *AllserviceFuncService) HelloWorld(c *gin.Context)
- func (this *AllserviceFuncService) ListService(c *gin.Context)
- type WebagentFuncService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllserviceFuncService ¶
type AllserviceFuncService struct {
funchandler.FuncService
}
服务信息接口
func NewAllServiceFuncService ¶
func NewAllServiceFuncService() *AllserviceFuncService
func (*AllserviceFuncService) AllAddr ¶
func (this *AllserviceFuncService) 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 (*AllserviceFuncService) AllService ¶
func (this *AllserviceFuncService) 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 /allservice [get]
func (*AllserviceFuncService) Health ¶
func (this *AllserviceFuncService) 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 (*AllserviceFuncService) HelloWorld ¶
func (this *AllserviceFuncService) 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 (*AllserviceFuncService) ListService ¶
func (this *AllserviceFuncService) 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 {
funchandler.FuncService
}
服务信息接口
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]