29 lines
611 B
C++
29 lines
611 B
C++
#ifndef __ASYNC_WATCH_HPP__
|
|
#define __ASYNC_WATCH_HPP__
|
|
|
|
#include <grpc++/grpc++.h>
|
|
#include "proto/rpc.grpc.pb.h"
|
|
#include "proto/rpc.pb.h"
|
|
#include "v3/include/V3Response.hpp"
|
|
|
|
|
|
using etcdserverpb::WatchRequest;
|
|
using etcdserverpb::WatchResponse;
|
|
using etcdserverpb::KV;
|
|
|
|
namespace etcdv3
|
|
{
|
|
class AsyncWatchResponse : public etcdv3::V3Response
|
|
{
|
|
public:
|
|
AsyncWatchResponse(WatchResponse& resp);
|
|
AsyncWatchResponse(const AsyncWatchResponse& other);
|
|
AsyncWatchResponse& operator=(const AsyncWatchResponse& other);
|
|
void ParseResponse();
|
|
WatchResponse reply;
|
|
};
|
|
}
|
|
|
|
#endif
|
|
|