"github.com/musicglue/skynet" "github.com/musicglue/skynet/client" "github.com/musicglue/skynet/examples/testing/fibonacci" "math/rand" "os" "os/signal" "strconv" "strings" "sync" "syscall" "time" ) var requests = flag.Int("requests", 10, "number of concurrent requests") var doozer = flag.String("doozer", skynet.GetDefaultEnvVar("SKYNET_DZHOST", "127.0.0.1:8046"), "doozer instance to connect to") var totalRequests = expvar.NewInt("total-requests") var successfulRequests = expvar.NewInt("successful-requests") var testserviceClient *client.ServiceClient var fibserviceClient *client.ServiceClient func main() { flag.Parse() doozerConfig := &skynet.DoozerConfig{ Uri: *doozer, AutoDiscover: true, }
continue } for _, coll := range colls { sdata = append(sdata, db+":"+coll) } } buf := new(bytes.Buffer) searchTmpl.Execute(buf, sdata) layoutTmpl.Execute(w, template.HTML(buf.String())) } var addr = flag.String("addr", ":8080", "dashboard listener address") var doozer = flag.String("doozer", skynet.GetDefaultEnvVar("SKYNET_DZHOST", skynet.DefaultDoozerdAddr), "initial doozer instance to connect to") var doozerboot = flag.String("doozerboot", skynet.GetDefaultEnvVar("SKYNET_DZNSHOST", ""), "initial doozer instance to connect to") var autodiscover = flag.Bool("autodiscover", skynet.GetDefaultEnvVar("SKYNET_DZDISCOVER", "true") == "true", "auto discover new doozer instances") var debug = flag.Bool("d", false, "print debug info") var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file") var webroot = flag.String("webroot", ".", "root of templates and javascript libraries") var mgoserver = flag.String("mgoserver", skynet.GetDefaultEnvVar("SKYNET_MGOSERVER", ""), "comma-separated list of urls of mongodb servers")