Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) ErrHTTP(resp *http.Response) error
- func (c *Client) GetRefs() (m map[string][]byte, err error)
- func (c *Client) PostUpdatesToReceivePack(updates map[string]*payload.Update) (*http.Response, error)
- func (c *Client) PostUploadPack(wants, haves [][]byte, done bool) (acks [][]byte, pr *encoding.PackfileReader, err error)
- func (c *Client) Request(method, path string, body io.Reader, headers map[string]string) (resp *http.Response, err error)
- type ReceivePackSession
- type UploadPackSession
Constants ¶
View Source
const ( CTJSON = "application/json" CTPackfile = "application/x-wrgl-packfile" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) PostUpdatesToReceivePack ¶
func (*Client) PostUploadPack ¶
type ReceivePackSession ¶
type ReceivePackSession struct {
// contains filtered or unexported fields
}
func NewReceivePackSession ¶
type UploadPackSession ¶
type UploadPackSession struct {
// contains filtered or unexported fields
}
func NewUploadPackSession ¶
func (*UploadPackSession) Start ¶
func (n *UploadPackSession) Start() ([][]byte, error)
Click to show internal directories.
Click to hide internal directories.