Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ChunkSize is the size of each chunk for splitting large values ChunkSize = 1024 * 1024 // 1MB )
Variables ¶
This section is empty.
Functions ¶
func ComputeHash ¶
ComputeHash computes the SHA-256 hash of data
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store provides content-addressable storage for Atlas-DB. This is a thin client wrapper that chunks data and makes RPC calls. Actual storage happens on the server side via the consensus layer.
func NewStore ¶
func NewStore(quorumMgr consensus.QuorumManager) *Store
NewStore creates a new CAS store
func (*Store) Get ¶
Get retrieves data by its hash from the cluster. It fetches chunks from peers using DeReference RPC and reassembles them.
Click to show internal directories.
Click to hide internal directories.