Lines Matching refs:r
29 var r RemoteBinderClient
30 r.SocketPath = socketPath
31 return &r
34 func (r *RemoteBinderClient) initRpcClient() error {
35 if r.rpcClient != nil {
39 r.rpcClient, err = rpc.DialHTTP("unix", r.SocketPath)
43 func (r *RemoteBinderClient) BindReadOnly(source string, destination string) error {
46 if err := r.initRpcClient(); err != nil {
49 if err := r.rpcClient.Call("Server.BindReadOnly", &args, &reply); err != nil {
58 func (r *RemoteBinderClient) BindReadWrite(source string, destination string) error {
61 if err := r.initRpcClient(); err != nil {
64 if err := r.rpcClient.Call("Server.BindReadWrite", &args, &reply); err != nil {
73 func (r *RemoteBinderClient) Unbind(destination string) error {
76 if err := r.initRpcClient(); err != nil {
79 if err := r.rpcClient.Call("Server.Unbind", &args, &reply); err != nil {
88 func (r *RemoteBinderClient) List() ([]string, error) {
91 if err := r.initRpcClient(); err != nil {
94 if err := r.rpcClient.Call("Server.List", &args, &reply); err != nil {