Documentation ¶
Index ¶
- func AdminLoginRegister(group *gin.RouterGroup)
- func AdminRegister(group *gin.RouterGroup)
- func AppRegister(group *gin.RouterGroup)
- func DashboardRegister(group *gin.RouterGroup)
- func OauthRegister(group *gin.RouterGroup)
- func ServiceRegister(group *gin.RouterGroup)
- type AdminController
- type AdminLoginController
- type AppController
- type DashboardController
- type OauthController
- type ServiceController
- func (s *ServiceController) ServiceAddGRPC(c *gin.Context)
- func (s *ServiceController) ServiceAddHTTP(c *gin.Context)
- func (s *ServiceController) ServiceAddTCP(c *gin.Context)
- func (s *ServiceController) ServiceDelete(c *gin.Context)
- func (s *ServiceController) ServiceDetail(c *gin.Context)
- func (s *ServiceController) ServiceList(c *gin.Context)
- func (s *ServiceController) ServiceStat(c *gin.Context)
- func (s *ServiceController) ServiceUpdateGRPC(c *gin.Context)
- func (s *ServiceController) ServiceUpdateHTTP(c *gin.Context)
- func (s *ServiceController) ServiceUpdateTCP(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminLoginRegister ¶
func AdminLoginRegister(group *gin.RouterGroup)
func AdminRegister ¶
func AdminRegister(group *gin.RouterGroup)
func AppRegister ¶
func AppRegister(group *gin.RouterGroup)
func DashboardRegister ¶
func DashboardRegister(group *gin.RouterGroup)
func OauthRegister ¶
func OauthRegister(group *gin.RouterGroup)
func ServiceRegister ¶
func ServiceRegister(group *gin.RouterGroup)
Types ¶
type AdminController ¶
type AdminController struct { v1.UnimplementedAdminServer // contains filtered or unexported fields }
func NewAdminController ¶
func NewAdminController(useCase *service.AdminUseCase) *AdminController
func (*AdminController) AdminInfo ¶
func (admin *AdminController) AdminInfo(c *gin.Context)
AdminInfo 管理员信息 @Summary 管理员信息 @Description 从登陆的 Session 中获取管理员信息 @Tags 管理员接口 @Accept application/json @Produce application/json @Success 200 {object} middleware.Response{data=dto.AdminInfoOutput} "success" @Router /admin/admin_info [GET]
func (*AdminController) ChangePwd ¶
func (admin *AdminController) ChangePwd(c *gin.Context)
ChangePwd 修改密码 @Summary 修改密码 @Description 修改已登录账户的密码 @Tags 管理员接口 @Accept application/json @Produce application/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 { v1.UnimplementedAdminLoginServer // contains filtered or unexported fields }
func NewAdminLoginController ¶
func NewAdminLoginController(useCase *service.AdminLoginUseCase) *AdminLoginController
func (*AdminLoginController) AdminLogOut ¶
func (a *AdminLoginController) AdminLogOut(c *gin.Context)
AdminLogOut 管理员退出登录 @Summary 管理员退出 @Description 管理员退出 @Tags 管理员接口 @Accept application/json @Produce application/json @Success 200 {object} middleware.Response{data=string} "success" @Router /admin_login/logout [GET]
func (*AdminLoginController) AdminLogin ¶
func (a *AdminLoginController) AdminLogin(c *gin.Context)
AdminLogin 管理员登录 @Summary 管理员登录 @Description 管理员登录 @Tags 管理员接口 @Accept application/json @Produce application/json @Param body body dto.AdminLoginInput true "body" @Success 200 {object} middleware.Response{data=dto.AdminLoginOutput} "success" @Router /admin_login/login [POST]
type AppController ¶
type AppController struct { v1.UnimplementedAppServer // contains filtered or unexported fields }
func NewAppController ¶
func NewAppController(useCase *service.AppUseCase) *AppController
func (*AppController) AppAdd ¶
func (a *AppController) AppAdd(c *gin.Context)
AppAdd godoc @Summary 租户添加 @Description 租户添加 @Tags 租户管理 @ID /app/app_add @Accept json @Produce json @Param body body dto.AppAddInput true "body" @Success 200 {object} middleware.Response{data=string} "success" @Router /app/app_add [POST]
func (*AppController) AppDelete ¶
func (a *AppController) AppDelete(c *gin.Context)
AppDetail godoc @Summary 租户删除 @Description 租户删除 @Tags 租户管理 @ID /app/app_delete @Accept json @Produce json @Param id query string true "ID" @Success 200 {object} middleware.Response{data=string} "success" @Router /app/app_delete [GET]
func (*AppController) AppDetail ¶
func (a *AppController) AppDetail(c *gin.Context)
AppDetail godoc @Summary 租户详情 @Description 租户详情 @Tags 租户管理 @ID /app/app_detail @Accept json @Produce json @Param id query string true "ID" @Success 200 {object} middleware.Response{data=dto.AppDetailOutput} "success" @Router /app/app_detail [GET]
func (*AppController) AppList ¶
func (a *AppController) AppList(c *gin.Context)
AppList godoc @Summary 租户列表 @Description 租户列表 @Tags 租户管理 @ID /app/app_list @Accept json @Produce json @Param info query string false "关键词" @Param page_size query string true "每页多少条" @Param page_no query string true "页码" @Success 200 {object} middleware.Response{data=dto.AppListOutput} "success" @Router /app/app_list [GET]
func (*AppController) AppStat ¶
func (a *AppController) AppStat(c *gin.Context)
AppStat godoc @Summary 租户流量统计 @Description 租户流量统计 @Tags 租户管理 @ID /app/app_stat @Accept json @Produce json @Param id query string true "租户ID" @Success 200 {object} middleware.Response{data=dto.AppStatOutput} "success" @Router /app/app_stat [GET]
func (*AppController) AppUpdate ¶
func (a *AppController) AppUpdate(c *gin.Context)
AppUpdate godoc @Summary 租户修改 @Description 租户修改 @Tags 租户管理 @ID /app/app_update @Accept json @Produce json @Param body body dto.AppUpdateInput true "body" @Success 200 {object} middleware.Response{data=string} "success" @Router /app/app_update [POST]
type DashboardController ¶
type DashboardController struct { v1.UnimplementedDashboardServer // contains filtered or unexported fields }
func NewDashboardController ¶
func NewDashboardController(useCase *service.DashboardUseCase) *DashboardController
func (*DashboardController) DashboardServiceStat ¶
func (d *DashboardController) DashboardServiceStat(c *gin.Context)
DashboardServiceStat godoc @Summary 服务占比统计 @Description 服务占比统计 @Tags 首页大盘 @ID /dashboard/service_stat @Accept json @Produce json @Success 200 {object} middleware.Response{data=dto.DashboardServiceStatOutput} "success" @Router /dashboard/service_stat [GET]
func (*DashboardController) FlowStat ¶
func (d *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.FlowStatOutput} "success" @Router /dashboard/flow_stat [GET]
func (*DashboardController) PanelGroupData ¶
func (d *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]
type OauthController ¶
type OauthController struct { v1.UnimplementedOauthServer // contains filtered or unexported fields }
func NewOauthController ¶
func NewOauthController(useCase *service.OauthUseCase) *OauthController
func (*OauthController) Tokens ¶
func (o *OauthController) Tokens(c *gin.Context)
Tokens godoc @Summary 获取token @Description 获取token @Tags OAUTH @Accept application/json @Produce application/json @Param body body dto.TokensInput true "body" @Success 200 {object} middleware.Response{data=dto.TokensOutput} "success" @Router /oauth/tokens [POST]
type ServiceController ¶
type ServiceController struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
func NewServiceController ¶
func NewServiceController(useCase *service.ServiceUseCase) *ServiceController
func (*ServiceController) ServiceAddGRPC ¶
func (s *ServiceController) ServiceAddGRPC(c *gin.Context)
ServiceAddGRPC godoc @Summary 添加 GRPC 服务 @Description 添加 GRPC 服务 @Tags 服务管理 @ID /service/service_add_grpc @Accept json @Produce json @Param body body dto.ServiceAddGrpcInput true "body" @Success 200 {object} middleware.Response{data=string} "success" @Router /service/service_add_grpc [POST]
func (*ServiceController) ServiceAddHTTP ¶
func (s *ServiceController) ServiceAddHTTP(c *gin.Context)
ServiceAddHTTP godoc @Summary 添加 HTTP 服务 @Description 添加 HTTP 服务 @Tags 服务管理 @ID /service/service_add_http @Accept json @Produce json @Param body body dto.ServiceAddHTTPInput true "body" @Success 200 {object} middleware.Response{data=string} "Success" @Router /service/service_add_http [POST]
func (*ServiceController) ServiceAddTCP ¶
func (s *ServiceController) ServiceAddTCP(c *gin.Context)
ServiceAddTCP godoc @Summary 添加 TCP 服务 @Description 添加 TCP 服务 @Tags 服务管理 @ID /service/service_add_tcp @Accept json @Produce json @Param body body dto.ServiceAddTcpInput true "body" @Success 200 {object} middleware.Response{data=string} "success" @Router /service/service_add_tcp [POST]
func (*ServiceController) ServiceDelete ¶
func (s *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 (s *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=do.ServiceDetail} "success" @Router /service/service_detail [GET]
func (*ServiceController) ServiceList ¶
func (s *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 (s *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) ServiceUpdateGRPC ¶
func (s *ServiceController) ServiceUpdateGRPC(c *gin.Context)
ServiceUpdateGRPC godoc @Summary 修改 GRPC 服务 @Description 修改 GRPC 服务 @Tags 服务管理 @ID /service/service_update_grpc @Accept json @Produce json @Param body body dto.ServiceUpdateGrpcInput true "body" @Success 200 {object} middleware.Response{data=string} "Success" @Router /service/service_update_grpc [POST]
func (*ServiceController) ServiceUpdateHTTP ¶
func (s *ServiceController) ServiceUpdateHTTP(c *gin.Context)
ServiceUpdateHTTP godoc @Summary 修改 HTTP 服务 @Description 修改 HTTP 服务 @Tags 服务管理 @ID /service/service_update_http @Accept json @Produce json @Param body body dto.ServiceUpdateHTTPInput true "body" @Success 200 {object} middleware.Response{data=string} "Success" @Router /service/service_update_http [POST]
func (*ServiceController) ServiceUpdateTCP ¶
func (s *ServiceController) ServiceUpdateTCP(c *gin.Context)
ServiceUpdateTCP godoc @Summary 修改 TCP 服务 @Description 修改 TCP 服务 @Tags 服务管理 @ID /service/service_update_tcp @Accept json @Produce json @Param body body dto.ServiceUpdateTcpInput true "body" @Success 200 {object} middleware.Response{data=string} "Success" @Router /service/service_update_tcp [POST]