Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHealthStatus ¶
func GetHealthStatus() string
func NewEtcdOptions ¶
func NewEtcdOptions( opt *common_options.EtcdOptions, leaseTimeout, dialTimeout, requestTimeout int, ) (*etcd.SEtcdOptions, error)
func StartService ¶
func StartService()
Types ¶
type SHostHealthManager ¶
type SHostHealthManager struct {
// contains filtered or unexported fields
}
func InitHostHealthManager ¶
func InitHostHealthManager(hostId string) (*SHostHealthManager, error)
func (*SHostHealthManager) GetKey ¶
func (m *SHostHealthManager) GetKey() string
func (*SHostHealthManager) OnKeepaliveFailure ¶
func (m *SHostHealthManager) OnKeepaliveFailure()
func (*SHostHealthManager) OnUnhealth ¶
func (m *SHostHealthManager) OnUnhealth()
func (*SHostHealthManager) Reconnect ¶
func (m *SHostHealthManager) Reconnect()
func (*SHostHealthManager) StartHealthCheck ¶
func (m *SHostHealthManager) StartHealthCheck() error
type SHostHealthService ¶
type SHostHealthService struct {
*service.SServiceBase
}
func (*SHostHealthService) InitService ¶
func (host *SHostHealthService) InitService()
func (*SHostHealthService) OnExitService ¶
func (host *SHostHealthService) OnExitService()
func (*SHostHealthService) RunService ¶
func (host *SHostHealthService) RunService()
Click to show internal directories.
Click to hide internal directories.