Documentation
¶
Index ¶
- type BundleDownloadRequest
- type BundleDownloadResponse
- type BundleSuggestRequest
- type BundleSuggestResponse
- type BundleUploadRequest
- type BundleUploadResponse
- type Client
- func (c *Client) DownloadBundle(key, domain, id string) (*BundleDownloadResponse, error)
- func (c *Client) DownloadParts(key, domain string, hashes []Hash) (*PartsDownloadResponse, error)
- func (c *Client) Finalize(key string, domain string, id Hash) (*FinalizeUploadResponse, error)
- func (c *Client) SuggestBundle(key, domain string, id Hash) (*BundleSuggestResponse, error)
- func (c *Client) UploadBundle(key, domain string, bundle []byte) (*BundleUploadResponse, error)
- func (c *Client) UploadMissing(key string, domain string, i, count int, parts [][]byte) (*MissingUploadResponse, error)
- type FinalizeUploadRequest
- type FinalizeUploadResponse
- type Hash
- type MissingUploadRequest
- type MissingUploadResponse
- type Node
- type PartsDownloadRequest
- type PartsDownloadResponse
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleDownloadRequest ¶ added in v0.3.2
type BundleDownloadResponse ¶ added in v0.3.2
type BundleSuggestRequest ¶
type BundleSuggestResponse ¶
type BundleUploadRequest ¶
type BundleUploadResponse ¶
type Client ¶ added in v0.0.2
type Client struct { Url string EncMode cbor.EncMode // contains filtered or unexported fields }
func (*Client) DownloadBundle ¶ added in v0.3.2
func (c *Client) DownloadBundle(key, domain, id string) (*BundleDownloadResponse, error)
func (*Client) DownloadParts ¶ added in v0.3.2
func (c *Client) DownloadParts(key, domain string, hashes []Hash) (*PartsDownloadResponse, error)
func (*Client) SuggestBundle ¶ added in v0.0.2
func (c *Client) SuggestBundle(key, domain string, id Hash) (*BundleSuggestResponse, error)
func (*Client) UploadBundle ¶ added in v0.0.2
func (c *Client) UploadBundle(key, domain string, bundle []byte) (*BundleUploadResponse, error)
func (*Client) UploadMissing ¶ added in v0.0.2
type FinalizeUploadRequest ¶
type FinalizeUploadResponse ¶
type FinalizeUploadResponse struct {
Response
}
type MissingUploadRequest ¶
type MissingUploadResponse ¶
type MissingUploadResponse struct {
Response
}
type PartsDownloadRequest ¶ added in v0.3.2
type PartsDownloadResponse ¶ added in v0.3.2
Click to show internal directories.
Click to hide internal directories.