Documentation ¶
Index ¶
- Constants
- type BeeClient
- func (s *BeeClient) CheckConnection() bool
- func (s *BeeClient) DownloadBlob(address []byte) ([]byte, int, error)
- func (s *BeeClient) DownloadChunk(ctx context.Context, address []byte) (data []byte, err error)
- func (s *BeeClient) UnpinBlob(ref utils.Reference) error
- func (s *BeeClient) UnpinChunk(ref utils.Reference) error
- func (s *BeeClient) UploadBlob(data []byte, pin bool, encrypt bool) (address []byte, err error)
- func (s *BeeClient) UploadChunk(ch swarm.Chunk, pin bool) (address []byte, err error)
Constants ¶
View Source
const ( MaxIdleConnections int = 20 RequestTimeout int = 1 ChunkUploadDownloadUrl = "/chunks/" BytesUploadDownloadUrl = "/bytes" SwarmPinHeader = "Swarm-Pin" SwarmEncryptHeader = "Swarm-Encrypt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeeClient ¶
type BeeClient struct {
// contains filtered or unexported fields
}
func (*BeeClient) CheckConnection ¶
func (*BeeClient) DownloadBlob ¶
func (*BeeClient) DownloadChunk ¶
download a chunk from bee
func (*BeeClient) UploadBlob ¶
upload a chunk in bee
Click to show internal directories.
Click to hide internal directories.