// NewAddServiceClient returns an *rpc.Client wrapper for calling the methods of
// AddService remotely.
func NewAddServiceClient(conn net.Conn) AddService {
	return rpcAddServiceClient{rpc.NewClientWithCodec(codec.NewClientCodec(conn))}
}
Exemple #2
0
// NewConcatServiceClient returns an *rpc.Client wrapper for calling the methods of
// ConcatService remotely.
func NewConcatServiceClient(conn net.Conn) ConcatService {
	return rpcConcatServiceClient{rpc.NewClientWithCodec(codec.NewClientCodec(conn))}
}
Exemple #3
0
// NewOffloadServiceClient returns an *rpc.Client wrapper for calling the methods of
// OffloadService remotely.
func NewOffloadServiceClient(conn net.Conn) OffloadService {
	return rpcOffloadServiceClient{rpc.NewClientWithCodec(codec.NewClientCodec(conn))}
}
// NewRequestServiceClient returns an *rpc.Client wrapper for calling the methods of
// RequestService remotely.
func NewRequestServiceClient(conn net.Conn) RequestService {
	return rpcRequestServiceClient{rpc.NewClientWithCodec(codec.NewClientCodec(conn))}
}
Exemple #5
0
// NewLearnerClient returns an *rpc.Client wrapper for calling the methods of
// Learner remotely.
func NewLearnerClient(conn net.Conn) Learner {
	return rpcLearnerClient{rpc.NewClientWithCodec(codec.NewClientCodec(conn))}
}
Exemple #6
0
// NewAcceptorClient returns an *rpc.Client wrapper for calling the methods of
// Acceptor remotely.
func NewAcceptorClient(conn net.Conn) Acceptor {
	return rpcAcceptorClient{rpc.NewClientWithCodec(codec.NewClientCodec(conn))}
}