Ejemplo n.º 1
0
func main() {
	flag.Parse()
	srv := new(Vtram)
	srv.init()
	srv.Debuglevel = *debug
	srv.Start(srv)
	srv.StartStatsServer()
	vtsrv.StartListener("tcp", *addr, &srv.Srv)
}
Ejemplo n.º 2
0
func main() {
	flag.Parse()
	if flag.NArg() != 1 {
		log.Println("expecting directory name")
		return
	}

	srv := new(Grande)
	srv.init()
	srv.topDir = flag.Arg(0)
	srv.Debuglevel = *debug
	srv.Start(srv)
	srv.StartStatsServer()
	vtsrv.StartListener("tcp", *addr, &srv.Srv)
}
Ejemplo n.º 3
0
func main() {
	flag.Parse()
	if flag.NArg() != 1 {
		fmt.Printf("expected file name\n")
		return
	}

	srv := new(Vtmap)
	err := srv.init(flag.Arg(0))
	if err != nil {
		fmt.Printf("Error: %v\n", err)
		return
	}

	srv.Debuglevel = *debug
	srv.Start(srv)
	srv.StartStatsServer()
	vtsrv.StartListener("tcp", *addr, &srv.Srv)
}