overflow_discovery/server/server.go
crusader 1f366db739 ing
2017-11-01 19:05:50 +09:00

18 lines
293 B
Go

package server
import (
"git.loafle.net/commons_go/rpc"
"git.loafle.net/commons_go/server"
)
func New(addr string, registry rpc.Registry) server.Server {
sh := NewServerHandler(addr)
rpcSH := NewRPCServerHandler(registry)
sh.RPCServerHandler = rpcSH
s := server.New(sh)
return s
}