archive

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

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

func Open

func Open(
	ctx context.Context,
	log *slog.Logger,
	opts OpenOptions,
) (*Archive, error)

func (*Archive) Append

func (a *Archive) Append(ctx context.Context, sm *statemate.StateMate[uint64]) error

func (*Archive) Read

func (a *Archive) Read(
	ctx context.Context,
	from, count uint64,
	readFn func(ctx context.Context, index uint64, data []byte) error,
) error

type CacheManager

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

func NewCacheManager

func NewCacheManager(cacheSizeLimit uint64) *CacheManager

type OpenOptions

type OpenOptions struct {
	S3Client     *s3.Client
	S3Bucket     string
	Name         string
	BlobmapCache *blobmapcache.BlobmapCache
	WorkDir      string
}

Jump to

Keyboard shortcuts

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