config test

This commit is contained in:
geek 2018-04-09 22:08:22 +09:00
parent 0a70f33d5f
commit 3b2c0957a1
3 changed files with 14 additions and 6 deletions

View File

@ -2,7 +2,10 @@
"serverHandler": { "serverHandler": {
"name": "Gateway WebApp", "name": "Gateway WebApp",
"network": "tcp4", "network": "tcp4",
"addr": "192.168.1.103:19090", "address": "192.168.1.103:19090",
"concurrency": 262144,
"keepAlive": 60,
"handshakeTimeout": 60,
"maxMessageSize": 8192, "maxMessageSize": 8192,
"readBufferSize": 1024, "readBufferSize": 1024,
"writeBufferSize": 1024, "writeBufferSize": 1024,

View File

@ -1,6 +1,11 @@
package: git.loafle.net/overflow/member_gateway_rpc package: git.loafle.net/overflow/member_gateway_rpc
import: import:
- package: git.loafle.net/commons/server-go
- package: git.loafle.net/commons/configuration-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 - package: git.loafle.net/overflow/gateway_rpc
subpackages:
- server
- servlet

View File

@ -1,16 +1,16 @@
package server package server
import ( 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" "git.loafle.net/overflow/member_gateway_rpc/servlet"
) )
func New() *csgw.Server { func New() *web.Server {
rs := &servlet.RPCServlets{} rs := &servlet.RPCServlets{}
sh := &ServerHandlers{} sh := &ServerHandlers{}
sh.RegisterServlet("/webapp", rs) sh.RegisterServlet("/webapp", rs)
s := &csgw.Server{ s := &web.Server{
ServerHandler: sh, ServerHandler: sh,
} }