Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MasterOption ¶
type MasterOption func(*Options)
type RegistryMaster ¶
type RegistryMaster struct { sync.RWMutex waitgroup.WaitGroupWrapper // contains filtered or unexported fields }
*
- master 的主要作用
- 负责全局调度,负载均衡
- 功能:master抢占election,接受请求返回master地址 *
func New ¶
func New(opts ...MasterOption) (*RegistryMaster, error)
func (*RegistryMaster) Stop ¶
func (r *RegistryMaster) Stop()
Click to show internal directories.
Click to hide internal directories.