Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServeCommand = &cobra.Command{ Use: "server.start", Short: "Run etcd admin restful api", Run: func(cmd *cobra.Command, args []string) { zerolog.SetGlobalLevel(zerolog.Level(logLevel)) log.Info("Listening on port:" + port) etcd.Connect(etcdHosts, etcdCertFile, etcdKeyFile, etcdCaFile, etcdServerName) log.Info("Successfully connected to etcd server") mysql.Adapter.Connect(mysql.Adapter{}) log.Info("Successfully connected to mysql server") beego.SetLevel(beego.LevelWarning) beego.Run(":" + port) }, }
ServeCommand : server command for configurations curd
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.