zookeeper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConsumerRegistryZkClient string = "consumer zk registry"
	WatcherZkClient          string = "watcher zk registry"
)
View Source
const (
	CONSUMER = iota
	CONFIGURATOR
	ROUTER
	PROVIDER
)
View Source
const (
	MAX_TIMES                   = 15 // 设置(wathcer)watchDir()等待时长
	Wactch_Event_Channel_Size   = 32 // 用于设置通知selector的event channel的size
	ZKCLIENT_EVENT_CHANNEL_SIZE = 4  // 设置用于zk client与watcher&consumer&provider之间沟通的channel的size
)
View Source
const (
	DEFAULT_REGISTRY_TIMEOUT = 1
)
View Source
const (
	ProviderRegistryZkClient string = "consumer zk registry"
)

Variables

View Source
var (
	DubboNodes       = [...]string{"consumers", "configurators", "routers", "providers"}
	DubboRole        = [...]string{"consumer", "", "", "provider"}
	RegistryZkClient = "zk registry"
)
View Source
var (
	ZK_CLIENT_CONN_NIL_ERR = errors.New("zookeeperclient{conn} is nil")
)

Functions

func NewConsumerZookeeperRegistry

func NewConsumerZookeeperRegistry(opts ...registry.Option) registry.Registry

func NewProviderZookeeperRegistry

func NewProviderZookeeperRegistry(opts ...registry.Option) registry.Registry

Types

type DubboType

type DubboType int

func (DubboType) Role

func (t DubboType) Role() string

func (DubboType) String

func (t DubboType) String() string

Jump to

Keyboard shortcuts

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