feat(*) add response phase (#32)

This commit is contained in:
Javier
2020-06-22 09:40:57 -05:00
committed by GitHub
parent c1ee697a37
commit 9cd14d59ec
2 changed files with 18 additions and 22 deletions

12
main.go
View File

@@ -4,14 +4,14 @@ package main
import (
"flag"
"runtime"
"fmt"
"github.com/ugorji/go/codec"
"log"
"net"
"net/rpc"
"os"
"reflect"
"fmt"
"runtime"
"time"
)
@@ -19,9 +19,9 @@ var version = "development"
/* flags */
var (
kongPrefix = flag.String("kong-prefix", "/usr/local/kong", "Kong prefix path (specified by the -p argument commonly used in the kong cli)")
dump = flag.String("dump-plugin-info", "", "Dump info about `plugin` as a MessagePack object")
pluginsDir = flag.String("plugins-directory", "", "Set directory `path` where to search plugins")
kongPrefix = flag.String("kong-prefix", "/usr/local/kong", "Kong prefix path (specified by the -p argument commonly used in the kong cli)")
dump = flag.String("dump-plugin-info", "", "Dump info about `plugin` as a MessagePack object")
pluginsDir = flag.String("plugins-directory", "", "Set directory `path` where to search plugins")
showVersion = flag.Bool("version", false, "Print binary and runtime version")
)
@@ -118,7 +118,7 @@ func main() {
if socket != "" {
go func() {
for {
if ! isParentAlive() {
if !isParentAlive() {
log.Printf("Kong exited; shutting down...")
os.Exit(0)
}