blobmapcache

package
v0.0.0-...-8895704 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobmapCache

type BlobmapCache struct {
	// contains filtered or unexported fields
}

func Open

func Open(cacheDir string, maxCacheSize uint64) (*BlobmapCache, error)

func (*BlobmapCache) Close

func (c *BlobmapCache) Close()

func (*BlobmapCache) WithBlobmap

func (c *BlobmapCache) WithBlobmap(
	ctx context.Context,
	key string,
	loadBlobMap func(ctx context.Context, path string) error,
	fn func(ctx context.Context, b *blobmap.Reader) error,
) error

Jump to

Keyboard shortcuts

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