Esempio n. 1
0
func Init(cfg config.ConfigInterface, errorChannel chan error) error {
	graphiteConfig := cfg.GraphiteConfig()

	if graphiteConfig.TCPListenPort != "" {
		go setupTCPListener(graphiteConfig.TCPListenPort, errorChannel)
	}

	if graphiteConfig.UDPListenPort != "" {
		go setupUDPListener(graphiteConfig.UDPListenPort, errorChannel)
	}

	return nil
}