34 #ifndef NET_GRPC_NODE_CHANNEL_H_
35 #define NET_GRPC_NODE_CHANNEL_H_
39 #include "grpc/grpc.h"
45 class Channel :
public ::node::ObjectWrap {
47 static void Init(v8::Handle<v8::Object> exports);
48 static bool HasInstance(v8::Handle<v8::Value> val);
51 static v8::Persistent<v8::Value> prototype;
67 static NAN_METHOD(New);
68 static NAN_METHOD(Close);
69 static NanCallback *constructor;
70 static v8::Persistent<v8::FunctionTemplate> fun_tpl;
79 #endif // NET_GRPC_NODE_CHANNEL_H_