ing
This commit is contained in:
parent
32dfe726ec
commit
df755f58d7
|
@ -1,16 +1,20 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
crpj "git.loafle.net/commons/rpc-go/protocol/json"
|
||||||
csgw "git.loafle.net/commons/server-go/socket/web"
|
csgw "git.loafle.net/commons/server-go/socket/web"
|
||||||
"git.loafle.net/overflow/member_gateway_rpc/config"
|
"git.loafle.net/overflow/member_gateway_rpc/config"
|
||||||
"git.loafle.net/overflow/member_gateway_rpc/servlet"
|
"git.loafle.net/overflow/member_gateway_rpc/servlet"
|
||||||
)
|
)
|
||||||
|
|
||||||
func New(_config *config.Config) *csgw.Server {
|
func New(_config *config.Config) *csgw.Server {
|
||||||
|
rpcServerCodec := crpj.NewServerCodec()
|
||||||
|
|
||||||
ws := &servlet.WebappServlets{
|
ws := &servlet.WebappServlets{
|
||||||
VerifyKey: _config.VerifyKey,
|
VerifyKey: _config.VerifyKey,
|
||||||
SignKey: _config.SignKey,
|
SignKey: _config.SignKey,
|
||||||
}
|
}
|
||||||
|
ws.RPCServerCodec = rpcServerCodec
|
||||||
ws.UseSession = true
|
ws.UseSession = true
|
||||||
|
|
||||||
sh := &ServerHandlers{
|
sh := &ServerHandlers{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user