aboutsummaryrefslogtreecommitdiffstats
path: root/clients
diff options
context:
space:
mode:
Diffstat (limited to 'clients')
-rw-r--r--clients/common/common.go1
-rw-r--r--clients/common_test.go4
-rw-r--r--clients/http/git_upload_pack.go4
3 files changed, 9 insertions, 0 deletions
diff --git a/clients/common/common.go b/clients/common/common.go
index 9099016..d128f3f 100644
--- a/clients/common/common.go
+++ b/clients/common/common.go
@@ -28,6 +28,7 @@ type GitUploadPackService interface {
ConnectWithAuth(AuthMethod) error
Info() (*GitUploadPackInfo, error)
Fetch(*GitUploadPackRequest) (io.ReadCloser, error)
+ Disconnect() error
}
type AuthMethod interface {
diff --git a/clients/common_test.go b/clients/common_test.go
index 72d8e99..0381f63 100644
--- a/clients/common_test.go
+++ b/clients/common_test.go
@@ -76,6 +76,10 @@ func (s *dummyProtocolService) Fetch(r *common.GitUploadPackRequest) (io.ReadClo
return nil, nil
}
+func (s *dummyProtocolService) Disconnect() error {
+ return nil
+}
+
func typeAsString(v interface{}) string {
return fmt.Sprintf("%T", v)
}
diff --git a/clients/http/git_upload_pack.go b/clients/http/git_upload_pack.go
index 68ec238..79aec3f 100644
--- a/clients/http/git_upload_pack.go
+++ b/clients/http/git_upload_pack.go
@@ -134,3 +134,7 @@ func (s *GitUploadPackService) applyAuthToRequest(req *http.Request) {
s.auth.setAuth(req)
}
+
+func (s *GitUploadPackService) Disconnect() (err error) {
+ return nil
+}