host_health

package
v0.3.9-9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 16 Imported by: 1

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

func SetOnHostDown(onHostDown string) error

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

Jump to

Keyboard shortcuts

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