Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HostDownActions = []string{hostconsts.SHUTDOWN_SERVERS}
)
Functions ¶
func GetHealthStatus ¶
func GetHealthStatus() string
func NewEtcdOptions ¶
func NewEtcdOptions( opt *common_options.EtcdOptions, leaseTimeout, dialTimeout, requestTimeout int, ) (*etcd.SEtcdOptions, error)
func SetOnHostDown ¶
Types ¶
type SHostHealthManager ¶
type SHostHealthManager struct {
// contains filtered or unexported fields
}
func InitHostHealthManager ¶
func InitHostHealthManager(hostId, onHostDown string) (*SHostHealthManager, error)
func (*SHostHealthManager) OnKeepaliveFailure ¶
func (m *SHostHealthManager) OnKeepaliveFailure()
func (*SHostHealthManager) OnUnhealth ¶
func (m *SHostHealthManager) OnUnhealth()
func (*SHostHealthManager) Reconnect ¶
func (m *SHostHealthManager) Reconnect()
func (*SHostHealthManager) SetOnHostDown ¶
func (m *SHostHealthManager) SetOnHostDown(onHostDown string)
func (*SHostHealthManager) StartHealthCheck ¶
func (m *SHostHealthManager) StartHealthCheck() error
Click to show internal directories.
Click to hide internal directories.