2017-10-26 12:37:28 +00:00
|
|
|
package ipc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.loafle.net/commons_go/rpc"
|
|
|
|
"git.loafle.net/commons_go/server"
|
|
|
|
)
|
|
|
|
|
|
|
|
func NewServer(addr string, registry rpc.Registry) server.Server {
|
2017-10-26 12:39:00 +00:00
|
|
|
sh := NewServerHandler(addr, registry)
|
2017-10-26 12:37:28 +00:00
|
|
|
|
|
|
|
s := server.NewServer(sh)
|
|
|
|
|
|
|
|
return s
|
|
|
|
}
|