first pass server

This commit is contained in:
Derek Collison
2012-11-12 14:26:25 -08:00
parent 8181d74f0e
commit 05ae8b55b8

24
gnatsd.go Normal file
View File

@@ -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()
}