Documentation ¶
Index ¶
- func CloseConnections()
- type BlobClient
- type DiffClient
- type RepositoryClient
- type Server
- type SmartHTTPClient
- func (client *SmartHTTPClient) InfoRefsResponseReader(ctx context.Context, repo *pb.Repository, rpc string, ...) (io.Reader, error)
- func (client *SmartHTTPClient) ReceivePack(ctx context.Context, repo *pb.Repository, glId string, glUsername string, ...) error
- func (client *SmartHTTPClient) UploadPack(ctx context.Context, repo *pb.Repository, clientRequest io.Reader, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseConnections ¶ added in v1.4.0
func CloseConnections()
Types ¶
type BlobClient ¶
type BlobClient struct {
pb.BlobServiceClient
}
func NewBlobClient ¶
func NewBlobClient(server Server) (*BlobClient, error)
func (*BlobClient) SendBlob ¶
func (client *BlobClient) SendBlob(ctx context.Context, w http.ResponseWriter, request *pb.GetBlobRequest) error
type DiffClient ¶
type DiffClient struct {
pb.DiffServiceClient
}
func NewDiffClient ¶
func NewDiffClient(server Server) (*DiffClient, error)
func (*DiffClient) SendRawDiff ¶
func (client *DiffClient) SendRawDiff(ctx context.Context, w http.ResponseWriter, request *pb.RawDiffRequest) error
func (*DiffClient) SendRawPatch ¶
func (client *DiffClient) SendRawPatch(ctx context.Context, w http.ResponseWriter, request *pb.RawPatchRequest) error
type RepositoryClient ¶
type RepositoryClient struct {
pb.RepositoryServiceClient
}
RepositoryClient encapsulates RepositoryService calls
func NewRepositoryClient ¶
func NewRepositoryClient(server Server) (*RepositoryClient, error)
func (*RepositoryClient) ArchiveReader ¶
func (client *RepositoryClient) ArchiveReader(ctx context.Context, request *pb.GetArchiveRequest) (io.Reader, error)
ArchiveReader performs a GetArchive Gitaly request and returns an io.Reader for the response
func (*RepositoryClient) SnapshotReader ¶
func (client *RepositoryClient) SnapshotReader(ctx context.Context, request *pb.GetSnapshotRequest) (io.Reader, error)
SnapshotReader performs a GetSnapshot Gitaly request and returns an io.Reader for the response
type SmartHTTPClient ¶ added in v1.4.0
type SmartHTTPClient struct {
pb.SmartHTTPServiceClient
}
func NewSmartHTTPClient ¶ added in v1.4.0
func NewSmartHTTPClient(server Server) (*SmartHTTPClient, error)
func (*SmartHTTPClient) InfoRefsResponseReader ¶
func (*SmartHTTPClient) ReceivePack ¶ added in v1.4.3
func (*SmartHTTPClient) UploadPack ¶ added in v1.4.3
Click to show internal directories.
Click to hide internal directories.