mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
24 lines
364 B
Go
24 lines
364 B
Go
// 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()
|
|
} |