add nats-api binary

This commit is contained in:
wh1te909 2021-01-15 18:21:25 +00:00
parent a13f6f1e68
commit 5ef6a14d24
2 changed files with 9 additions and 0 deletions

View File

@ -2,14 +2,23 @@ package main
import (
"flag"
"fmt"
"github.com/wh1te909/tacticalrmm/natsapi"
)
var version = "1.0.0"
func main() {
ver := flag.Bool("version", false, "Prints version")
apiHost := flag.String("api-host", "", "django api base url")
debug := flag.Bool("debug", false, "Debug")
flag.Parse()
if *ver {
fmt.Println(version)
return
}
api.Listen(*apiHost, *debug)
}

BIN
natsapi/bin/nats-api Executable file

Binary file not shown.