package
0.6.1
Repository: https://github.com/0glabs/0g-storage-client.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
MerkleRoot returns the merkle root hash of a file on disk.
MerkleTree create merkle tree of the data.
NewDataInMemory creates DataInMemory from given data.
No description provided by the author
NumSegmentsPadded return the number of segments of padded data.
No description provided by the author
Open create a File from a file on disk.
ReadAt read data at specified offset, paddedSize is the size of data after padding.
SegmentRoot return the merkle root of given chunks.

# Constants

DefaultChunkSize represents the default chunk size in bytes.
DefaultSegmentMaxChunks represents the default maximum number of chunks within a segment.
DefaultSegmentSize represents the default segment size in bytes.

# Variables

No description provided by the author
No description provided by the author
ErrFileEmpty is returned when empty file opened.
ErrFileRequired is returned when manipulate on a folder.

# Structs

DataInMemory implement of IterableData, the underlying is memory data.
File implement of IterableData, the underlying is a file on disk.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

IterableData defines the data interface to upload to 0g storage network.
No description provided by the author