Documentation ¶
Index ¶
- type Client
- func (s *Client) CheckConnection() bool
- func (s *Client) CreateTag(address []byte) (uint32, error)
- func (*Client) DeleteReference(address []byte) error
- func (s *Client) DownloadBlob(address []byte) ([]byte, int, error)
- func (s *Client) DownloadBzz(address []byte) ([]byte, int, error)
- func (s *Client) DownloadChunk(ctx context.Context, address []byte) (data []byte, err error)
- func (s *Client) GetTag(tag uint32) (int64, int64, int64, error)
- func (s *Client) UploadBlob(data []byte, tag uint32, encrypt bool) (address []byte, err error)
- func (s *Client) UploadBzz(data []byte, fileName string) (address []byte, err error)
- func (s *Client) UploadChunk(ch swarm.Chunk) (address []byte, err error)
- func (s *Client) UploadSOC(owner, id, signature string, data []byte) (address []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.9.1
type Client struct {
// contains filtered or unexported fields
}
Client is a bee http client that satisfies blockstore.Client
func NewBeeClient ¶
NewBeeClient creates a new client which connects to the Swarm bee node to access the Swarm network.
func (*Client) CheckConnection ¶ added in v0.9.1
CheckConnection is used to check if the bee client is up and running.
func (*Client) DeleteReference ¶ added in v0.9.1
DeleteReference unpins a reference so that it will be garbage collected by the Swarm network.
func (*Client) DownloadBlob ¶ added in v0.9.1
DownloadBlob downloads a blob of binary data from the Swarm network.
func (*Client) DownloadBzz ¶ added in v0.9.3
DownloadBzz downloads bzz data from the Swarm network.
func (*Client) DownloadChunk ¶ added in v0.9.1
DownloadChunk downloads a chunk with given address from the Swarm network
func (*Client) UploadBlob ¶ added in v0.9.1
UploadBlob uploads a binary blob of data to Swarm network. It also optionally pins and encrypts the data.
func (*Client) UploadChunk ¶ added in v0.9.1
UploadChunk uploads a chunk to Swarm network.