Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
}
func (*Controller) GetHeartbeatConfig ¶
func (h *Controller) GetHeartbeatConfig(c *response.Context)
GetHeartbeatConfig 获取当前心跳配置
func (*Controller) GetHeartbeatStatus ¶
func (h *Controller) GetHeartbeatStatus(c *response.Context)
GetHeartbeatStatus 获取所有集群的心跳状态
func (*Controller) SaveHeartbeatConfig ¶
func (h *Controller) SaveHeartbeatConfig(c *response.Context)
SaveHeartbeatConfig 保存心跳配置
type HeartbeatConfig ¶
type HeartbeatConfig struct {
HeartbeatIntervalSeconds int `json:"heartbeat_interval_seconds"` // 心跳间隔时间(秒)
HeartbeatFailureThreshold int `json:"heartbeat_failure_threshold"` // 心跳失败阈值
ReconnectMaxIntervalSeconds int `json:"reconnect_max_interval_seconds"` // 重连最大间隔时间(秒)
MaxRetryAttempts int `json:"max_retry_attempts"` // 最大重试次数
}
HeartbeatConfig 心跳配置结构
Click to show internal directories.
Click to hide internal directories.