添加了节点服务器,各个服务器之间支持多对多

This commit is contained in:
flswld committed 2022-12-24 04:14:33 +08:00
1 parent 16dd9c1e87
commit 7e86669628
92 files changed
+1429 -287

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
package main
import (
"context"
"hk4e/node/app"
"github.com/spf13/cobra"
)
// NodeCmd 检查配表命令
func NodeCmd() *cobra.Command {
var cfg string
c := &cobra.Command{
Use: "node",
Short: "node server",
RunE: func(cmd *cobra.Command, args []string) error {
return app.Run(context.Background(), cfg)
},
}
c.Flags().StringVar(&cfg, "config", "application.toml", "config file")
return c
}