34 #ifndef NET_GRPC_NODE_SERVER_H_
35 #define NET_GRPC_NODE_SERVER_H_
39 #include "grpc/grpc.h"
47 class Server :
public ::node::ObjectWrap {
51 static void Init(v8::Handle<v8::Object> exports);
54 static bool HasInstance(v8::Handle<v8::Value> val);
64 static NAN_METHOD(New);
65 static NAN_METHOD(RequestCall);
66 static NAN_METHOD(AddHttp2Port);
67 static NAN_METHOD(AddSecureHttp2Port);
68 static NAN_METHOD(Start);
69 static NAN_METHOD(Shutdown);
70 static NanCallback *constructor;
71 static v8::Persistent<v8::FunctionTemplate> fun_tpl;
79 #endif // NET_GRPC_NODE_SERVER_H_