Versions in this module Expand all Collapse all v0 v0.1.0 Mar 19, 2022 Changes in this version + const GasPriceHeader + const SwarmCollectionHeader + const SwarmDeferredUploadHeader + const SwarmEncryptHeader + const SwarmErrorDocumentHeader + const SwarmFeedIndexHeader + const SwarmFeedIndexNextHeader + const SwarmIndexDocumentHeader + const SwarmPinHeader + const SwarmPostageBatchIdHeader + const SwarmTagHeader + type Api struct + Bytes *BytesService + C *httpclient.Client + Chunk *ChunkService + Dirs *DirsService + func NewAPI(beeURL *url.URL, o *httpclient.ClientOptions) (*Api, error) + type BytesService struct + func (bs *BytesService) Download(ctx context.Context, addr swarm.Address) (resp io.ReadCloser, err error) + func (bs *BytesService) Upload(ctx context.Context, data io.Reader, o UploadOptions) (BytesUploadResponse, error) + type BytesUploadResponse struct + Reference swarm.Address + type ChunkService struct + func (cs *ChunkService) Download(ctx context.Context, addr swarm.Address, targets ...string) (resp io.ReadCloser, err error) + func (cs *ChunkService) Upload(ctx context.Context, data []byte, o UploadOptions) (ChunksUploadResponse, error) + type ChunksUploadResponse struct + Reference swarm.Address + type DirsService struct + func (ds *DirsService) Download(ctx context.Context, addr swarm.Address, path string) (resp io.ReadCloser, err error) + func (ds *DirsService) Upload(ctx context.Context, data io.Reader, size int64, o UploadCollectionOptions) (DirsUploadResponse, error) + type DirsUploadResponse struct + Reference swarm.Address + type UploadCollectionOptions struct + BatchID string + ErrorDocumentHeader string + IndexDocumentHeader string + Pin bool + Tag uint32 + type UploadOptions struct + BatchID string + Pin bool + Tag uint32