func Bonjour(intfName string) { b := bonjour.Bonjour{ ServiceName: DOCKER_CLUSTER_SERVICE, ServiceDomain: DOCKER_CLUSTER_DOMAIN, ServicePort: DOCKER_CLUSTER_SERVICE_PORT, InterfaceName: intfName, BindToIntf: true, Notify: notify{}, } b.Start() }
func main() { var intfName = "" if len(os.Args) > 1 { intfName = os.Args[1] } b := bonjour.Bonjour{ ServiceName: DOCKER_CLUSTER_SERVICE, ServiceDomain: DOCKER_CLUSTER_DOMAIN, ServicePort: 9999, InterfaceName: intfName, BindToIntf: true, Notify: notify{}, } b.Start() select {} }