示例#1
0
文件: must.go 项目: princehuang/card
func Register() {
	services := map[string]center.Service{
	//		"CardHttp": &Http{},
	}

	for name, cb := range services {
		center.Register(name, cb)
	}
}
示例#2
0
文件: must.go 项目: KittyCookie/claw
func Register() {
	services := map[string]center.Service{
		"StressAdd": &Add{},
	}

	for name, cb := range services {
		center.Register(name, cb)
	}
}
示例#3
0
文件: must.go 项目: KittyCookie/claw
func Register() {
	services := map[string]center.Service{
		"Master": &Master{},
		"Harbor": &Harbor{},
		"Error":  &Error{},
		"Test":   &Test{},
		"Gate":   &Gate{},
	}

	for name, cb := range services {
		center.Register(name, cb)
	}
}