master

package
v0.0.0-...-17d8d8c Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//EtcdIDKey Etcd ID Key
	EtcdIDKey = util.EtcdMasterKey + "/id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Master

type Master struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Master process gate request.

func NewMaster

func NewMaster(host string, etcdAddrs []string) (*Master, error)

NewMaster create new Master.

func (*Master) NewID

NewID return an new id

func (*Master) RegionGet

RegionGet 获取自己节点的region

Jump to

Keyboard shortcuts

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