Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "fgateway", Short: "a gateway to your functions", Long: `a gateway to your functions`, Run: func(cmd *cobra.Command, args []string) { lvl, _ := cmd.Flags().GetString("log-level") switch lvl { case "info": log.SetLevel(log.InfoLevel) case "error": log.SetLevel(log.ErrorLevel) case "warn": log.SetLevel(log.WarnLevel) case "debug": log.SetLevel(log.DebugLevel) } go runMetricsServer(cmd) go runGRPCServer(cmd) select {} }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.