controller

package
v0.26.6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 6 Imported by: 0

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 心跳配置结构

Jump to

Keyboard shortcuts

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