Documentation ¶
Index ¶
- Constants
- type ServiceManagerApi
- func (s *ServiceManagerApi) Destroy() error
- func (s *ServiceManagerApi) GetServiceInfo(ctx *gin.Context)
- func (s *ServiceManagerApi) GetServiceStatus(ctx *gin.Context)
- func (s *ServiceManagerApi) Init() error
- func (s *ServiceManagerApi) MetricsForServiceLastDay(ctx *gin.Context)
- func (s *ServiceManagerApi) MetricsForServiceLastSixHour(ctx *gin.Context)
- func (s *ServiceManagerApi) MetricsForServiceLastTwoHour(ctx *gin.Context)
- func (s *ServiceManagerApi) MetricsForServiceTwelveHour(ctx *gin.Context)
- func (s *ServiceManagerApi) RegisterApi(router gin.IRouter) error
- func (s *ServiceManagerApi) SetBestService(ctx *gin.Context)
- func (s *ServiceManagerApi) UnRegisterService(ctx *gin.Context)
- func (s *ServiceManagerApi) UnSetBestService(ctx *gin.Context)
Constants ¶
View Source
const AppName = "ServiceManageApi"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceManagerApi ¶
type ServiceManagerApi struct {
ServiceManageSvc ServiceManage.ServiceManage
}
func (*ServiceManagerApi) Destroy ¶
func (s *ServiceManagerApi) Destroy() error
func (*ServiceManagerApi) GetServiceInfo ¶
func (s *ServiceManagerApi) GetServiceInfo(ctx *gin.Context)
//获取服务信息
func (*ServiceManagerApi) GetServiceStatus ¶
func (s *ServiceManagerApi) GetServiceStatus(ctx *gin.Context)
func (*ServiceManagerApi) Init ¶
func (s *ServiceManagerApi) Init() error
func (*ServiceManagerApi) MetricsForServiceLastDay ¶
func (s *ServiceManagerApi) MetricsForServiceLastDay(ctx *gin.Context)
获取指定服务24小时内的指标
func (*ServiceManagerApi) MetricsForServiceLastSixHour ¶
func (s *ServiceManagerApi) MetricsForServiceLastSixHour(ctx *gin.Context)
获取指定服务的6小时内的指标
func (*ServiceManagerApi) MetricsForServiceLastTwoHour ¶
func (s *ServiceManagerApi) MetricsForServiceLastTwoHour(ctx *gin.Context)
获取指定服务2小时的指标
func (*ServiceManagerApi) MetricsForServiceTwelveHour ¶
func (s *ServiceManagerApi) MetricsForServiceTwelveHour(ctx *gin.Context)
获取指定服务12小时内的指标
func (*ServiceManagerApi) RegisterApi ¶
func (s *ServiceManagerApi) RegisterApi(router gin.IRouter) error
func (*ServiceManagerApi) SetBestService ¶
func (s *ServiceManagerApi) SetBestService(ctx *gin.Context)
指定服务为最优
func (*ServiceManagerApi) UnRegisterService ¶
func (s *ServiceManagerApi) UnRegisterService(ctx *gin.Context)
服务注销
func (*ServiceManagerApi) UnSetBestService ¶
func (s *ServiceManagerApi) UnSetBestService(ctx *gin.Context)
还原服务优先级
Click to show internal directories.
Click to hide internal directories.