rpc/adapter/ipc/ipc.go

15 lines
232 B
Go
Raw Normal View History

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 {
sh := NewServerHandler(addr)
s := server.NewServer(sh)
return s
}