13 Star 87 Fork 36

crawlab-team/crawlab

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
api.go 379 Bytes
一键复制 编辑 原始数据 按行查看 历史
tikazyq 提交于 2021-04-29 10:44 +08:00 . updated code structure
package cmd
import (
"crawlab/apps"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(apiCmd)
}
var apiCmd = &cobra.Command{
Use: "api",
Aliases: []string{"A"},
Short: "Start API server",
Long: `Start API server of Crawlab which serves data to frontend`,
Run: func(cmd *cobra.Command, args []string) {
api := apps.NewApi()
apps.Start(api)
},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/crawlab-team/crawlab.git
git@gitee.com:crawlab-team/crawlab.git
crawlab-team
crawlab
crawlab
master

搜索帮助