15 lines
232 B
Go
15 lines
232 B
Go
|
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
|
||
|
}
|