示例#1
0
文件: kv.go 项目: dhiltgen/swarm
// Init is exported
func Init() {
	// Register to libkv
	zookeeper.Register()
	consul.Register()
	etcd.Register()

	// Register to internal Swarm discovery service
	discovery.Register("zk", &Discovery{backend: store.ZK})
	discovery.Register("consul", &Discovery{backend: store.CONSUL})
	discovery.Register("etcd", &Discovery{backend: store.ETCD})
}
示例#2
0
文件: consul.go 项目: postfix/golib-1
func init() {
	discovery.Register("consul", &Discovery{})
}
示例#3
0
文件: kv.go 项目: jiangshengwu/swarm
// Init is exported
func Init() {
	discovery.Register("zk", &Discovery{backend: store.ZK})
	discovery.Register("consul", &Discovery{backend: store.CONSUL})
	discovery.Register("etcd", &Discovery{backend: store.ETCD})
}
示例#4
0
func init() {
	discovery.Register("consul", &ConsulDiscoveryService{})
}
示例#5
0
// Init is exported
func Init() {
	discovery.Register("token", &Discovery{})
}
示例#6
0
func init() {
	discovery.Register("file", &FileDiscoveryService{})
}
示例#7
0
文件: file.go 项目: rkazak/swarm
// Init is exported
func Init() {
	discovery.Register("file", &Discovery{})
}
示例#8
0
文件: etcd.go 项目: marsmensch/swarm
func init() {
	discovery.Register("etcd", &EtcdDiscoveryService{})
}
示例#9
0
文件: token.go 项目: marsmensch/swarm
func init() {
	discovery.Register("token", &TokenDiscoveryService{})
}
示例#10
0
func init() {
	discovery.Register("nodes", &NodesDiscoveryService{})
}
示例#11
0
func TestRegister(t *testing.T) {
	discovery := &Discovery{path: "/path/to/file"}
	assert.Error(t, discovery.Register("0.0.0.0"))
}
示例#12
0
文件: etcd.go 项目: postfix/golib-1
func init() {
	discovery.Register("etcd", &Discovery{})
}
示例#13
0
文件: serf.go 项目: adouang/swarm
// Init is exported
func Init() {
	discovery.Register("serf", &Discovery{})
}
示例#14
0
func init() {
	discovery.Register("zk", &Discovery{})
}
示例#15
0
func init() {
	discovery.Register("zk", &ZkDiscoveryService{})
}
示例#16
0
func init() {
	discovery.Register("zk", &Discovery{name: "zk"})
	discovery.Register("consul", &Discovery{name: "consul"})
	discovery.Register("etcd", &Discovery{name: "etcd"})
}