Exemple #1
0
func RegisterEtc() error {
	err := etclib.Dial(config.PushdConf.EtcServers)
	if err != nil {
		return err
	}
	err = etclib.BootService(config.PushdConf.S2sListenAddr, etclib.SERVICE_PUSHD)
	return err
}
Exemple #2
0
func RegisterEtc(etcServers []string) error {
	err := etclib.Dial(etcServers)
	if err != nil {
		return err
	}
	err = etclib.BootService(localAddr, etclib.SERVICE_GCOLLECTOR)
	return err
}