Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "start", Short: "vblog", Long: ``, Run: func(cmd *cobra.Command, args []string) { switch configType { case "env": _, err := conf.LoadConfigFromEnv() cobra.CheckErr(err) default: _, err := conf.LoadConfigFromToml(configFile) cobra.CheckErr(err) } r := gin.Default() logger.L().Debug().Msgf("controllers: %s", ioc.ShowConntrollers()) logger.L().Debug().Msgf("apis: %s", ioc.ShowApis()) err := ioc.InitController() cobra.CheckErr(err) err = ioc.InitHttpApi("/vblog/api/v1", r) cobra.CheckErr(err) httpServer := protocol.NewHttp(r) err = httpServer.Start() cobra.CheckErr(err) }, }
root command vblog-api start
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.