Esempio n. 1
0
func Register() {
	services := map[string]center.Service{
	//		"CardHttp": &Http{},
	}

	for name, cb := range services {
		center.Register(name, cb)
	}
}
Esempio n. 2
0
func Register() {
	services := map[string]center.Service{
		"StressAdd": &Add{},
	}

	for name, cb := range services {
		center.Register(name, cb)
	}
}
Esempio n. 3
0
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)
	}
}