feat:完善项目
This commit is contained in:
29
main.go
Normal file
29
main.go
Normal file
@ -0,0 +1,29 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user