master

package
v0.0.0-...-a3f0618 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MasterOption

type MasterOption func(*Options)

func WithAddr

func WithAddr(addr string) MasterOption

WithAddr

type Options

type Options struct {
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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