package main import ( "SciencesServer/cmd/serve" "flag" "runtime" "github.com/common-nighthawk/go-figure" ) var ( ConfigFile = flag.String("config", "./config.yaml", "DB data path") RpcConfigFile = flag.String("rpc_config", "./keys/config.yaml", "DB data path") ) // @title SciencesServer API文档 // @version 1.0 // @description SciencesServer API文档 // @host 192.168.0.153:9000 // @contact.name Henry // @contact.url https://ipeace.org.cn // @contact.email email@ipeace.org.cn func main() { flag.Parse() runtime.GOMAXPROCS(runtime.NumCPU()) figure.NewFigure("Tenant Serve", "", true).Print() serve.NewServe()(&serve.Option{Config: *ConfigFile, RpcConfig: *RpcConfigFile}).Run() }