#ifndef GITTRANSPORT_H
#define GITTRANSPORT_H

#include <nan.h>
#include <string>

extern "C" {
#include <git2.h>
}

#include "../include/transport.h"
#include "../include/remote.h"


using namespace node;
using namespace v8;

class GitTransport : public ObjectWrap {
  public:

    static Persistent<Function> constructor_template;
    static void Initialize (Handle<v8::Object> target);

        git_cred *GetValue();

    static Handle<Value> New(void *raw);
    
  private:
        GitTransport(git_cred *raw);
    ~GitTransport();
    
    static NAN_METHOD(New);

    
    
        git_cred *raw;
    };

#endif
