Documentation
¶
Index ¶
Constants ¶
View Source
const HashPrefix = "hash/"
View Source
const SmallHashsetSuffix = ".hs"
View Source
const SmallHashsetThreshold = 64 * 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { Close() error Coalesce(context.Context) error Flush(context.Context) error Has(ctx context.Context, hash string) (exists bool, err error) Iterate(context.Context, func(ctx context.Context, hash, hashset string, data *manifest.Stream) error) error Lookup(ctx context.Context, hash string) (*manifest.Stream, error) Put(ctx context.Context, hash string, data *manifest.Stream) error Split(context.Context) error }
func AsyncHashDB ¶
Click to show internal directories.
Click to hide internal directories.