feat: add rpc gateway and optimize code

This commit is contained in:
zhuyasen
2022-10-31 23:40:40 +08:00
parent 64858269a4
commit e7afe9c5be
51 changed files with 3964 additions and 490 deletions

View File

@@ -0,0 +1,16 @@
package main
import (
"github.com/zhufuyi/sponge/cmd/serverNameExample_gwExample/initial"
"github.com/zhufuyi/sponge/pkg/app"
)
func main() {
initial.Config()
servers := initial.RegisterServers()
closes := initial.RegisterClose(servers)
a := app.New(servers, closes)
a.Run()
}