aboutsummaryrefslogtreecommitdiffstats
path: root/clients/common.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2015-10-23 00:34:40 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2015-10-23 00:34:40 +0200
commitb359f11ea09e642695edcd114b463da4395b10c1 (patch)
tree6f84c4693429a3815b7523e957801cdb420abb40 /clients/common.go
parent6f43e8933ba3c04072d5d104acc6118aac3e52ee (diff)
downloadgo-git-b359f11ea09e642695edcd114b463da4395b10c1.tar.gz
clients: supporting diferent protocols
Diffstat (limited to 'clients/common.go')
-rw-r--r--clients/common.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/clients/common.go b/clients/common.go
new file mode 100644
index 0000000..720de86
--- /dev/null
+++ b/clients/common.go
@@ -0,0 +1,15 @@
+package clients
+
+import (
+ "gopkg.in/src-d/go-git.v2/clients/common"
+ "gopkg.in/src-d/go-git.v2/clients/http"
+)
+
+type GitUploadPackService interface {
+ Connect(url common.Endpoint) error
+ Info() (*common.GitUploadPackInfo, error)
+}
+
+func NewGitUploadPackService() GitUploadPackService {
+ return http.NewGitUploadPackService()
+}