Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "ari-proxy", Short: "Proxy for the Asterisk REST interface.", Long: `ari-proxy is a proxy for working the Asterisk daemon over nats. ARI commands are exposed over NATS for operation via the ari client transport under github.com/CyCoreSystems/ari/client/nc.`, Run: func(cmd *cobra.Command, args []string) { log := log15.New() var handler log15.Handler = log15.StdoutHandler verbose := viper.GetBool("verbose") if verbose { handler = log15.LvlFilterHandler(log15.LvlDebug, handler) } else { handler = log15.LvlFilterHandler(log15.LvlInfo, handler) } log.SetHandler(handler) if verbose { log.Info("Verbose logging enabled") } os.Exit(runServer(log)) }, }
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.