22 lines
530 B
Go
22 lines
530 B
Go
package server
|
|
|
|
import (
|
|
crr "git.loafle.net/commons_go/rpc/registry"
|
|
"git.loafle.net/commons_go/server"
|
|
oopcs "git.loafle.net/overflow/overflow_probe_container/server"
|
|
"git.loafle.net/overflow/overflow_probe_container_network/service"
|
|
)
|
|
|
|
func New(pidPath string) server.Server {
|
|
rpcRegistry := crr.NewRPCRegistry()
|
|
service.RegisterRPC(rpcRegistry)
|
|
|
|
rpcSH := oopcs.NewRPCServletHandler(rpcRegistry)
|
|
socketHandler := newSocketHandler(rpcSH)
|
|
|
|
sh := newServerHandler(pidPath, socketHandler)
|
|
s := oopcs.New(sh)
|
|
|
|
return s
|
|
}
|