blockstore

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CheckConnection() bool
	UploadSOC(owner string, id string, signature string, data []byte) (address []byte, err error)
	UploadChunk(ch swarm.Chunk) (address []byte, err error)
	UploadBlob(data []byte, tag uint32, encrypt bool) (address []byte, err error)
	UploadBzz(data []byte, fileName string) (address []byte, err error)
	DownloadChunk(ctx context.Context, address []byte) (data []byte, err error)
	DownloadBlob(address []byte) (data []byte, respCode int, err error)
	DownloadBzz(address []byte) (data []byte, respCode int, err error)
	DeleteReference(address []byte) error
	CreateTag(address []byte) (uint32, error)
	GetTag(tag uint32) (int64, int64, int64, error)
}

Client is the interface for block store

Directories

Path Synopsis
bee

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL