ing
This commit is contained in:
@@ -1,17 +1,23 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
crpj "git.loafle.net/commons/rpc-go/protocol/json"
|
||||
cssw "git.loafle.net/commons/server-go/socket/web"
|
||||
"git.loafle.net/overflow/probe_gateway_rpc/config"
|
||||
"git.loafle.net/overflow/probe_gateway_rpc/servlet"
|
||||
)
|
||||
|
||||
func New(_config *config.Config) *cssw.Server {
|
||||
rpcServerCodec := crpj.NewServerCodec()
|
||||
|
||||
as := &servlet.AuthServlets{}
|
||||
as.RPCServerCodec = rpcServerCodec
|
||||
as.UseSession = true
|
||||
|
||||
ps := &servlet.ProbeServlets{}
|
||||
ps.RPCServerCodec = rpcServerCodec
|
||||
ps.UseSession = true
|
||||
|
||||
ds := &servlet.DataServlets{}
|
||||
|
||||
sh := &ServerHandlers{
|
||||
|
||||
Reference in New Issue
Block a user