bio

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 15 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, md *types.Metadata, chunkStore metastore.ChunkStore, dataStore storage.Storage) (resultErr error)

func DeleteChunksData

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

Types

type Reader

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

func NewChunkReader

func NewChunkReader(md *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