10 "git.curoverse.com/arvados.git/sdk/go/config"
13 var debugLogf = func(string, ...interface{}) {}
16 configPath := flag.String("config", "/etc/arvados/ws/ws.yml", "`path` to config file")
17 dumpConfig := flag.Bool("dump-config", false, "show current configuration and exit")
18 cfg := DefaultConfig()
21 err := config.LoadFile(&cfg, *configPath)
26 debugLogf = log.Printf
30 txt, err := config.Dump(&cfg)
34 fmt.Print(string(txt))
38 eventSource := &pgEventSource{
39 PgConfig: cfg.Postgres,
40 QueueSize: cfg.ServerEventQueue,
44 ReadTimeout: time.Minute,
45 WriteTimeout: time.Minute,
46 MaxHeaderBytes: 1 << 20,
49 eventSource: eventSource,
52 eventSource.NewSink().Stop()
53 log.Fatal(srv.ListenAndServe())