Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADNLProofResponse ¶ added in v0.5.0
type Bag ¶
type Bag struct {
BagID string `json:"bag_id"`
Description string `json:"description"`
Downloaded uint64 `json:"downloaded"`
Size uint64 `json:"size"`
HeaderSize uint64 `json:"header_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"`
DownloadAll bool `json:"download_all"`
}
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 Credentials ¶
type ProofResponse ¶ added in v0.2.0
type ProofResponse struct {
Proof []byte `json:"proof"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetCredentials ¶
func (s *Server) SetCredentials(credentials *Credentials)
Click to show internal directories.
Click to hide internal directories.