Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerCmd = &cobra.Command{ Use: "server", Short: "start http api server", Args: func(cmd *cobra.Command, args []string) error { return nil }, PreRun: func(cmd *cobra.Command, args []string) { mysql.Init() if config.GetString("app.mode") == "release" { gin.SetMode(gin.ReleaseMode) } binding.Validator = validate.GinValidator() }, Run: func(cmd *cobra.Command, args []string) { api.Run() }, }
ServerCmd http server
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.