Documentation ¶
Index ¶
- Variables
- type ADNLProofResponse
- type Bag
- type BagDetailed
- type Client
- func (c *Client) GetBag(ctx context.Context, bagId []byte) (*BagDetailed, error)
- func (c *Client) GetPieceProof(ctx context.Context, bagId []byte, piece uint64) ([]byte, error)
- func (c *Client) ProofProvider(ctx context.Context) (ed25519.PublicKey, []byte, error)
- func (c *Client) RemoveBag(ctx context.Context, bagId []byte, withFiles bool) error
- func (c *Client) StartDownload(ctx context.Context, bagId []byte, downloadAll bool) error
- type Created
- type Credentials
- type File
- type List
- type Peer
- type ProofResponse
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type ADNLProofResponse ¶ added in v0.2.0
type Bag ¶
type Bag struct { BagID string `json:"bag_id"` Description string `json:"description"` Downloaded uint64 `json:"downloaded"` Size uint64 `json:"size"` Peers uint64 `json:"peers"` DownloadSpeed uint64 `json:"download_speed"` UploadSpeed uint64 `json:"upload_speed"` FilesCount uint64 `json:"files_count"` DirName string `json:"dir_name"` Completed bool `json:"completed"` HeaderLoaded bool `json:"header_loaded"` InfoLoaded bool `json:"info_loaded"` Active bool `json:"active"` Seeding bool `json:"seeding"` }
type BagDetailed ¶
type BagDetailed struct { Bag BagPiecesNum uint32 `json:"bag_pieces_num"` HasPiecesMask []byte `json:"has_pieces_mask"` Files []File `json:"files"` Peers []Peer `json:"peers"` PieceSize uint32 `json:"piece_size"` BagSize uint64 `json:"bag_size"` MerkleHash string `json:"merkle_hash"` Path string `json:"path"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetPieceProof ¶
func (*Client) ProofProvider ¶ added in v0.2.0
type Credentials ¶
type ProofResponse ¶
type ProofResponse struct {
Proof []byte `json:"proof"`
}
Click to show internal directories.
Click to hide internal directories.