Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthOption ¶
type HealthOption struct { Address string SuccessThreshold uint FailureThreshold uint Timeout time.Duration Period time.Duration InitialCondition bool }
func (*HealthOption) Equal ¶ added in v0.4.1
func (ho *HealthOption) Equal(h HealthOption) bool
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AddWorker ¶
func (m *Manager) AddWorker(uid string, address string, option HealthOption) error
func (*Manager) GetWorkerHealthOptionMap ¶ added in v0.4.1
func (m *Manager) GetWorkerHealthOptionMap(uid string) (map[string]HealthOption, error)
type Worker ¶
type Worker struct { HealthOption // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.