# Packages
Package capability defines the server and client capabilities.
Package sideband implements a sideband mutiplex/demultiplexer.
# Functions
NewAdvRefs returns a pointer to a new AdvRefs value, ready to be used.
NewErrUnexpectedData returns a new ErrUnexpectedData containing the data and the message given.
New returns a pointer to a new ReferenceUpdateRequest value.
NewReferenceUpdateRequestFromCapabilities returns a pointer to a new ReferenceUpdateRequest value, the request capabilities are filled with the most optimal ones, based on the adv value (advertised capabilities), the ReferenceUpdateRequest contains no commands
It does set the following capabilities: - agent - report-status - ofs-delta - ref-delta - delete-refs It leaves up to the user to add the following capabilities later: - atomic - ofs-delta - side-band - side-band-64k - quiet - push-cert.
NewReportStatus creates a new ReportStatus message.
NewUploadPackRequest creates a new UploadPackRequest and returns a pointer.
NewUploadPackRequestFromCapabilities creates a new UploadPackRequest and returns a pointer.
NewUploadPackResponse create a new UploadPackResponse instance, the request being responded by the response is required.
NewUploadPackResponseWithPackfile creates a new UploadPackResponse instance, and sets its packfile reader.
NewUploadRequest returns a pointer to a new UploadRequest value, ready to be used.
NewUploadRequestFromCapabilities returns a pointer to a new UploadRequest value, the request capabilities are filled with the most optiomal ones, based on the adv value (advertaised capabilities), the UploadRequest generated it has no wants or shallows and an infinite depth.
# Variables
No description provided by the author
ErrEmptyAdvRefs is returned by Decode if it gets an empty advertised references message.
No description provided by the author
ErrEmptyInput is returned by Decode if the input is empty.
No description provided by the author
ErrUploadPackResponseNotDecoded is returned if Read is called without decoding first.
# Structs
AdvRefs values represent the information transmitted on an advertised-refs message.
No description provided by the author
CommandStatus is the status of a reference in a report status.
ErrUnexpectedData represents an unexpected data decoding a message.
ReferenceUpdateRequest values represent reference upload requests.
ReportStatus is a report status message, as used in the git-receive-pack process whenever the 'report-status' capability is negotiated.
ServerResponse object acknowledgement from upload-pack service.
No description provided by the author
UploadHaves is a message to signal the references that a client has in a upload-pack.
UploadPackRequest represents a upload-pack request.
UploadPackResponse contains all the information responded by the upload-pack service, the response implements io.ReadCloser that allows to read the packfile directly from it.
UploadRequest values represent the information transmitted on a upload-request message.
# Interfaces
Depth values stores the desired depth of the requested packfile: see DepthCommit, DepthSince and DepthReference.
# Type aliases
No description provided by the author
DepthCommits values stores the maximum number of requested commits in the packfile.
DepthReference requests only commits not to found in the specified reference.
DepthSince values requests only commits newer than the specified time.