host_health

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

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()

Jump to

Keyboard shortcuts

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