rd

package
v0.0.0-...-6ac6f58 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterDiscover

type RegisterDiscover interface {
	Quit() error
	Register() (types.RoleChangeEvent, error)
	IsMaster() (bool, *types.DistCCControllerInfo, error)
	GetServers() ([]*types.DistCCControllerInfo, error)
}

RegisterDiscover takes responsibility to register and elect a master, also watching the clusters change to notify the RoleChangeEvent.

func NewRegisterDiscover

func NewRegisterDiscover(conf *config.DistCCControllerConfig) (RegisterDiscover, error)

NewRegisterDiscover get a new register-discover

Jump to

Keyboard shortcuts

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