Beispiel #1
0
func NewBlance() *Blance {
	return &Blance{
		mserver: mserver.NewManager(),
		mclient: mclient.NewManager(),
		info:    info.NewInfo(),
	}
}
Beispiel #2
0
func NewCenter() *Center {
	flag.StringVar(&host, "host", "127.0.0.1", "blance host.")
	flag.StringVar(&port, "port", "8090", "blance port.")

	return &Center{
		server:   server.NewServer(),
		cmanager: mclient.NewManager(),
	}
}