controller

package
v0.0.0-...-6cf1638 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: MulanPSL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APPRegister

func APPRegister(router *gin.RouterGroup)

APPRegister admin路由注册

func AdminLoginRegister

func AdminLoginRegister(group *gin.RouterGroup)

func AdminRegister

func AdminRegister(group *gin.RouterGroup)

func DashboardRegister

func DashboardRegister(group *gin.RouterGroup)

func NodeRegister

func NodeRegister(router *gin.RouterGroup)

NodeRegister admin路由注册

func ServiceRegister

func ServiceRegister(group *gin.RouterGroup)

Types

type APPController

type APPController struct {
}

func (*APPController) Add

func (a *APPController) Add(c *gin.Context)

func (*APPController) Delete

func (a *APPController) Delete(c *gin.Context)

func (*APPController) Detail

func (a *APPController) Detail(c *gin.Context)

func (*APPController) List

func (a *APPController) List(c *gin.Context)

func (*APPController) Statistics

func (a *APPController) Statistics(c *gin.Context)

func (*APPController) Token

func (a *APPController) Token(c *gin.Context)

func (*APPController) Update

func (a *APPController) Update(c *gin.Context)

type AdminController

type AdminController struct{}

func (*AdminController) AdminInfo

func (adminlogin *AdminController) AdminInfo(c *gin.Context)

AdminInfo godoc @Summary 管理员信息 @Description 管理员信息 @Tags 管理员接口 @ID /admin/admin_info @Accept json @Produce json @Success 200 {object} middleware.Response{data=dto.AdminInfoOutput} "success" @Router /admin/admin_info [get]

func (*AdminController) ChangePwd

func (adminlogin *AdminController) ChangePwd(c *gin.Context)

ChangePwd godoc @Summary 修改密码 @Description 修改密码 @Tags 管理员接口 @ID /admin/change_pwd @Accept json @Produce json @Param body body dto.ChangePwdInput true "body" @Success 200 {object} middleware.Response{data=string} "success" @Router /admin/change_pwd [post]

type AdminLoginController

type AdminLoginController struct{}

func (*AdminLoginController) AdminLogin

func (adminLogin *AdminLoginController) AdminLogin(c *gin.Context)

type DashboardController

type DashboardController struct{}

func (*DashboardController) FlowStat

func (service *DashboardController) FlowStat(c *gin.Context)

FlowStat godoc @Summary 服务统计 @Description 服务统计 @Tags 首页大盘 @ID /dashboard/flow_stat @Accept json @Produce json @Success 200 {object} middleware.Response{data=dto.ServiceStatOutput} "success" @Router /dashboard/flow_stat [get]

func (*DashboardController) PanelGroupData

func (service *DashboardController) PanelGroupData(c *gin.Context)

PanelGroupData godoc @Summary 指标统计 @Description 指标统计 @Tags 首页大盘 @ID /dashboard/panel_group_data @Accept json @Produce json @Success 200 {object} middleware.Response{data=dto.PanelGroupDataOutput} "success" @Router /dashboard/panel_group_data [get]

func (*DashboardController) ServiceStat

func (service *DashboardController) ServiceStat(c *gin.Context)

ServiceStat godoc @Summary 服务统计 @Description 服务统计 @Tags 首页大盘 @ID /dashboard/service_stat @Accept json @Produce json @Success 200 {object} middleware.Response{data=dto.DashServiceStatOutput} "success" @Router /dashboard/service_stat [get]

type NodeController

type NodeController struct {
}

func (*NodeController) Containers

func (a *NodeController) Containers(c *gin.Context)

func (*NodeController) Delete

func (a *NodeController) Delete(c *gin.Context)

func (*NodeController) List

func (a *NodeController) List(c *gin.Context)

type ServiceController

type ServiceController struct{}

func (*ServiceController) ServiceAdd

func (service *ServiceController) ServiceAdd(c *gin.Context)

ServiceAdd godoc @Summary 添加HTTP服务 @Description 添加HTTP服务 @Tags 服务管理 @ID /service/service_add_http @Accept json @Produce json @Param body body dto.ServiceAddInput true "body" @Success 200 {object} middleware.Response{data=string} "success" @Router /service/service_add_http [post]

func (*ServiceController) ServiceDelete

func (service *ServiceController) ServiceDelete(c *gin.Context)

ServiceDelete godoc @Summary 服务删除 @Description 服务删除 @Tags 服务管理 @ID /service/service_delete @Accept json @Produce json @Param id query string true "服务ID" @Success 200 {object} middleware.Response{data=string} "success" @Router /service/service_delete [get]

func (*ServiceController) ServiceDetail

func (service *ServiceController) ServiceDetail(c *gin.Context)

ServiceDetail godoc @Summary 服务详情 @Description 服务详情 @Tags 服务管理 @ID /service/service_detail @Accept json @Produce json @Param id query string true "服务ID" @Success 200 {object} middleware.Response{data=dao.ServiceDetail} "success" @Router /service/service_detail [get]

func (*ServiceController) ServiceList

func (service *ServiceController) ServiceList(c *gin.Context)

ServiceList godoc @Summary 服务列表 @Description 服务列表 @Tags 服务管理 @ID /service/service_list @Accept json @Produce json @Param info query string false "关键词" @Param page_size query int true "每页个数" @Param page_no query int true "当前页数" @Success 200 {object} middleware.Response{data=dto.ServiceListOutput} "success" @Router /service/service_list [get]

func (*ServiceController) ServiceStat

func (service *ServiceController) ServiceStat(c *gin.Context)

ServiceStat godoc @Summary 服务统计 @Description 服务统计 @Tags 服务管理 @ID /service/service_stat @Accept json @Produce json @Param id query string true "服务ID" @Success 200 {object} middleware.Response{data=dto.ServiceStatOutput} "success" @Router /service/service_stat [get]

func (*ServiceController) ServiceUpdate

func (service *ServiceController) ServiceUpdate(c *gin.Context)

ServiceUpdate godoc @Summary 修改HTTP服务 @Description 修改HTTP服务 @Tags 服务管理 @ID /service/service_update_http @Accept json @Produce json @Param body body dto.ServiceUpdateInput true "body" @Success 200 {object} middleware.Response{data=string} "success" @Router /service/service_update_http [post]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL