Versions in this module Expand all Collapse all v1 v1.0.0 Oct 17, 2018 Changes in this version + const GitServiceRecvPack + const GitServiceUploadPack + type GitHTTPService struct + func NewGitHTTPService(repostore repository.RepositoryStore, objstore ObjectStorage) *GitHTTPService + func (svr *GitHTTPService) ListReferences(w http.ResponseWriter, r *http.Request) + func (svr *GitHTTPService) ReceivePack(w http.ResponseWriter, r *http.Request) + func (svr *GitHTTPService) UploadPack(w http.ResponseWriter, r *http.Request) + type GitHandler interface + ListReferences func(w http.ResponseWriter, r *http.Request) + ReceivePack func(w http.ResponseWriter, r *http.Request) + UploadPack func(w http.ResponseWriter, r *http.Request) + type GitServiceType string + type MemObjectStorage struct + func NewMemObjectStorage() *MemObjectStorage + func (mos *MemObjectStorage) GetStore(id string) storer.EncodedObjectStorer + type ObjectStorage interface + GetStore func(string) storer.EncodedObjectStorer + type Protocol struct + func NewProtocol(w io.Writer, r io.Reader) *Protocol + func (proto *Protocol) ListReferences(service GitServiceType, refs *repository.RepositoryReferences) + func (proto *Protocol) ReceivePack(repo *repository.Repository, repostore repository.RepositoryStore, ...) error + func (proto *Protocol) UploadPack(store storer.EncodedObjectStorer) ([]byte, error) + type RepoHTTPService struct + func NewRepoHTTPService(store repository.RepositoryStore) *RepoHTTPService + func (svr *RepoHTTPService) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Router struct + func NewRouter(gh GitHandler, rh http.Handler, uh http.Handler) *Router + func (router *Router) Serve(addr string) error + func (router *Router) ServeHTTP(w http.ResponseWriter, r *http.Request) + type TxRef struct