chunkstore

package
v0.0.0-...-846f54e Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChunkHash

type ChunkHash = [sha256.Size]byte

type ChunkWriter

type ChunkWriter interface {
	io.Writer
	Close() (ChunkHash, MD5Hash, error)
}

type MD5Hash

type MD5Hash = [md5.Size]byte

type Store

type Store interface {
	NewWriter() (ChunkWriter, error)
	NewReader(ChunkHash) (io.ReadSeekCloser, error)
	Delete(ChunkHash) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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