Documentation
¶
Index ¶
Constants ¶
View Source
const ChunkSize = 32 * 1024 // 32 KB
View Source
const Protocol = "/bdpeer/1.0.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
type Frame struct {
Type FrameType `json:"type"`
From string `json:"from"`
Content string `json:"content,omitempty"`
Name string `json:"name,omitempty"`
Size int64 `json:"size,omitempty"`
Seq int `json:"seq,omitempty"`
Data []byte `json:"data,omitempty"`
Checksum string `json:"checksum,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.