INNER CODE UNIT · Go

main

kite-org/kite · main.go:21

func main() {
	klog.InitFlags(nil)
	if len(os.Args) > 1 && os.Args[1] == "cluster-agent" {
		ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
		err := clusteragent.Run(ctx, os.Args[2:])
		stop()
		if err != nil {
			log.Fatalf("Failed to run cluster agent: %v", err)
		}
		return
	}
	flag.Parse()
	go func() {
		log.Println(http.ListenAndServe("localhost:6060", nil))
	}()

	appCtx, cancelApp := context.WithCancel(context.Background())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…