16 lines
238 B
Go
16 lines
238 B
Go
package client
|
|
|
|
import (
|
|
"git.loafle.net/commons_go/rpc"
|
|
"git.loafle.net/commons_go/rpc/client"
|
|
)
|
|
|
|
func New(addr string, registry rpc.Registry) client.Client {
|
|
|
|
ch := NewClientHandler(addr, registry)
|
|
|
|
c := client.New(ch)
|
|
|
|
return c
|
|
}
|