Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &cobra.Command{ Use: "analyzer", Short: "Skydive analyzer", Long: "Skydive analyzer", SilenceUsage: true, Run: func(cmd *cobra.Command, args []string) { logging.SetLoggingID("analyzer") logging.GetLogger().Notice("Skydive Analyzer starting...") server, err := analyzer.NewServerFromConfig() if err != nil { logging.GetLogger().Fatalf("Can't start Analyzer : %v", err) } server.ListenAndServe() logging.GetLogger().Notice("Skydive Analyzer started !") ch := make(chan os.Signal) signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM) <-ch server.Stop() logging.GetLogger().Notice("Skydive Analyzer stopped.") }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.