aboutsummaryrefslogblamecommitdiffstats
path: root/clients/common.go
blob: 8003d0766f8238e16e9b4f81045c5e8ccfa91c82 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


               

            






                                                 
                                                                    




                                                     
package clients

import (
	"io"

	"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)
	Fetch(r *common.GitUploadPackRequest) (io.ReadCloser, error)
}

func NewGitUploadPackService() GitUploadPackService {
	return http.NewGitUploadPackService()
}