config test
This commit is contained in:
parent
0a70f33d5f
commit
3b2c0957a1
|
@ -2,7 +2,10 @@
|
|||
"serverHandler": {
|
||||
"name": "Gateway WebApp",
|
||||
"network": "tcp4",
|
||||
"addr": "192.168.1.103:19090",
|
||||
"address": "192.168.1.103:19090",
|
||||
"concurrency": 262144,
|
||||
"keepAlive": 60,
|
||||
"handshakeTimeout": 60,
|
||||
"maxMessageSize": 8192,
|
||||
"readBufferSize": 1024,
|
||||
"writeBufferSize": 1024,
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
package: git.loafle.net/overflow/member_gateway_rpc
|
||||
import:
|
||||
- package: git.loafle.net/commons/server-go
|
||||
- package: git.loafle.net/commons/configuration-go
|
||||
- package: git.loafle.net/overflow/central_api
|
||||
- package: git.loafle.net/commons/logging-go
|
||||
- package: git.loafle.net/commons/server-go
|
||||
subpackages:
|
||||
- socket/web
|
||||
- package: git.loafle.net/overflow/gateway_rpc
|
||||
subpackages:
|
||||
- server
|
||||
- servlet
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
package server
|
||||
|
||||
import (
|
||||
csgw "git.loafle.net/commons/server-go/socket/web"
|
||||
"git.loafle.net/commons/server-go/socket/web"
|
||||
"git.loafle.net/overflow/member_gateway_rpc/servlet"
|
||||
)
|
||||
|
||||
func New() *csgw.Server {
|
||||
func New() *web.Server {
|
||||
rs := &servlet.RPCServlets{}
|
||||
sh := &ServerHandlers{}
|
||||
sh.RegisterServlet("/webapp", rs)
|
||||
|
||||
s := &csgw.Server{
|
||||
s := &web.Server{
|
||||
ServerHandler: sh,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user