Пример #1
0
// 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))}
}
Пример #2
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))}
}
Пример #3
0
// NewEchoServiceClient returns an *rpc.Client wrapper for calling the methods of
// EchoService remotely.
func NewEchoServiceClient(conn net.Conn) EchoService {
	return rpcEchoServiceClient{rpc.NewClientWithCodec(codec.NewClientCodec(conn))}
}
Пример #4
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))}
}