bio

package
v0.5.0-beta Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseAll

func CloseAll()

func CompactChunksData

func CompactChunksData(ctx context.Context, entry *types.Metadata, chunkStore metastore.ChunkStore, dataStore storage.Storage) (resultErr error)

func DeleteChunksData

func DeleteChunksData(ctx context.Context, entry *types.Metadata, chunkStore metastore.ChunkStore, dataStore storage.Storage) error

func InitPageCache

func InitPageCache(cfg *config.FS)

Types

type InvalidCacheHook

type InvalidCacheHook func(eid int64)

type Reader

type Reader interface {
	ReadAt(ctx context.Context, dest []byte, off int64) (int64, error)
	Close()
}

func NewChunkReader

func NewChunkReader(entry *types.Metadata, chunkStore metastore.ChunkStore, dataStore storage.Storage) Reader

type Writer

type Writer interface {
	WriteAt(ctx context.Context, data []byte, off int64) (int64, error)
	Flush(ctx context.Context) error
	Fsync(ctx context.Context) error
	Close()
}

func NewChunkWriter

func NewChunkWriter(reader Reader) Writer

Jump to

Keyboard shortcuts

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