mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
first pass server
This commit is contained in:
24
gnatsd.go
Normal file
24
gnatsd.go
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user