diff --git a/gnatsd.go b/gnatsd.go new file mode 100644 index 00000000..48f32080 --- /dev/null +++ b/gnatsd.go @@ -0,0 +1,24 @@ +// Copyright 2012 Apcera Inc. All rights reserved. + +package main + +import ( + "log" + "net/http" + _ "net/http/pprof" + "github.com/apcera/gnatsd/server" +) + +func main() { + // Parse flags + + // Profiler + go func() { + log.Println(http.ListenAndServe("localhost:6062", nil)) + }() + // Parse config if given + log.Println("starting up!") + + s := server.New() + s.AcceptLoop() +} \ No newline at end of file